actionscript 3 - stop(); undefined method in as3.0 -


i want move next frame after clicking specific button. tried putting stop(); method says error , result alternating 2 frames .

here's code.

    //the error says call possibly undefined method stop.     //i'm using adobe flash cc.     stop();     public function main ():void {         enter_button.buttonmode = true;         enter_button.addeventlistener(mouseevent.mouse_down, checkform);          player.text = "";     }     public function checkform (event:mouseevent):void {         if (player.text != ""){             gotoandstop(1);             sendform();          }         else{             player.text = "please enter name";         }     } 

try movieclip(root).gotoandstop(1); - assuming you're trying change frames on main timeline , not object.

also, it's not clear you're using code, (on timeline, in class, or in main .as) stop(); should placed in actions panel of every frame of timeline / movieclip.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -