Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-20-2005, 01:56 AM   #1
MaMoDevil
Registered User
 
Join Date: Mar 2005
Posts: 55
Default preloader

hi...
i am facing another problem now....i looked at the preloader tutorial....and i made one of my own....but i don't know how to put it into my flash files....so do i put it in the project files....or it's just another loadmovie thingy?
MaMoDevil is offline   Reply With Quote
Old 04-20-2005, 02:14 AM   #2
Flash Gordon
rather be programming
 
Flash Gordon's Avatar
 
Join Date: Feb 2005
Location: City of Angels
Posts: 10,140
Default

Argh....I think you are WAY OFF....put it in the main time line or on the movie. Check out a couple more tutorials on paths and stuff like that.
__________________
trace("Good bye Flash.") Log.i(TAG, "Hello Droid");
Flash Gordon is offline   Reply With Quote
Old 04-20-2005, 03:10 AM   #3
MaMoDevil
Registered User
 
Join Date: Mar 2005
Posts: 55
Default

how do i know that the preloader is working or not?
MaMoDevil is offline   Reply With Quote
Old 04-20-2005, 03:16 AM   #4
Flash Gordon
rather be programming
 
Flash Gordon's Avatar
 
Join Date: Feb 2005
Location: City of Angels
Posts: 10,140
Default

upload it and test it.
__________________
trace("Good bye Flash.") Log.i(TAG, "Hello Droid");
Flash Gordon is offline   Reply With Quote
Old 04-20-2005, 03:43 AM   #5
MaMoDevil
Registered User
 
Join Date: Mar 2005
Posts: 55
Default

i followed the tutorial from this link...
http://www.actionscript.org/tutorial...er/index.shtml

and the percentage bar is not loading...or in another word....it's stayed at 0%....
MaMoDevil is offline   Reply With Quote
Old 04-20-2005, 03:44 AM   #6
Flash Gordon
rather be programming
 
Flash Gordon's Avatar
 
Join Date: Feb 2005
Location: City of Angels
Posts: 10,140
Default

post code...from your fla and not the tutorial. Copy and paste it directly in here and make sure to use the AS tags
__________________
trace("Good bye Flash.") Log.i(TAG, "Hello Droid");
Flash Gordon is offline   Reply With Quote
Old 04-20-2005, 03:47 AM   #7
MaMoDevil
Registered User
 
Join Date: Mar 2005
Posts: 55
Default

ActionScript Code:
onClipEvent (enterFrame) {         loading = _parent.getBytesLoaded();         total = _parent.getBytesTotal();         percent -= (percent-((loading/total)*100))*.25;         per = int(percent);         percentage = per+"%";         loadBar._width = per;         if (percent>99) {                 _parent.gotoAndStop(2);         } }
i just copy and paste the code from the tutorial....
MaMoDevil is offline   Reply With Quote
Old 04-20-2005, 03:48 AM   #8
Flash Gordon
rather be programming
 
Flash Gordon's Avatar
 
Join Date: Feb 2005
Location: City of Angels
Posts: 10,140
Default

give it to my from YOUR FLA and not the tutorial. Also give me the link you tested it with.
__________________
trace("Good bye Flash.") Log.i(TAG, "Hello Droid");
Flash Gordon is offline   Reply With Quote
Old 04-20-2005, 03:50 AM   #9
MaMoDevil
Registered User
 
Join Date: Mar 2005
Posts: 55
Default

**Error** Scene=Scene 1, layer=Preloader, frame=1:Line 4: Syntax error.
percent = (loading/total)*100);

**Error** Scene=Scene 1, layer=Preloader, frame=1:Line 5: Statement must appear within on/onClipEvent handler
per = int(percent);

**Error** Scene=Scene 1, layer=Preloader, frame=1:Line 6: Statement must appear within on/onClipEvent handler
percentage = per+"%";

**Error** Scene=Scene 1, layer=Preloader, frame=1:Line 7: Statement must appear within on/onClipEvent handler
loadBar._width = per;

**Error** Scene=Scene 1, layer=Preloader, frame=1:Line 8: Statement must appear within on/onClipEvent handler
if (percent>99) {

**Error** Scene=Scene 1, layer=Preloader, frame=1:Line 11: Unexpected '}' encountered
}

Total ActionScript Errors: 6 Reported Errors: 6



error msg....and here's the code...
ActionScript Code:
onClipEvent (enterFrame) {         loading = _parent.getBytesLoaded();         total = _parent.getBytesTotal();         percent = (loading/total)*100);         per = int(percent);         percentage = per+"%";         loadBar._width = per;         if (percent>99) {                 _parent.gotoAndStop(2);         } }
MaMoDevil is offline   Reply With Quote
Old 04-20-2005, 03:54 AM   #10
MaMoDevil
Registered User
 
Join Date: Mar 2005
Posts: 55
Default

i just copy and paste the codes from the tutorial to my fla...so it's the same..
MaMoDevil 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 04:20 AM.

///
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.