How do I check if an effect is in effect?

My component is listening to the move event and runs some code when the
component is moved. But if there is a move effect then I need to handle
things differently.

addEventListener(MoveEvent.MOVE,moveHandler);

public function moveHandler(event:MoveEvent):void {

  if (effectIsRunning) {
    // do something
  }
  else {
    // do something else
  }
}

dorkie in full effect dork from dorktown

Reply via email to