Skip to main content
Participant
August 4, 2011
Question

Flash Game Problem Need Help! Action-Script 2.0

  • August 4, 2011
  • 1 reply
  • 842 views

Im making a flash game its a sniper game btw and i am have a problem with after killing the target for it to go to the next frame. I have tried on(press) on(release) for buttons i hae tried lots of different stuff (1.3 hours of trying) and so i was wondering if you could help me out. and here the link to the download for the source .fla yes i uploaded it cuz i really need the help ! thanks for any help! http://fileape.com/?act=download&t=yz6Lhp0oDdAB-7whXWB62WIoACXMVgV7r1flbKy17aJZamyC-vXNFwxtZP6pwXV50NGk3XWK9anDa4m6tBfGEtPOZwKbuZFcaFyGyEGiYqeILdcvVuEZy3QVHX3xY6S170xapkdrZJN9lov4khxeqJ4_S6aGRpNQWjTT3MhudPLa1ZBAi79CiPqX5kN835lD7vzAU0O6WJZaK6jZBROg2A,,

or


http://fileape.com/dl/2gI8YiSW9QGzIgAu


if the top one doesnt work (the top one shouldnt have a time wait)


Thanks for all help
also please if you can find the problem itd be nice to know what it is

This topic has been closed for replies.

1 reply

November 29, 2012

you need mouseEvent(event.onRelease)gotoAndStop.(insert frame numbet);

ps. plz mark helpful/cerect responses.

Inspiring
November 29, 2012

I will not download the .fla - maybe if you hosted the .swf I would view it.

to change frame use: gotoAndStop(<framenumber>);

(without the < >, just a number for the fram).

I recommend you use movieclips for buttons and place all code on the main timeline. For movieclips, give them an identifier name (bottom left int he properties box of the movieclip) then on the main timeline use:

movieclipName.onRelease = function(){

gotoAndStop(10);//change 10 to the frame you wish to go to. gotoAndPlay(10) plays from the frame.

};

Ned Murphy
Legend
November 29, 2012

If you haven't noticed this post is over a year old.  To be responding to it is a waste of time.  FrostByte has been doing this with a number of very old postings here today.  It is only clogging things up for current postings.