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

Posted on 2009-04-27
Last Modified: 2013-11-11
I am using AS 3.0, with Flash CS4.

I have added the below line of code that calls an instance of a movie clip ("mvJigsaw") and plays from frame 'mvstart' which is the start of the clip.

When I play the movie, it does run, and the movie clip works, but in the background I get this error:

ArgumentError: Error #2108: Scene Scene 1 was not found.
      at flash.display::MovieClip/gotoAndPlay()
      at chris_fla::MainTimeline/frame10()
      at flash.display::MovieClip/gotoAndPlay()
      at chris_fla::MainTimeline/buttonClickHandler5()

I understand what it is saying - there is no 'Scene 1' in the instance of my movie clip.

If I try leaving 'Scene 1' out, ie. mvJigsaw.gotoAndPlay("mvstart", null);, the movie runs, but the movie clip instance doesn't.

How can I add a scene to the movie clip instance, so that I can make reference to it?


mvJigsaw.gotoAndPlay("mvstart", "Scene 1");

Open in new window

Question by:turpya
    LVL 6

    Expert Comment

    If you don't have more than 1 scene, using
    should be enough.
    Also, Shift+F2 opens the Scene panel.

    Author Comment

    On frame 1 I have an event listner for a mouse click. When the button is pressed it should go to frame 5. On frame 5 I have the movie clip instance called 'mvJigsaw', and the script to load it.

    When I run the flash animation and try and click on the button, nothing is happening. Does something look wrong here?

    // frame 1...
    btnBG.addEventListener(MouseEvent.CLICK, buttonClickHandler5);
    function buttonClickHandler5(event:MouseEvent):void {
    // frame 5....

    Open in new window


    Accepted Solution

    fixed it..
    //frame 1
    btnBG.addEventListener(MouseEvent.CLICK, buttonClickHandler5);
    function buttonClickHandler5(event:MouseEvent):void {
    //frame 5...

    Open in new window


    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Best way to Display MP4 Video 5 305
    HTML 5 or Flash 7 470
    Reduce the size of the Flash SWF file it executes 12 409
    Action Script commands 4 300
    This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
    The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
    The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
    The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now