Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

button to change scenes?

New Here ,
Nov 05, 2008 Nov 05, 2008
I'm a bit new to actionscript 3 so be patient! I'm trying to createa button on the stage which links to a different scene (scene 2) when its pressed, and moves the playhead to a different frame for mouseover (shows button summary) the problem I have is that the jump to a different frame (via framelabel) works flawlessly, however when I try to jump to another scene, it doesnt do anything when the mouse is clicked.

I'm wondering if someone more experienced could give me an idea of what I'm doing wrong?
TOPICS
ActionScript
418
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 05, 2008 Nov 05, 2008
make sure you renamed "Scene 2" to "scene2".
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 05, 2008 Nov 05, 2008
actually, I changed the line

contact.addEventListener(MouseEvent.MOUSE_DOWN, manageMouseClick);

to

contact.addEventListener(MouseEvent.CLICK, manageMouseClick);

and it started working!

now I have 5 other buttons is there any way to condense this if each button goes to a different scene?

I really appreciate your swift response!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 05, 2008 Nov 05, 2008
LATEST
that doesn't make sense unless you have some other relevant code you failed to show.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines