goto55_btn.addEventListener(MouseEvent.CLICK, seeTheThree); function seeTheThree(evt:MouseEvent):void { OzPlayer.seek(221); trace("The playhead time is: " + OzPlayer.playheadTime); } playThrice_btn.addEventListener(MouseEvent.CLICK, play3times); var t:int = -1; var a:Array = new Array(557, 514, 557, 492); function play3times(evt:MouseEvent):void { t = 3; OzPlayer.seek(557); } stage.addEventListener(Event.ENTER_FRAME, playScarecrow); function playScarecrow(ev:Event):void { if (OzPlayer.playing && t >= 0 && OzPlayer.playheadTime > 573) { OzPlayer.seek(a[t]); t--; if (t < 0) { quote.play(); } } if (OzPlayer.playheadTime > 610) { quote.gotoAndStop(200); } }
An imported JPEG file cannot be animated in Flash, so the actual JPEG was imported into Flash and then converted to a movie clip symbol called ScarecrowQuoteSymbol. This symbol was used in three different keyframes of a library symbol named quoteAnimatedSymbol. The Motion Tweens are between Keyframes 1, 200 and 320. Keyframes 1 and 320 have Alpha property of 0, thus the instance of quoteAnimatedSymbol named "quote" is invisible until we say quote.play(); which causes it to become visible and then fade to invisible again.