1 Replies - 5218 Views - Last Post: 14 November 2013 - 04:31 AM

#1 zille  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 22-June 13

Moving From One Scene to Another using button problem

Posted 13 November 2013 - 10:03 AM

I have made a small quiz application in flash. Beginner.
I have added this code for button select country:
/* Click to Go to Scene and Play
Clicking on the specified symbol instance plays the movie from the specified scene and frame.

scountry.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_9);

function fl_ClickToGoToScene_9(event:MouseEvent):void
{
	MovieClip(this.root).gotoAndPlay(1, "Map");
}



When I run scene and click on button I get this error:

Quote

ArgumentError: Error #2108: Scene Map was not found.
at flash.display::MovieClip/gotoAndPlay()
at Assignment1_Menu_fla::MainTimeline/fl_ClickToGoToScene_9()

Attached Image
My Screenshot.

I am on the Menu Scene and want to go to the Map scene.
Anyone can help me.

Is This A Good Question/Topic? 0
  • +

Replies To: Moving From One Scene to Another using button problem

#2 zille  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 22-June 13

Re: Moving From One Scene to Another using button problem

Posted 14 November 2013 - 04:31 AM

I tried with this code but getting this error:
ArgumentError: Error #2108: Scene Map was not found.
at flash.display::MovieClip/gotoAndStop()
at Assignment1_Menu_fla::Nav1_4/goscountry()

Can anyone check it. The project file is here: Natok



import flash.events.MouseEvent;

scountry.addEventListener(MouseEvent.CLICK, goscountry);
function goscountry(event:MouseEvent):void
{
	Object(root).gotoAndStop(1, "Map");
}

tuitorial.addEventListener(MouseEvent.CLICK, gotuitorial);
function gotuitorial(event:MouseEvent):void
{
	Object(root).gotoAndStop(1, "Tuitorial");
}

exit.addEventListener(MouseEvent.CLICK, goexit);
function goexit(event:MouseEvent):void
{
	Object(root).gotoAndStop(1, "Exit");
}

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1