A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: need help with arrays!!

  1. #1
    Member
    Join Date
    Jul 2000
    Posts
    87
    Hi!
    here is the question:
    let say i got 5 frames (myframe1, myframe2,......)
    How to put them in array?? Push the button-- Call them randomly , frame by frame and delete from array frame that has been already played .. and not call this frame anymore. until array is empty.
    Hope you understand me
    Thanks a lot!
    Iliap

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Posts
    114

    might not be the most efficient

    But here goes.....

    I don't know the exact code for the idea i have, so I hope you'll be able to decifer my pseudo-code:

    You could set up a random number generator
    number = random(5) or something like that

    Then set up a check variable : "done"&number
    if "done"&number = false
    set variable "myframe" &number&"done" to true
    go to label "myframe" &number
    else
    get a new random number and keep doing it till they are all done


    Hope this helps a little bit

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