Skip to main content
Participating Frequently
December 19, 2006
Question

Action Script for next frame

  • December 19, 2006
  • 2 replies
  • 735 views
Hi,

I'm making an interactive world map.

The idea is that the mouse rolls over a country which makes the country goes red and the countries name appears. I have got this to work fine, but I am trying to use some script so that when the mouse clicks down and releases on the country, another screen appears which is a screen with information about the country (the original screen needs to disappear - it's not a box of text which will appear but a whole new screen)

Can anyone advise? I have tried to use a basic 'on release go to' script but it doesn't work.

Thanks very much.
This topic has been closed for replies.

2 replies

kglad
Community Expert
Community Expert
December 19, 2006
you can use a button or a movieclip. but if the button is on the timeline that you want to advance, this.nextFrame() or just nextFrame() would have worked.
Participating Frequently
December 20, 2006
Thanks, I've got this to work now, but when it advances to the next frame it keeps looping back to the first frame. I've tried using stop() on the frame I am advancing to, gotoandStop(2) in the first frame and a few other things I have found in the looping problem threads on this forum. I'm publishing as a flash movie not HTML.

Any thoughts?
kglad
Community Expert
Community Expert
December 19, 2006
show the code you tried to use.
Participating Frequently
December 19, 2006
I've tried...

on (release) {
nextFrame();

}

and

on (release) {
gotoAndPlay();

}

and have also tried both the above with frame numbers in brackets

Thanks.
kglad
Community Expert
Community Expert
December 19, 2006
if your attaching your code to a movieclip and that movieclip is on the timeline that you want to control use: