Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 08-16-2007, 04:39 PM   #1
designchemist
Registered User
 
Join Date: Aug 2007
Posts: 22
Default Starting a movie when 50% loaded?

Can someone help me on figuring out how to load a movie at 50%? I am using the following code to preload and play at 100%.

Code:
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
	this.gotoAndPlay(3);
}
Thanks!
designchemist is offline   Reply With Quote
Old 08-17-2007, 11:00 AM   #2
panel
AS3
 
panel's Avatar
 
Join Date: Mar 2007
Location: Warsaw
Posts: 1,991
Send a message via Skype™ to panel
Default

ActionScript Code:
bytes_loaded = Math.round(this.getBytesLoaded()); bytes_total = Math.round(this.getBytesTotal()); getPercent = bytes_loaded/bytes_total; this.loadBar._width = getPercent*100; this.loadText = Math.round(getPercent*100)+"%"; if (bytes_loaded >= (bytes_total / 2)) {     this.gotoAndPlay(3); }
panel is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Loading images in different frames.. nchagial ActionScript 2.0 22 12-21-2005 08:06 AM
loaded swf affecting scrollbar component in main movie mrumbrellahead@ Components 4 01-12-2005 07:26 PM
Targeted Movie Clips Don’t Work Once Loaded Into a Container Movie. jcolletti ActionScript 1.0 (and below) 2 10-03-2002 03:19 PM
can you tell ANOTHER LOADED movie "target"? futuresplash ActionScript 1.0 (and below) 5 01-02-2001 07:12 PM
can u tell ANOTHER LOADED MOVIE "target"? (again) futuresplash Other Flash General Questions 1 01-01-2001 11:14 PM


All times are GMT. The time now is 03:55 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.