actionscript - How to implement click and pause/resume in flash? -
most flash video tutorials have kind of feature,1st click pauses video,while 2nd click resumes it.
how's implemented in flash?
var on:boolean; function clickhandler(event:mouseevent):void { on = !on; dowhatever(); } function dowhatever():void { if(on) play(); else pause(); }
Comments
Post a Comment