Flash: ActionScript Question

Discussion in 'Web Design and Development' started by noelister, Jan 31, 2006.

  1. noelister macrumors 6502

    Joined:
    Jan 15, 2005
    #1
    Hey all,
    I was wondering if anyone knows how to "flip" a graphic/movie clip via actionscript?

    What I am looking for is the same effect if one would select the graphic or movie clip symbol that is on the stage then click "modify" => "transform" => "flip vertical or horizontal"

    I am not even sure if that can be done on the fly with actionscript...:confused:

    Thanks,
    n
     
  2. londonweb macrumors 6502

    londonweb

    Joined:
    Sep 14, 2005
    Location:
    london
    #2
    I'm no expert, but I've never seen it done.

    You could have a copy of the image symbol already flipped and then load it dynamically to replace the current one. Or you could do a shape tween and have it run when the user clicks the button.
     
  3. robx2 macrumors member

    Joined:
    May 27, 2005
    #3
    yourMovieClip._xscale *= -1

    Had to do that once before and I think this is what worked.
     
  4. noelister thread starter macrumors 6502

    Joined:
    Jan 15, 2005
    #4
    thanks

    robx2 That's what I was needing. Thanks for the quick replys guys.
     

Share This Page