Log in

View Full Version : Resolved Start at random frame on load.



lrickyutah
03-20-2009, 07:30 PM
Hi, I need to have a .swf start on a random frame when a page loads.

This seemed to work great . . .

_root.onLoad = function() {
_root.gotoAndPlay(random(_root._totalframes));
}

but any buttons in the .swf no longer work. I guess because the AS for the buttons is on frame one?


//button 1
button1_btn.onRelease = function(){
getURL("http://web1.com");
};
//2 button 2
button2_btn.onRelease = function(){
getURL("http://web2.com");
};