A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Go to random

  1. #1
    Junior Member
    Join Date
    Aug 2001
    Posts
    13
    I was wondering is there a command that will make one button go to a random frame and play. I am trying to make an answer thing like un to a Magic 8 ball and I need something to make the answers random.

  2. #2
    Senior Member
    Join Date
    Jun 2001
    Posts
    102
    Try using

    on (release) {
    Number = random(10)+1;
    gotoAndPlay (Number);
    }

    Change the variable in random(10) to meet your needs.

    [Edited by tkivik on 08-21-2001 at 11:09 AM]

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center