|
-
easy for someone
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.
-
Senior Member
you can horizontally flip a movie clip with,
instanceNameOfClip._xscale *= -1;
so you could have a random chance of the clip being flipped using,
if (Math.random() < 0.5) { // 50% chance
instanceNameOfClip._xscale *= -1;
}
hope this helps
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|