A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Random Tell Target

  1. #1
    Junior Member
    Join Date
    Feb 2000
    Posts
    23

    Post

    Hi,
    I have made a screen saver using flash (and creator) but instead od just playing the animation in order i want it to play in random order. So what i want to know is how to create a tell target where it will go to and play a given frame in an animation?

    hope some1 can help me

  2. #2
    Member
    Join Date
    Feb 2000
    Posts
    62

    Thumbs up


    Hi,

    Here's the code which will allow you to goto a random frame in a Tell Target loop.

    In the example, I've used random(5) - simply change this to match the number of frames in your movie-clip.

    ------------

    Begin Tell Target ("/test")
    Set Variable: "frame" = random(5)+1
    Go to and Play (frame)
    End Tell Target

    ------------

    Hope that helps!

    JR

  3. #3
    Junior Member
    Join Date
    Feb 2000
    Posts
    23

    Post

    Thanks


    that works great!


    Harry

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