Skip to main content
Inspiring
Mar 3, 2016 6:50 PM UTC
Question

ArgumentError: Error #2108: Scene blue was not found.

i want to go From main timeline to symbol timeline

movieClip_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene);

function fl_ClickToGoToScene(event:MouseEvent):void

{

  MovieClip(this.root).gotoAndPlay(1, "blue");

}

This topic is closed to new replies. Start a new post to keep the conversation going.

5 replies

robdillon
Participating Frequently
Mar 3, 2016 8:04 PM UTC

You don't want to use the name of the current scene when you use gotoAndPlay() or gotoAndStop(). Try:

MovieClip(this.root).gotoAndPlay(1);

Using scenes is a very bad practice. It is a remnant from the very early versions of Flash.

Translate
robdillon
Participating Frequently
Mar 3, 2016 8:09 PM UTC

I replied too quickly. You are editing a symbol, not a scene. In your example "blue" is a movieClip. If that is a movieClip with frames and you have it stopped on a frame and you want it to play through its timeline, then you should be using:

blue.play();

It's difficult to tell, the timeline shows the Library name for the movieClip, but not the instance name. You need to use the instance name, without quotation marks, followed by the command play(); to play the movieClip.

In any case, don't use scenes.

Translate
Inspiring
Mar 4, 2016 3:38 AM UTC

I tried to target a movieclip from inside another movieclip called ball and these dont work!

stop();

movieClip_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene);

function fl_ClickToGoToScene(event:MouseEvent):void

{

MovieClip(root).ballmc.play();

}

Translate