ActionScript 3.0 :: Get Button To Go To Another Scene Error #2108 Scene Not Found
Oct 22, 2010
I believe I'm not alone in this problem but I don't see any answers in any of the forums.I have a movie clip that has a button that I wish to take me and play my first scene at frame 1.I labeled my the 1st frame "startLabel" and my scene is named "mainScene", and that's where I want to go from my "button" that is placed in my "movie clip symbol scene".
The code below works fine in CS3. But I get the following code when I try to run it in CS4:
ArgumentError: Error #2108: Scene Scene 2 was not found. at flash.display::MovieClip/gotoAndStop() at introActionscriptWorkFile_Scene1_fla::MainTimeline/gotoScene2()
Here is the code: (Note: "scene2Frame1" is a frame label).
I am a new student and recently I am getting this error in every program that I write or import into Flash:
ArgumentError: Error #2108: Scene * was not found at flash.display::MovieClip/gotoAndPlay() at _5_fla::MainTimeline/clickPlay()
It doesn't matter what the scene name is because I have tried cutting and pasting the scene name from the scene window and it happens on every button in every program..
I've just started self-learning Flash, so am not very familiar with it. I tried to do a game e-card and there were some problems which i couldn't find an answer for them after hours googling: I'm using Flash CS5 AS3. So I'm trying to create a button that would lead to another scene, i named it "ok button" (instance - "ok_btn") and the scenes are just "scene 1" , "scene 2"
i have a game im making but it is useing scenes to navigate between pages. every time i click on a button i have created, it gives me this code:
ArgumentError: Error #2108: Scene subnav was not found. at flash.display::MovieClip/gotoAndPlay() at buttontesting_Fight_fla::ryusrevenge_17/mv1()
it does this for every scene i have. I even made the buttons in the begining and made them invisible so that they were in the entire time line but not usable or seen till the end of the time line. I dont know what could be going wrong.here is the rest of the code i have for one of my scenes.
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.
ArgumentError: Error #2109: Frame label null not found in scene Scene 1. at flash.display::MovieClip/gotoAndPlay() at intro_fla::MainTimeline/intro_fla::frame606()[intro_fla.MainTimeline: :frame606:3]
I'm trying break down a large Flash project into smaller swf's using a Loader :
stop(); var reqA:URLRequest = new URLRequest("New_Inro.swf");var loaderA:Loader = new Loader(); function imageLoadedA(event:Event):void { addChild(loaderA);} loaderA.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoadedA);loaderA.load(reqA);
Some of these swf files are animations which have code that states :
MovieClip(parent).gotoAndStop("frameThree");
The first loader works but I cannot get that swf to move on to the next frame(frameThree) to load the next swf file
Instead I get this message
ArgumentError: Error #2109: Frame label frameThree not found in scene Scene 1. at flash.display::MovieClip/gotoAndStop() at New_Inro_fla::MainGuy_1/frame146()[New_Inro_fla.MainGuy_1::frame146:2 ]
ArgumentError: Error #2109: Frame label instance121 not found in scene Scene 1. at flash.display::MovieClip/gotoAndStop() at Untitled_fla::MainTimeline/goLabel()
this is my code:
stop(); function goLabel(e:MouseEvent):void {
[code]....
i am using a movie clip button to open a swf with a loader. hope i m not missing any information/other coding....
I have created a new Flash file using A3.It has a menu system which all works, I have included trace code that outputs button pressed.So the next step is when the right button is clicked it takes them to the next scene. Please note I have coded it in AS3. When I compile it returns no error however at run time when I click on the buttomit returns the following error:
Menu 1, button 1 ArgumentError: Error #2109: Frame label contact not found in scene Scene 1. at flash.display::MovieClip/gotoAndStop() at menuformason_fla::MainTimeline/itemButtons()
I have a movie clip button, however, once you click on it the output will say: ArgumentError: Error #2109: Frame label instance15 not found in scene Scene 1. at flash.display::MovieClip/gotoAndStop() at index_fla::MainTimeline/goLabel() i am new in flash and trying to learn as3. i've looked at what error this is but i cant get my head around it. what i m trying to do it if you click on a button, a swf file will load on the the page. but it is not loading and the error comes up!
When I try and run my program (check .zip), I get the following error:
ArgumentError: Error #2109: Frame label math not found in scene Scene 1. at flash.display::MovieClip/gotoAndPlay() at MainGameforRAT1_fla::MainTimeline/TouchingGrass()[MainGameforRAT1_fla.MainTimeline::frame1:55] ArgumentError: Error #2109: Frame label math not found in scene Scene 1.
ive made a button in the scene 1 which i have managed to navigate to scene 2 but when i click the button it goes to scene 2 but displays everthing that is in scene 1 in scene 2, how can sort this out so upon the button click in scene 1 it goes to scene 2 and only display content in scene2.
I've created a class which simulates an action for example a ball bouncing about a screen thus I'd create it like so:
Code: var Ball1:ball = new ball(x,y);
How would I go about adding this to a loop, in a sense of every frame add another ball till you reach the maximum balls currently after looking in help, google and forums this is all I could find
When I place a FLVPlayback Object on scene 3 I get the following errorTypeError: Error #1009: Cannot access a property or method of a null object reference.atUntitled_fla::MainTimeline/__setProp_flv_promo1_Scene3_Layer1_0()atUntitled_fla::MainTimeline/frame1()
When I place a FLVPlayback Object on scene 3 I get the following errorTypeError: Error #1009: Cannot access a property or method of a null object reference. atUntitled_fla::MainTimeline/__setProp_flv_promo1_Scene3_Layer1_0() at ntitled_fla::MainTimeline/frame1()
My navigation file just doesnt seem to work heres the code: stop(); function navigation(event:MouseEvent):void{ gotoAndStop(event.target.name); trace("button was clicked"); } home_btn.addEventListener(MouseEvent.CLICK,navigation); news_btn.addEventListener(MouseEvent.CLICK,navigation); about_btn.addEventListener(MouseEvent.CLICK,navigation); portfolio_btn.addEventListener(MouseEvent.CLICK,navigation); contact_btn.addEventListener(MouseEvent.CLICK,navigation);
I have labels home, news, about, portfolio, contact. I keep getting this error ArgumentError: Error #2109: Frame label instance6 not found in scene Scene 1. at flash.display::MovieClip/gotoAndStop() at whywontyouworkdamyou_fla::MainTimeline/navigation() and my buttons dont work. I am seeing spaces in the word navigation why rofl its ok in edit mode? The Fla [URL].
everything here is fine. It opens finely. But... i want to pass parameters where if i click a button in html page My.swf should open a particular scene called 'Scene 2' rather than scene 1. i tried
I've got this output: ArgumentError: Error #2109: Frame label pubPlayer not found in scene pubPlayer. at flash.display::MovieClip/gotoAndPlay() at MTAssignment2General_fla::Backround_2/goVideos() and my code is: stop(); function goVideos (e:MouseEvent):void{ gotoAndPlay("pubPlayer"); } video_btn.addEventListener(MouseEvent.CLICK, goVideos);
does anyone know what i need to do in order to dont have errors?
so I have some buttons that, as of right now, simply trigger the scene to move on while at the same time killing some particle effect animations I have spawning when the animation is idle. What I now need to do is make these events move on to a specific scene AFTER the rest of the scene's animation has played out (about 400 more frames) I'm figuring that the gotoAndPlay command has to be tied to some sort of timer variable that I would have to figure out based on my fps. Or maybe there is a way to set up a timer directly tied to a certain amount of frames allowed to go by. I'm pretty noob at actionscript, so keep that in mind. Here is the script at the point where the animation pauses to await user input on the buttons:
No..not that type of parenting ;DOK,I have a main scene, then sitting in the root scene I have 2 movie clips.1)centro2)fotoIn the first movie "centro" there is a menu btnI want this menu btn to call up mclarge + its frame (1) thats housed 3 levels inside the foto mc in root.
Main scene - (1) centro (banner which houses menu btn) (2) foto_mc - Main_boy_mc (<---works if menu btn houses in here)
I have this script in Scene 4: stop(); import flash.events.MouseEvent; contact_bttn.addEventListener(MouseEvent.CLICK, bClick); function bClick(event:MouseEvent):void{ gotoAndStop("getInfo"); }
I have a frame labeled getInfo in Scene 4. When I test scene it works fine. When I test movie I get this: ArgumentError: Error #2109: Frame label getInfo not found in scene Scene 4. at flash.display::MovieClip/gotoAndStop() at ig_index_3_fla::MainTimeline/bClick()
I have been using a fl.controls.list object for awhile now, which is placed in an external .swf which I then load into my main .swf.
Everything had been working fine until today. Today I rearranged the .swf and moved the list to the 3rd scene in the movie.
Now whenever I get to that scene, the list crashes, with the following code. Is there something I need to to do include certain resources in that scene?