3、ort flash.utils.Timer; import flash.text.TextField; public class dispatch extends Sprite { var dispatcher:time_dispatcher = nee_dispatcher(); var time_count:Timer=neer(1000); var interval_timer:TextField = neer.x=5; interval_timer.y=5; addChild(interval_t
5、; } function shoe(event:TimerEvent) { interval_timer.text=event.target.currentCount; dispatcher.check_division(event.target.currentCount); } }} import flash.events.EventDispatcher;import flash.events.Event;class time_dispatcher extends EventDispatcher { p
6、ublic static var ON_DIV_BY_FIVE:String="can be divided"; public function check_division(num):void { if (num%5==0) { dispatchEvent(nee_dispatcher.ON_DIV_BY_FIVE)); } }} Line8:Creatinganee_dispatcherclass.Iincludedtheclassinthesamefiletomakethetutorialeasiert