actionscript 3 - Controlling an embeded SWF movie(audio/sound) file in flex -
So I'm trying to get the sound on my Flex application, then only to load an SDF movie with audio But when it is loaded on init (), it loops non-stop here is a sample code:
[embed (source = "assets / alert 03.swf") ] Private var alert01 Sww: class; Private Vendor 01 Loader: Movie Clip; Private function init (): zero {alert01Loader = MovieClip (new alert01 SWf ()); Alert01Loader.stop (); Alert01Loader.gotoAndStop (0, empty); //this.addChild(alert01Loader); }
It just gets useless! And I can not stop it. I tried to use OGG but was running slow in loading. MP3 is no good because it's not free right now. Any suggestions on using audio in Flex would also be great!
stop ()
and goto ANDStop
functions Control the frame navigation - do you have the proper functions defined in those frames?
WARNING 3. Define stop audio / play audio functions in swf document class and call them Main SWF
Comments
Post a Comment