• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

ArgumentError: Error #2109: Frame label <BUTTON INSTANCE NAME> not found in scene <SCENE NAME>.

Participant ,
Sep 02, 2011 Sep 02, 2011

Copy link to clipboard

Copied

I'm getting this error in the OUTPUT window, when I PREVIEW (COMMAND + RETURN) my SWF:

ArgumentError: Error #2109: Frame label nGallery_btn not found in scene Scene 1.

at flash.display::MovieClip/gotoAndStop()

at BrookBrovazMusic004_fla::MainTimeline/pageSelect()

• The funny thing is that the SWF works the way I want it to. You can view it here:  http://brookbrovaz.com

• I just don't like the idea that something's wrong, according to the OUTPUT window anyway.

Here is the code found in Frame 1, Scene 1 (My flash file only has one scene, called 'Scene 1').

START AS3 CODE:

//page transitions

import fl.transitions.*;

import fl.transitions.easing.*;

TransitionManager.start(nPageHome,{type:Fly,direction:Transition.IN,duration:2,easing:Strong.easeOut})

TransitionManager.start(nPageHome,{type:Blinds,direction:Transition.IN,duration:2,easing:Strong.easeOut});

stop();

nHome_btn.addEventListener (MouseEvent.CLICK,pageSelect);

nMusic_btn.addEventListener (MouseEvent.CLICK,pageSelect);

nGallery_btn.addEventListener (MouseEvent.CLICK,pageSelect);

nContact_btn.addEventListener (MouseEvent.CLICK,pageSelect);

function pageSelect(evtObj:MouseEvent) {

gotoAndStop(evtObj.target.name);

}

//original navigation

nHome_btn.addEventListener (MouseEvent.CLICK,play1);

function play1(event:MouseEvent):void{

gotoAndStop("f01");

}

nMusic_btn.addEventListener (MouseEvent.CLICK,play2);

function play2(event:MouseEvent):void{

gotoAndStop("f02");

}

nGallery_btn.addEventListener (MouseEvent.CLICK,play3);

function play3(event:MouseEvent):void{

gotoAndStop("f03");

}

nContact_btn.addEventListener (MouseEvent.CLICK,play4);

function play4(event:MouseEvent):void{

gotoAndStop("f04");

}

END AS3 CODE.

• I just want to figure out how to NOT get the error anymore. Cause again, everything seems to be working right.

Again, any and all help is very much appreciated.

TOPICS
ActionScript

Views

13.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 02, 2011 Sep 02, 2011

Copy link to clipboard

Copied

you don't have a frame labeled "nGallery_btn".  when you click that button and execute:

gotoAndStop(evtObj.target.name);

you're generating that error.  fix it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 22, 2011 Sep 22, 2011

Copy link to clipboard

Copied

I know I'm generating that error. That's not very helpful.

And I know I need to fix it. That's not very helpful either.

At one point I did LABEL, or NAME [I'm assuming naming a frame and lableling a frame are the same thing; unless I'm missing something?] a frame with the 'nGallery_btn' naming scheme, and then I apporiately targted the frame label/name with, 'nGallery_btn.addEventListener (MouseEvent.CLICK,pageSelect);' and so forth, and it only gave me more errors and on top of that it STOPPED working correctly.

Remember with the above script in my original post, it was giving me 'ArguementErrors' but not real 'Errors' (that would stop it from working). It seems that getting ArguementErrors still allows your SWF to work, but it's just that Flash is telling you it doesn't like how you scripted something, but it won't stop the SWF from functioning, whereas a true Error will stop it from functioning. 

So please try to keep in mind that the SWF works as it is, but it's giving me ArguementErrors, not Errors.

So I just want to clean up the script so that I illiminate the ArguementErrors.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 22, 2011 Sep 22, 2011

Copy link to clipboard

Copied

LATEST

add a frame label (nGallery_btn) to the timeline that contains that code.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines