A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Radomizer......What am I missing

  1. #1
    Junior Member
    Join Date
    Mar 2000
    Posts
    7

    Post

    I am using a random number 0,1 or 2 to kick the movie to scenes A, B or C. This loops. For some reason it will only go to A over & over again. What am I missing. Here is the code:

    <font color=red>Frame 1</font>
    Set Variable: "wait" = Random (3)

    <font color=red>Frame 2</font>
    If ("wait" = 0 )
    Go to and Play ("A")
    Else If ("wait" = 1)
    Go to and Play ("B")
    Else
    Go to and Play ("C")
    End If

    Then there are three sections labeled A, B and C. At the end of each of these sections is the code:

    Go to and Play (1)

    Your help is greatly appreciated!



  2. #2
    Information Architect Subway's Avatar
    Join Date
    Feb 2000
    Location
    Switzerland
    Posts
    4,779

    Post

    That's not correct:

    If ("wait" = 0 )
    Go to and Play ("A")
    Else If ("wait" = 1)

    That's correct:

    If (wait = 0 )
    Go to and Play ("A")
    Else If (wait = 1)


    ------------------
    ------------------------
    Subway Design Agency
    PONG 2000
    DARK WATERS the fight
    EDUCATION BOARD (Flash 4 based)

  3. #3
    Junior Member
    Join Date
    Mar 2000
    Posts
    7

    Post

    Hey thanks Subway!


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