dcsimg
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Scene not being found AS3

  1. #1
    Junior Member
    Join Date
    Dec 2011
    Posts
    10

    Scene not being found AS3

    hi i have a button with a function of a gotoAndStop but when it is clicked this output error appears:

    ArgumentError: Error #2108: Scene 1 was not found.
    at flash.display::MovieClip/gotoAndStop()
    at fixing_fla::iconInterface_mc_4/home()

    Here is the code i am using:


    phoneIcon_mc.addEventListener(MouseEvent.CLICK, home);

    function home (event:MouseEvent):void{
    gotoAndStop("1", "1");
    }
    when i use scene 1 instead of 1 in the gotoAndStop function the error is the same but chanes to "..Scene Scene 1 was not found...)

    Please urgent help is required thanks

  2. #2
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    What did you name the scene?

  3. #3
    Junior Member
    Join Date
    Dec 2011
    Posts
    10
    i have left as its default "Scene 1"

  4. #4
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    Then that's what you need to use. Also, if you are using a frame number rather than label, you should pass a number, not a String.
    Code:
    gotoAndStop(1, "Scene 1");
    Make sure the capitalization matches.

  5. #5
    Junior Member
    Join Date
    Dec 2011
    Posts
    10
    i have a movie clip called iconinterface_mc and inside of that movie clip i have another movieclip called smsinter_mc iv created a button and i want the button to bring the user back to the iconinterface_mc any suggestions??

  6. #6
    Flash Genie letschillout's Avatar
    Join Date
    Feb 2007
    Location
    31.52949, 74.347272
    Posts
    146
    try this!

    MovieClip(root).iconinterface_mc.smsinter_mc.gotoA ndPlay(1);
    Charag - 3D, Flash Games, Animations,
    Website Development & More...


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center