Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > Flash Remoting

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-18-2003, 10:17 AM   #1
dafnabru
Registered User
 
Join Date: Jul 2003
Location: london
Posts: 49
Exclamation my preloader doesnt work

Please help me!
I made a preloader from a tutorial and now that I uploaded my website I see that it does'nt work. The flash window opens white for some seconds until the movie is loaded.
The action script I used is:

First frame:
percent = Math.floor(getBytesLoaded()/getBytesTotal()*100);
myOutput.text = percent + "% is loaded";

second frame:
if (percent == 100){
gotoAndStop(3);
}else{
gotoAndPlay(1);
}

in both frames there is an empty imput text. The movie starts in the third frame.

Thank you in advance, I hope someone can help me
dafnabru is offline   Reply With Quote
Old 07-18-2003, 01:47 PM   #2
pellepiano
Registered User
 
Join Date: Mar 2001
Location: Stockholm, Sweden
Posts: 451
Default

Any use of components or attached files will load them before the preloader starts.
pellepiano is offline   Reply With Quote
Old 07-19-2003, 07:41 AM   #3
dafnabru
Registered User
 
Join Date: Jul 2003
Location: london
Posts: 49
Question

I didnt understand your answer, could you explain it to me please?
Thank you!
dafnabru is offline   Reply With Quote
Old 07-19-2003, 05:11 PM   #4
pellepiano
Registered User
 
Join Date: Mar 2001
Location: Stockholm, Sweden
Posts: 451
Default

Attached movies, music, components always load in the first frame of the movie. You can not do anything about this. Then your preloader will show. Thats probably why the movie is white while loading.

Have you given a variable name to the input field?

The code also should be....

percent = Math.floor(getBytesLoaded()/ Math.floor(getBytesTotal())*100);
pellepiano is offline   Reply With Quote
Old 07-20-2003, 01:47 AM   #5
annexion
I make out with chicks
 
Join Date: Oct 2002
Location: NYC
Posts: 1,586
Default

There is something you can do about it. Go into your library, right click on your components and choose linkage. Then uncheck "Export in first frame".
__________________
www.perpetuated.com
annexion is offline   Reply With Quote
Old 07-20-2003, 01:54 AM   #6
freddycodes
Master of Nothing
 
Join Date: Dec 2002
Location: San Diego, CA
Posts: 2,468
Default

This might be better placed in the Flash MX or Components forums.
freddycodes 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


All times are GMT. The time now is 01:22 PM.


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