A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: horizontal flip

  1. #1
    Registered User Bzdero's Avatar
    Join Date
    Feb 2001
    Location
    Split, Croatia
    Posts
    488
    I have a mc on a center of scene that i want to flip horizontal in direction where invisible button (that is size of complete scene) takes on release action. The only way, as i could understand, is to set x scale to -100. I did it all. But the only thing that i can't set is- when i press it the right way (first right of that mc, then left- as i made it) it works OK. But when i do it the other way (left then right), it does the opposite. This is because when x scale is put to value -100 it counts it as it is 100 (because the actual value of mc is 100% indeed). I hope you understand it. If you want to help, i will send you the script.
    Thanks!

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Posts
    2,235
    try;

    set variable:"scaler" = -100

    setProperty("mc",_xscale)=scaler
    set variable:"scaler" = - scaler.

    ~mgb

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