PDA

View Full Version : Preloader woes


LizMM
06-11-2001, 06:49 PM
I tried using the great preloader tutorial that Jesse created, and I followed it right down to the letter(except that my scenes are named Preloader and Scene 1), but I can't get it to work! As I tested the movie, the Generator window popped up with the following message:

Scene=Preloader, Layer=Script, Frame=1: Line 4: ')' or ',' expected
percent_done=int((loaded_bytes/total_bytes)*100;

Generator is not enabled for this movie. C:\WINDOWS\Desktop\CNTA Purple\CNTA Intro3.swf

Can anyone please tell me what I'm doing wrong?
Also, if I really just want the percent to show rather than the total bytes,etc., can I just omit those text fields and script?
TIA!

Jesse
06-12-2001, 04:24 AM
percent_done=int((loaded_bytes/total_bytes)*100;

You're missing a closing brace on the end of that statement:

percent_done=int((loaded_bytes/total_bytes))*100;

LizMM
06-13-2001, 02:16 PM
Thanks, Jesse! As many times as I looked at that code and retyped it, you'd think I would have gotten it right at least once!
Well, anyway thanks for the great tutorial and the quick response. Once I figured out that to test it I had to choose "Show Streaming" it worked just beautifully!

Liz