Argh - also having a problem - I want to have the swf on rollOver,
zoom a bit, rollOut, zoomback. Fine. But upon click, it should turn
off this function -- and reset itself; course, this ain't working:
import mx.effects.*;
import mx.effects.easing.*;
import flash.events.MouseEvent;
var nowClicked:Boolean = false;
public function doZoom(event:MouseEvent):void {
if(nowClicked){
if(hitIt.isPlaying){hitIt.reverse()};
hitIt.play([event.target], false);
return
};
if (hitIt.isPlaying) {
hitIt.reverse();
}
else {
// If this is a ROLL_OUT event, play the effect
backwards.
// If this is a ROLL_OVER event, play the effect
forwards.
hitIt.play([event.target], event.type ==
MouseEvent.ROLL_OUT ? true : false);
}
}