package zoomer{ import flash.display.*; import flash.events.*; import flash.geom.*; public class Zoomer extends MovieClip { protected static var ACTIVE_FRAME:int; protected static var IDLE_FRAME:int; protected function set idle(value:Boolean) { if(value){ if(this.currentFrame!=IDLE_FRAME){ if(this.currentFrame < ACTIVE_FRAME){ if(this.currentFrame == IDLE_FRAME+1) this.gotoAndStop("IDLE_FRAME"); else this.gotoAndPlay(this.totalFrames+2 -(this.currentFrame-IDLE_FRAME)); }else{ this.play(); } }else{ this.stop(); } }else{ if(this.currentFrame!=ACTIVE_FRAME){ if(this.currentFrame > ACTIVE_FRAME){ if(this.currentFrame == ACTIVE_FRAME+1) this.gotoAndStop("ACTIVE_FRAME"); else this.gotoAndPlay(ACTIVE_FRAME+1 -(this.currentFrame-ACTIVE_FRAME)); }else{ this.play(); } }else{ this.stop(); } } } public function Zoomer(){ var i:int; for(i=0;i