Hi,
I have a Flash website that has a preload scene and then a stop() action on Scene 1, frame 1… It works perfectly when viewed online from my home computer. I decided to try it at the local library but instead of stopping on frame one of the main timeline, the movie starts playing through the timeline until it comes to a stop() at frame 8. why does it do the right thing,( stop at frame 1) from my home computer but not at the library? They are both accessing the website from the same server. Here is the preloader code:
onClipEvent (load) {
_root.stop();
}
onClipEvent (enterFrame) {
var totalk = _root.getBytesTotal()/1024;
var loadedk = _root.getBytesLoaded()/1024;
var percent = Math.round((loadedk/totalk)*100);
if (percent<100) {
_parent.txt = percent add "%";
_xscale = percent;
} else {
_root.play();
}
}
By chance, does the _root.play() override any stop() commands on the main timeline’s frame 1 and cause the movie to roll on until the next stop() command?
I have tried other combinations, such as _root.gotoAndStop(“scene 1”, 1) and _root.stop() again; but in these cases, the movie never leaves the preload scene.
So I don’t know how to deal with this except to dump this preloader and try another. I have had so many problems getting preloaders to work properly in this last year.
Thanks so much to anyone who wants to tackle this issue. In case you would need the url, here it is:
Thank you!