Professional :: Loading Sequence - GotoAndPlay Scene 2 - Frame 1
Apr 5, 2011
how to code a simple load sequence scene. This is how I had it set up in AS2 -I've got two scenes, "Scene 1" and "Scene 2". I've got a 10 frame shape tween in Scene 1. On the 9th frame, I assigned actionscript that will check to see if frame 40 of Scene 2 is loaded, and if it is, gotoAndPlay Scene 2, Frame 1. Then have action in frame 10 of Scene 1 that says to gotoAndPlay scene 1 frame 1 of the current scene. This way scene 1 loops until frame 40 of scene 2 is loaded, at that point, scene 2 frame 1 plays.
How could I set this up in AS3? Here is what I tried - I've got two scenes, "Scene 1" and "Scene 2". I've got a MC that is a simple shape tween that loops in the "Scene 1". I'm trying to assign codein "Scene 1" that will check to see if frame 40 of Scene 2 is loaded. If it is, gotoAndplay Scene 2 frame 1. If frame 40 of Scene 2 is not loaded, continure to loop the MC unitil it is. Here is the code I've got for the MC in the "Scene 1"
-How would I make it so when my clip gets to a certain frame, it will randomly gotoAndPlay a random frame on a different scene? -All of the frames that I want it to randomly go to are labeled.
I am making a small website out of flash and I have a photo gallery in a separate scene. I have five photo galleries and so I have five buttons that will lead to those five galleries.
The code of one of the five buttons is
on (release) { _root.gotoAndPlay("Content_Photography"); }
Works great, but the first 10 frames of this new scene "Content_Photography" is an intro and then I would like that it would jump to the corresponding gallery that these galleries will be laid out on the timeline.
What would i put after _root.gotoAndPlay("Content_Photography");?
I know that you are not supposed to target a frame number but here's the deal.I have 2 scenes (Scene 1 and Scene 2). Both scenes are currently the same and I will be customizing them at a later date.The scenes are made up of multiple MC's and I need to target a particular frame. I have named the frame and tried the following script to no avail. When it does work, it goes to the first frame of Scene 2 every time like it is just traveling along the timeline and jumping to Scene 2.[code]
I have a mc INSIDE one of the layers in main scene, how to make it go to specified frame back on the main scene, when finished playing? Flash, cs4, as3.
I need to make it so when the movie clip that is in frame 1 of scene 1 is done it plays frame 2 of my scene 1. How do I do this Im making a cartoon where a characters mouth which is the movie clip which is moving and when it is done moving i want it to go to and plays frame 2 on scene one. Its to late to do everything on the timeline, and I cant just copy the movie clip, i could but I want to just be able to do this go to and play on scene one from the movie clip instead of doing all my work all over again
I need to make it so when the movie clip that is in frame 1 of scene 1 is done it plays frame 2 of my scene 1. How do I do this , PLEASE HELP ME!!! Im making a cartoon where a characters mouth which is the movie clip which is moving and when it is done moving i want it to go to and plays frame 2 on scene one. Its to late to do everything on the timeline, and I cant just copy the movie clip, i could but I want to just be able to do this go to and play on scene one from the movie clip instead of doing all my work all over again.
For some reason i'm having problems swapping scenes in my flash movie. At first i put the action in a "actions" named layer and a link to a button. So basicly when scene1 loads the frame 1 action is "stop ();". The viewer clicks on button1 which has a code of;
I'm working on a friends site - Lorenshaw.net using CS3 and all of the code for the buttons is pointing to the right scenes yet it goes to the wrong scenes. Does anyone know what the problem could be? I also have some stop actions at the end of each scene. For buttons I'm using On release, gotoAndPlay "Scene, frame number"
Im designing my own game in flash, iv set up a score text box and it works fine. Except i just cant seem to get it to gotoandplay another frame,scene, when it hits a certain score??
hi i am having trouble getting my buttons to work right in flash cs4. is it possible to have a button gotoandplay a frame inside a different movieclip? if so how?
in CS3, and preferably Actionscript 2.0, to make a mouse over a button action that would go to a specific scene and frame, depending on the button? I have 5 buttons, and ould like, on rollover only...no click/down, to have the playhead go to a different scene and start playing from a specific frame #. Or do I have to do the click/down action?
Ok... I have 2 scenes.... 1st scene is an intro menu with several movie clip symbols (let's call them buttons for all intents and purposes) that gotoAndPlay various sections of the 2nd scene when clicked ... The various buttons on this intro screen point to different frame numbers in the 2nd scene... button1 goes to frame 1 of scene 2... button 2 goes to frame 10 of scene 2.... button 3 goes to frame 20 of scene 2 and so on....
when I click the 1st button, it takes me to the 2nd scene at frame 1 and correctly shows me that page ... (all 2nd scene pages have a navigation bar at the top to access the other 2nd scene pages) ... when I click on a navigation button it takes me to the next page within the 2nd scene that I am looking for and each progresive page works correctly.
Created a new file & new layer with 300 frames.Only used 150 frames for the animation.How do I edit (trim) the scene / project down to JUST the frames I need (ie 300 to 150) prior to export as swf?
I am working with an iMAC running 10.6.8.I have created a flash file with only the main scene, which has a List button and a Home button. The List button has 20 links as a scroll list, each link installs a movie clip from the library.The problem I am having is the List button works fine until I add the Home button, then the Home button works fine, but the List button only works on the frame that the action is on. Each button is on it's own layer, and runs the whole length of the show, which is 220 frames. I have a stop label at each place a movie clip is to play.
If I remove the Home button from the main scene and put it into each movie clip, how do I tell the movie clip to go to the main scene frame 1?
lets say i want an external FLV flie to play using a component. How can I force at the end of the flv file to go to another frame/scene?So imagine an external video clip plays, once its finished your force to a screen that says "click to go to my website".is this possible? Or does the flv have to be imported to stage???
I have made 2 scenes. I am trying to jump 1scene to next scene you can find source file from here scene1 is LoderScreen scene2 is GameScreen and frame label is "start" I did this gotoAndPlay("start","GameScreen") But it is showing error/ Original FLA file [URL]
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 ]
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 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'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
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 spent many hours trying to nut this one out.. I have an animated button which I am animating using a tween class. It works fine, my problem is this, I need to jump to another Scene after the animation has finished.