»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 08-02-2003, 10:46 PM   #1 (permalink)
Registered User
 
slinky's Avatar
 
Join Date: Dec 2002
Location: cali
Posts: 769
slinky is on a distinguished road
flash experts!

i downloaded the "advanced preloader" from spoono and pasted it all exactly as is. when i test it out, it jumps to Scene 2 and doesn't play.

here's code from the preloader scene (scene 1):
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
loadedkbytes = Math.ceil(loadedbytes/1000);
totalkbytes = Math.ceil(totalbytes/1000);
if (loadedbytes == totalbytes) {
nextScene ();
}
frame = int(loadedbytes/(totalbytes/100));
tellTarget (_root.loader) {
gotoAndStop (_root.frame);
}


in the next frame is:
gotoAndPlay (1);


oh btw, im using flash 5. this is really annoying me. any help is greatly appreciated!


Last edited by slinky; 08-02-2003 at 10:52 PM.
slinky is offline   Reply With Quote
Old 08-02-2003, 10:48 PM   #2 (permalink)
Registered User
 
PyroSama's Avatar
 
Join Date: Nov 2002
Location: Boise, Idaho
Posts: 2,361
PyroSama is on a distinguished road
Send a message via ICQ to PyroSama
Send creatures a PM with a link to this thread.



PyroSama
__________________
[imgbox=#000000]http://clanimo.com/themes/bluebyu/images/logo.gif[/imgbox][url=http://www.clanimo.com]ClanIMO.com[/url]
PyroSama is offline   Reply With Quote
Old 08-03-2003, 03:52 AM   #3 (permalink)
Registered User
 
Creatures's Avatar
 
Join Date: Jul 2002
Location: Switzerland
Posts: 3,962
Creatures is on a distinguished road
Send a message via ICQ to Creatures
first of all, it should work in flash 5!
then, i think i give you a simpler loader, because that one is a bit strange in my eyes

Code:
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
Percent = bytes_loaded/bytes_total;
getPercent = Percent * 100;
if (getPercent < 100) {
	play();
         //it goes to frame 2
}  else if (bytes_loaded==bytes_total) {
	gotoAndPlay(3);
         // i put there a link to the next scene, i donnu why i didnt make this direct but you can make nice "after"loader things, before go direct to the main movie, www.backagain.ch.vu <- check out the menu
}
_root.per = Math.round(getPercent)+"%";
// i created a dynamic text with the variable called "per" and then it displays the loaded percent!
try it and if it doesnt work press CTRL + ENTER while you see the movie in flash5!

post if you still need help!

Creatures
__________________
___)
(
____)REATURES
Creatures is offline   Reply With Quote
Old 08-03-2003, 01:04 PM   #4 (permalink)
Registered User
 
slinky's Avatar
 
Join Date: Dec 2002
Location: cali
Posts: 769
slinky is on a distinguished road
well the thing is im not that good in action script and stuff like that so... i thought id send u the part that refuses to work.
slinky is offline   Reply With Quote
Old 08-03-2003, 01:09 PM   #5 (permalink)
Registered User
 
Creatures's Avatar
 
Join Date: Jul 2002
Location: Switzerland
Posts: 3,962
Creatures is on a distinguished road
Send a message via ICQ to Creatures
ok gonna check it...

Creatures
__________________
___)
(
____)REATURES
Creatures is offline   Reply With Quote
Old 08-03-2003, 01:24 PM   #6 (permalink)
Registered User
 
Creatures's Avatar
 
Join Date: Jul 2002
Location: Switzerland
Posts: 3,962
Creatures is on a distinguished road
Send a message via ICQ to Creatures
well so far, i still have to add the loading bar, but i'm pretty tired today, i will do that tomorrow. i just dont get that code so i added mine, the bar and the total frames isn't working, but the rest should work!

ahhhhhhhhhhhhhhh i just remembered something, flash 5 has got problems with preloader, so you cant check them in the program, you have to upload and then check it! maybe that's the problem

ok tip: make a copy of your original, test mine. if it doesnt work, it's flash 5, else it's the code

Creatures
__________________
___)
(
____)REATURES

Last edited by Creatures; 08-03-2003 at 02:06 PM.
Creatures is offline   Reply With Quote
Old 08-03-2003, 01:35 PM   #7 (permalink)
Registered User
 
slinky's Avatar
 
Join Date: Dec 2002
Location: cali
Posts: 769
slinky is on a distinguished road
i thought about uploading it first, but instead preview'd it in browser thinking that would be the same as having it online.

im pretty sure yours worked since it was too fast for me to see, but it went to scene 2 and played. the only thing is there is no bytes loaded or progress bar yet, so i'll send u the complete fla...

Last edited by slinky; 08-03-2003 at 01:39 PM.
slinky is offline   Reply With Quote
Old 08-03-2003, 01:40 PM   #8 (permalink)
Registered User
 
Creatures's Avatar
 
Join Date: Jul 2002
Location: Switzerland
Posts: 3,962
Creatures is on a distinguished road
Send a message via ICQ to Creatures
well try to press CTRL + ENTER and then you'll see if it works and look into "debug" at the top, there you can change the connection speed!

Creatures
__________________
___)
(
____)REATURES
Creatures is offline   Reply With Quote
Old 08-03-2003, 01:45 PM   #9 (permalink)
Registered User
 
slinky's Avatar
 
Join Date: Dec 2002
Location: cali
Posts: 769
slinky is on a distinguished road
it's set at 14.4 speed and i dont see it but it has lvl0 loader showing up in the debugger so i suppose that went well.
slinky is offline   Reply With Quote
Old 08-07-2003, 07:50 PM   #10 (permalink)
Registered User
 
firewolf's Avatar
 
Join Date: Aug 2003
Location: Canada
Posts: 197
firewolf is on a distinguished road
Send a message via ICQ to firewolf
I don't know if I'd call myself an expert, but I do know a lot about Flash.

This is one of my flash websites...
http://www.si-games.com/tact/

If you could send me your .fla file, I'd gladly try and make your preloader work for you.

E-Mail: firewolf@sasktel.net
firewolf is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 02:01 AM.