PDA

View Full Version : preloader cde prb


Sonic_Mush
08-18-2002, 12:17 PM
[CODE]
total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
remaining_bytes = total_bytes-loaded_bytes;
percent_done = int((loaded_bytes/total_bytes)*100);
bar.gotoAndStop(percent_done);[CODE]

im using the cde above, that i got off a tut quite a while ago,
my prob is that the bar.goto... code doesnt do anything, the mov clip bar doesnt seem to respond to it and just plays,

b4 now ive just had to settle for if cmds

i have no idea w0ts the prob, any help is helpful :)

vosgien
08-18-2002, 04:11 PM
Hi Sonic,
I cannot see any reason why that code shouldn't work - I use the self same meself and it seems OK each time.
As I am fond of making silly mistakes, probs that I have encountered include
1) Not naming bar in the instance panel
2) Not putting bar on the main timeline ( but inside an mc ) there for path is wrong
3) gotoAndPlay(1) in Fr.2, if you dont loop it it won't work.

Hoope that helps, if not post a test fla

Cheers

Vosgien