Change scene
Hello i know this question was before i checked most of the answers but it didn't helped me so i have this piece of code witch should get me on the scene2.So when i am pressing the proper button to go on the next scene (witch i don't get why i have to pressed twice) this error pop out:
TypeError: Error #1006: gotoAndStopscene2 is not a function.
at almost11_scene1_fla::MainTimeline/fl_ClickToGoToScene()
this is the code that i used it:
btn_bricks.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene);
function fl_ClickToGoToScene(e:MouseEvent):void
{
MovieClip(this.root).gotoAndStopscene (1,"scene2");
};
I have done it to work once but it was working only with the debugger still had to press twice but it was going on the second scene and from there further but unfortunately i don't remember what i was changing but i am more than sure that it was this part :"MovieClip(this.root).gotoAndStopscene (1,"scene2");"
I would love to make it work as soon as possible so please it's there someone who can actually figure it out what or where it's wrong ???
