FORUMS: list search recent posts

soundTransform issue

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Keith Anthony
soundTransform issue
on Jun 21, 2013 at 1:22:57 pm

i know i'm missing something stupid here. can someone give a hand? i'm trying to mute and make mcs invisible. i've done something wrong with the soundtransform bit. quite new on AS3.

var isPlayingMC:MovieClip =mc1;;
var isPlayingMCcurrentFrame = 0;

var soundTr:SoundTransform = new SoundTransform();
soundTr.volume = 1;

btn1.addEventListener(MouseEvent.CLICK, playMC1);
function playMC1(e:MouseEvent):void {

isPlayingMCcurrentFrame = isPlayingMC.currentFrame;
isPlayingMC = mc1;
isPlayingMC.gotoAndPlay(isPlayingMCcurrentFrame);
mc2.volume = 0;
mc3.volume = 0;
mc3.visible = false;
mc2.visible = false;
mc1.visible = true
}

btn2.addEventListener(MouseEvent.CLICK, playMC2);
function playMC2(e:MouseEvent):void {

isPlayingMCcurrentFrame = isPlayingMC.currentFrame;
isPlayingMC = mc2;
isPlayingMC.gotoAndPlay(isPlayingMCcurrentFrame);
mc1.volume = 0;
mc3.volume = 0;
mc1.visible = false;
mc3.visible = false;
mc2.visible = true

}
Btn3.addEventListener(MouseEvent.CLICK, playMC3);
function playMC3(e:MouseEvent):void {
isPlayingMCcurrentFrame = isPlayingMC.currentFrame;
isPlayingMC = mc3;
isPlayingMC.gotoAndPlay(isPlayingMCcurrentFrame);
mc1.volume = 0;
mc2.volume = 0;
mc1.visible = false;
mc2.visible = false;
mc3.visible = true
}


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]