actionscript 3 - AS3 "navigateToURL" freezes after 4 "gotoAndStop()" functions -


i developing small .swf embedded in sharepoint page, work except navigatetourl script. .swf have buttons navigate between frames , 1 navigatetourl button per frame. every frame have info page navigate , guessing people read every page before making decision, , here problem begins. let me show script:

trainingsub.addeventlistener(mouseevent.click, irtrainingsub1); function irtrainingsub1(event:mouseevent):void {     gotoandstop(2); }  templatessub.addeventlistener(mouseevent.click, irtemplatessub1); function irtemplatessub1(event:mouseevent):void {     gotoandstop(3); }  servicessub.addeventlistener(mouseevent.click, irservicessub1); function irservicessub1(event:mouseevent):void {     gotoandstop(4); }  communitysub.addeventlistener(mouseevent.click, ircommunitysub1); function ircommunitysub1(event:mouseevent):void {     gotoandstop(5); }  visitbtn.addeventlistener(mouseevent.click, abrirweb1); function abrirweb1(event:mouseevent):void {     navigatetourl(new urlrequest("https://example.com"), "_self"); } 

the problem have found after navigate 4 frames , return of pages, navigatetourl button take fourth page visited.

example, click #1-templates, #2-community, #3-services, #4-training, #5-community, @ point if click navigate button take me "training" , not "community" page, , no matter how many more frames go to, send me fourth page visited.

any suggestion?


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -