|
|
#1 |
|
Gold Member
![]() Join Date: Oct 2008
Location: Yonkers, NY
Posts: 489
|
Would there be any way to pause an external swf that I loaded with the following code. If it matters, the intro2.swf movie is just a flash movie consisting of an imported quicktime movie, which plays for over 1000 frames. Thanks in advance.:
------------------------------------- var req:URLRequest = new URLRequest("intro2.swf"); var loader:Loader = new Loader(); loader.load(req); addChild(loader); loader.contentLoaderInfo.addEventListener(Progress Event.PROGRESS, loadProgress); loader.contentLoaderInfo.addEventListener(Event.CO MPLETE, loadComplete); function loadProgress(event:ProgressEvent):void { var percent:Number = event.bytesLoaded/event.bytesTotal; percent = Math.round(percent * 100); mc_progress.gotoAndStop(Math.round(event.bytesLoad ed / event.bytesTotal * 100)); } function loadComplete(event:Event):void { mc_loading.visible = false; trace("Complete!"); } |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|