A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: flip an image on attach movieclip?

  1. #1
    Member
    Join Date
    Oct 2002
    Location
    England
    Posts
    80

    flip an image on attach movieclip?

    I'm attaching a movieclip to the stage and then setting certain variables to create a rondom feel. I want flash to randomly select NORMAL or MIRRORED. The effect is just a horizontal flip of the original movieclip. I know this is easy for someone, please help.

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    that would mean altering _xscale:
    _xscale=-100;

    assuming you know about the random() function.

    gparis

  3. #3
    Member
    Join Date
    Oct 2002
    Location
    England
    Posts
    80
    I do indeed GParis thanks once again for youre help.

  4. #4
    Member
    Join Date
    Oct 2002
    Location
    England
    Posts
    80
    Come to think of it I dont know how to set random to either one or the other.

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