Hi,
I used this preloader for my website (great one btw!! only a bit sad it doesn’t work for me :ub: )http://www.kirupa.com/developer/actionscript/tween_as_preloader.htm
I attached the preloader to the first scene of the swf I load on the main timeline. In order to make the preloader work I suppose I have to change the paths. But I can’t seem to figure out how!
The path to my loaded swf is
_level0.shoplist_mc
so I changed the actionscript on frame 20 to
loaded_bytes = Math.round(_level0.shoplist_mc.getBytesLoaded());
loaded_total = Math.round(_level0.shoplist_mc.getBytesTotal());
total_percent = (loaded_bytes/loaded_total)*100;
_level0.shoplist_mc.loaded_text = Math.round(total_percent);
startpoint = _level0.shoplist_mc.bar._x
_level0.shoplist_mc.text._x = startpoint +
_level0.shoplist_mc.bar._currentframe*2.5);
and the actionscript on the bar to
onClipEvent (enterFrame) {
gotoAndStop(int(_level0.shoplist_mc.getBytesLoaded()
*100/_level0.shoplist_mc.getBytesTotal()));
}
but that doesn’t seem to work! All I see is the outro. So the swf loads, but instead of showing the preloader’s ‘% loading’ in the textbox I don’t see anything untill the 100% is loaded. Then it just shows 100 and the outro plays.
Any help is welcome cos I’m stuck-stuck-stuck here!!!