ActionScript 3.0, Flash freezes in gotoAndStop() -


i making flash file, using adobe flash cs6 make , using actionscript 3.0 coding, have kind of "a link" called "about", should move flash frame has "about" content number 290 here in case.

here code clicking on "about" button:

import flash.events.mouseevent;  var framenumber:int; var counter:int;  function onclick3(event:mouseevent):void {     if (counter%2 == 0)     {         framenumber = currentframe;         gotoandstop(290);     }     else     {         gotoandstop(framenumber);     }     counter++; } aboutbutton.addeventlistener(mouseevent.click, onclick3); 

this should display "about" frame on clicks (starting zero) , go frame "about" clicked on odd clicks, this:

click on "about" --> show about.

another click on "about" --> hide , go calling frame.

another click on "about" --> show about.

and on..

it works moving between frame , "about" frame (290), problem have "next" , "previous" buttons too, when come "about" page, whole flash freezes , nothing work except "about" button, problem here ? can solve ?

and if there exist, there way display "about" section pop-up message in flash ?


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -