View Full Version : gotoAndPlay will not work in browser
iamvoyager
01-17-2009, 12:45 AM
[post deleted]
atomic
01-17-2009, 01:11 AM
Attach your .fla to this forum...
This is my 13000th post... But my unofficial post count is now at 25,139 posts.
iamvoyager
01-17-2009, 02:04 AM
[post deleted]
atomic
01-17-2009, 04:12 AM
Well, it works fine for me on my PC, with IE, FF and Safari for Windows...
iamvoyager
01-17-2009, 04:16 AM
[post deleted]
atomic
01-17-2009, 05:14 AM
No, my bad, you're right!
Tested locally through browsers, and that worked but it obviously doesn't online...
The reason is most likely that this 1.17MBs is streaming in while it loads, and all actionscript will be ignored until the movie is fully loaded...
You would need to stop the movie from playing and add some preloading code, and only have the movie play when it's fully loaded, where if it then encounters some actionscript, the actions will be executed...
But, since you would be adding some preloading code, might as well have the gotoAndPlay action within the preloading code, when the preloading process is done...
iamvoyager
01-17-2009, 05:18 AM
[post deleted]
atomic
01-17-2009, 05:55 AM
This works for me...
http://oldnewbie.110mb.com/public/iamvoyager/header_jan2009.html
Cleared all layers for the first 2 frames, and added this script on frame 2...
//stop();
this.onEnterFrame = function(){
this.stop();
if(this.getBytesLoaded() >= this.getBytesTotal() && this.getBytesLoaded() > 0){
_root.gotoAndPlay("skipaheadimages");
delete this.onEnterFrame;
}
};
And I re-activated your last frame's script...
_root.gotoAndPlay("reloop");
iamvoyager
01-17-2009, 06:01 AM
[post deleted]
atomic
01-17-2009, 06:20 AM
Grrrrrrrrrrreat! ;)
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.