Copy link to clipboard
Copied
Hi! I've got a problem with the code of my game in animate and I hope you'll help me. I've got two frames in the timeline, one for the intro and the other one for the game. In the first one i've got a start button with the next code:
stop();
Start.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
function fl_MouseClickHandler(event:MouseEvent):void
{
nextFrame ();
}
and it works but if I put it the game doesn't work and if I remove it the game works. Do you know what's happening? I'll be very grateful if you answer it because I have to deliver it soon. Thanks in advance!!
You used ActinScript (Flash) code. If you convert it to Canvas project i doesn't work
Maybe your game code is in first frame? should be in second.
And if you use nextFrame action - it stops second frame.
Try using play() command and use stop in second frame.
Pawel
Copy link to clipboard
Copied
This is a non-technical support forum. I'd suggest asking over in the Animate forum or the coding forum.
or
Copy link to clipboard
Copied
is this an html5/canvas game?
if not, what's the problem you see when you include that code?
Copy link to clipboard
Copied
If it's a Canvas project, the first problem with that code would be that it's syntactically invalid JavaScript.
Copy link to clipboard
Copied
You used ActinScript (Flash) code. If you convert it to Canvas project i doesn't work
Maybe your game code is in first frame? should be in second.
And if you use nextFrame action - it stops second frame.
Try using play() command and use stop in second frame.
Pawel