1 person found this helpful
Have you tried animating the Clip property in the timeline? You'd probably want each clipping rectangle in its own symbol, and then control the symbol playback from the click event on the symbol instance.
If that won't work for your purposes, there's a slight error in your code.
sym.$("clipTangle2").css("clip:rect(0, 159px, 0, 0)");
sym.$("Rectangle").css("clip", "rect(0, 159px, 0, 0)");
I can't use the timeline because I will have approximately 15 of these actions on the screen at the same time. You're code worked, now I just need to figure out how to get the clipping to happen a bit slower with an easing in and out.
So Joe, if I wanted to have the first/ rectangle ease out when clicked over a second or two, rather than just disappear - how would I do that?