Flash AS3 run function after Exit frame
i really need some AS3 Script for run some function when i leave a specfic
frame.
my reason is to put some function to stop video and resume my sound of mp3
player AFTER i exit the frame that contain FLV playback .
i use this script and it`s work great in FLash projector but
stage.invalidate(); cause the Third party application maker like Swfkit
and Zinc Not responding after i try to exit from flv playback frame.
Here is my Script :
stage.invalidate();
mene.addEventListener(Event.RENDER,exitingF);
mene.addEventListener(Event.REMOVED_FROM_STAGE, removedF);
function exitingF(e:Event):void{
controller.gotoAndStop(2);
pausePosition = sndChannel.position;
sndChannel.stop();
isPlaying = false;
}
function removedF(e:Event):void{
mene.stop();
controller.gotoAndStop(1);
sndChannel = soundClip.play(pausePosition);
isPlaying = true;
}
all i need is some another way to say flash run some script right after
exit specfic frame ( go to another frame )
No comments:
Post a Comment