| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Jul 2003
Location: london
Posts: 49
|
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 |
|
|
|
|
|
#2 |
|
Registered User
Join Date: Mar 2001
Location: Stockholm, Sweden
Posts: 451
|
Any use of components or attached files will load them before the preloader starts.
|
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Jul 2003
Location: london
Posts: 49
|
I didnt understand your answer, could you explain it to me please?
Thank you! |
|
|
|
|
|
#4 |
|
Registered User
Join Date: Mar 2001
Location: Stockholm, Sweden
Posts: 451
|
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); |
|
|
|
|
|
#5 |
|
I make out with chicks
Join Date: Oct 2002
Location: NYC
Posts: 1,586
|
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 |
|
|
|
|
|
#6 |
|
Master of Nothing
Join Date: Dec 2002
Location: San Diego, CA
Posts: 2,468
|
This might be better placed in the Flash MX or Components forums.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|