Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-11-2001, 06:49 PM   #1
LizMM
Registered User
 
Join Date: Jun 2001
Location: Augusta, GA
Posts: 14
Unhappy

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!
LizMM is offline   Reply With Quote
Old 06-12-2001, 04:24 AM   #2
Jesse
ActionScript.org Founder
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: New York
Posts: 8,736
Default

Code:
percent_done=int((loaded_bytes/total_bytes)*100;
You're missing a closing brace on the end of that statement:

Code:
percent_done=int((loaded_bytes/total_bytes))*100;
__________________
Cheers

Jesse Stratford
ActionScript.org Cofounder

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote
Old 06-13-2001, 02:16 PM   #3
LizMM
Registered User
 
Join Date: Jun 2001
Location: Augusta, GA
Posts: 14
Talking Success!

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
LizMM 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
preloader woes Flash Gordon ActionScript 2.0 7 02-17-2005 05:32 PM
preloader woes :( handle ActionScript 2.0 2 02-08-2005 08:06 PM
Preloader Woes... miss_bono ActionScript 1.0 (and below) 1 09-18-2003 06:03 PM
Preloader Woes...? cardiac7 ActionScript 1.0 (and below) 13 07-16-2003 06:30 PM
preloader woes dan ActionScript 1.0 (and below) 4 04-14-2002 03:49 PM


All times are GMT. The time now is 04:48 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.