Web Design Forum  
 
Go Back   Web Design Forum > Web and Graphic Design > Web Design

Reply
 
LinkBack Thread Tools Display Modes
Old 01-27-2009, 01:20 AM   #1
Gold Member
 
Join Date: Oct 2008
Location: Yonkers, NY
Posts: 489
Default pausing an external swf via AS3

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!");
}
LouTheDesigner is offline   Reply With Quote


Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:52 PM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.