PDA

View Full Version : another question about Preloader


baby_annie
04-01-2003, 07:55 AM
I made a preloader with the aid of "Jesse's preloader tutorial".
When I published in swf format, it only worked with the second Ctrl + Enter ???(not immediatly run the preloader).
But when I published it on Web page, i didn't work. What's happened?
Thank you, 4NNie

Billy T
04-01-2003, 09:38 AM
post the code...

baby_annie
04-02-2003, 10:14 AM
total_bytes = _root.getBytesTotal();
bytes_loaded = _root.getBytesLoaded();
remaining = (total_bytes - bytes_loaded);
percent_done = int(bytes_loaded - total_bytes)/100;
ifFrameLoaded("scene 2", 30) {
gotoAndPlay("scene 2", 1);
}

--------------------------------------------------------------------

Here's the code. I can only see the preload when publish preview swf( with 2nd Ctrl + Enter). When export to swf, I can't see it.
I tried put it on the Web to see, but nothing happens. Only the 2nd scene appears. 2nd scene include 30 frames and a picture. a stop() in frame 30;
Thx,

Billy T
04-02-2003, 11:54 AM
so do you have

gotoAndPlay(1);

in frame 2?

baby_annie
04-03-2003, 10:06 AM
Yes, I do.
I made it from the Jesse'7 lines of code. It's just the same.
It work in preview, but not in the publish. I don't know why?
Jesse's file works only in the preview too.

Billy T
04-03-2003, 10:14 AM
so when you view it online it doesn't work? Is scene 2 a decent file size? Have you cleared your cache?

baby_annie
04-03-2003, 10:24 AM
Oh scene 1 runs so fast that I can't see it. But when I pay attention, I see the preloader. :o < 1 second.
Thx you