A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [F8] Playing different areas of a movieclip randomnly

  1. #1
    Junior Member
    Join Date
    Aug 2004
    Posts
    21

    [F8] Playing different areas of a movieclip randomnly

    Hello, have a small question.

    I have a movieclip that has 3 different idle animations within it. I want the animation to consistently randomnly play throughout the movie. I know this has something to do with Math.ceil(Math.random()*3), but I forgot what to type for when flash comes up with each number.

    Such as if 2 gotoandplay etc.

    Anybody have any idea?

  2. #2
    14yr old Member shavingcream's Avatar
    Join Date
    Jun 2007
    Location
    Santa Cruz CA
    Posts
    272
    are the animations on a timeline or in seperate mc's within the mc? and u dont have to say Math.random()*3 u can just use random(3)
    Signature Goes Here

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