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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -