- Replay button in flash cs5.5
- var animation:Animation;
- replay.addEventListener(MouseEvent.CLICK _replay);
- function _replay(e:MouseEvent = null):void
- {
- if(animation != null)
- if(animation.parent)
- animation.parent.removeChild(animation);
- }
- animation = new Animation();
- addChild(animation);
- }
- _replay();