Results 1 to 1 of 1

Thread: Start at random frame on load.

  1. #1
    Join Date
    Nov 2007
    Posts
    35
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default Start at random frame on load.

    Hi, I need to have a .swf start on a random frame when a page loads.

    This seemed to work great . . .
    Code:
    _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?

    Code:
    //button 1
    button1_btn.onRelease = function(){
    	getURL("http://web1.com");
    };
    //2 button 2
    button2_btn.onRelease = function(){
    	getURL("http://web2.com");
    };
    Last edited by lrickyutah; 03-20-2009 at 08:07 PM. Reason: simple typo.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •