A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Making things appear in random order...

  1. #1
    wiggle your jiggle TrytoAnimate's Avatar
    Join Date
    Sep 2000
    Location
    Rhode Island, USA
    Posts
    149

    Cool

    I'm currntly working on a semi-educational movie/game. Basically, what is going to happen is an object is going to appear, and the user is going to be asked to select from the available options to guess what it is. The movie will then move on to another question, and continue on this way for awhile. I pretty much have everything all planned out in my head, except there's one thing I'm stuck on. I want to make it so the questions are asked in a random/jumbled order.

    Can anyone help me figure out how to develop the actionscript to give it a more random aspect, rather than cycle through the questions in the same order every time the movie is started?

  2. #2
    Senior Member dipkya's Avatar
    Join Date
    Mar 2001
    Location
    Mumbai (India)
    Posts
    158
    Hi
    Make a mc which has the questions on its timeline
    I mean inside the mc.
    Suppose if you have 10 questions; then make 10keyframes inside the mc each keyframe should have different question.
    give action stop on first frame.


    on main timeline put a buton which make mc to stop randomly.
    On (Release)
    Set Variable: "dd" = Random (10) + 2
    Begin Tell Target ("/your mc")
    Go to and Stop (dd)[use expression]
    End Tell Target
    End On

    bye


    [Edited by dipkya on 05-14-2001 at 06:42 AM]

  3. #3
    Junior Member
    Join Date
    May 2001
    Posts
    22

    how about show the random stuff on exact frame

    Hi dipkaya

    I wonder the script would work if I take out the "On(Release)", because I wanna show the random stuff on exact frame.

    Thx

    cybix

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