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

silverlight - Applying a style to ItemContainerStyle in C# -

php - Retrieving comment count from fb:comments widget (Facebook) -

c# - NullReferenceException in MySqlClient.NativeDriver -