Skip to main content
Participant
February 16, 2021
Question

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

  • February 16, 2021
  • 1 reply
  • 790 views

hey , can you help me ?

i have assignment in adobe flash professional to Create button Trailer 1 , it will link to video
page Trailer 1. The text description will fade in and appear from right into the page. The logo and button will animated appear from right side of the screen to the allocate position. Page Trailer 1.Icon home will link back to Home Page .The logo will fade into the page.The subtitle “Trailer 1” will animated appear from left side of the screen to the allocate position.Create functional animated button (dropdown Button) for Button Play, Button
Pause and Button Stop.The video is pause at start.

 

ArgumentError: Error #2108: Scene Scene 2 was not found.
at flash.display::MovieClip/gotoAndPlay()
at Untitled_fla::MainTimeline/toTrailer1()

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

    This topic has been closed for replies.

    1 reply

    kglad
    Community Expert
    Community Expert
    February 16, 2021

    first, that's from an as3 project.  make sure that's part of the assignment (and it's NOT supposed to be html5/canvas).

     

    the errors are from a gotoAndPlay("Scene 2") and gotoAndPlay("Scene 1").

     

    you're using scene names as if they were frame labels and animate is telling you there's no frame labelled "Scene 2" in the Scene 1 (and there's no "Scene 1" label in your Scene 2.

     

    to remedy, use the proper syntax for directing the timeline to a different scene and frame:

     

    gotoAndPlay(1, "Scene 2");

     

    will direct the timeline to the first frame of Scene 2 and

     

    gotoAndPlay(1,"Scene 1");

     

    will direct the timeline to the first frame of Scene 1.

     

    p.s.  if you need help finding the frames that contain your code, click file>publish settings>swf>and tick "enable debugging".  in fact, you should do that anyway so you get more into in your error messages.  there's no benefit to leaving that unticked.