Preloader progress bar

When calling a swf with a two-scene preloader from within a Flash interface, the load status bar pops up showing 100% loaded, and the loader bar just sits there like that until the movie loads.

The preload progress bars work as expected when the swf’s are called from an HTML page.

Any suggestions?

Thanks,
sp

a/s on frame 1, scene 1 in Flash 5:

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);
ifFrameLoaded (“Scene 2”, 1) {
gotoAndPlay (“Scene 2”, 1);
}

frame 2:
gotoAndPlay (1);

As I said, this a/s works fine for a stand-along swf published to HTML, but when I load such a swf into a blank m/c in another flash movie, the load progress bars pops up @ 100% and just hangs there 'til the swf loads.

ideas?
sp

Try changing _root to “this” (no quotes).

When you load it in, the _root is no longer the _root, so your _root in that script is targeting the main timeline of the main movie.

Thanks much. I’ve been busy with studio photography and haven’t had much time to revisit a/s lately, so I looked right past that “small” difference in code which was hanging my preloaders. They now work as desired, and I appreciate your help.

Also, I had a quick look at your site which I judge to be very well done. I especially like your menu scheme. The individual graphics in your portfolio section show promise, as well, and I think you’ll be very successful if you go on and study graphics in college.

Thanks again,
sp

Hehe, thanks splinx :blush:

I actually dislike my current site version, the only thing I like about it is the menu scheme. But it doesn’t work in Netscape, which sucks. My images range from the first week I started Photoshop to the current date… with my next site version the older ones are being removed. I can’t wait for my next site… all flash baby!!! My first one ever.

Thank you for your comments :beam:

[size=1]::lost boosts confidence notch up another level::[/size]