I have a scene for the title screen and a scene for the game itself. On the title screen i have a start button, that when clicked it is supposed to go to the game scene; but for some reason this wont work. This is the code I have so far,
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?
I've in my flash scene main page and sub pages scattered in different ereas at the scene, but the scene start from main page and that what will show only, now if I clicked any link the scene carry us to the link page in the same scene, and from that page I can press any other link to start moving over the scene to different pages.
I'm trying to make a game of sorts. I have a button that you need to click that is in the center of the screen. Upon clicking it, it goes to the next scene.What I need here is for the mouse cursor to start in the upper right-hand corner of the stage of the second scene whenever said button is clicked. Not just a movieclip of a cursor, but the actual mouse itself, since it needs to be able to click a button on the other side.Below I've included an example of what needs to be done (not my actual game, but it shows the problem that I'm having. IT IS AN MX2004 FLA FILE.
I'm trying to access a movieclip so I can see when it play a certain framelabel. The code: if (this.solMC_.currentLabel=="nextScene"){ trace("HELLO"); this.imgIntroCont_.gotoAndPlay("start");} Nothing happens when my movie play (it should at least trace "HELLO"). I've read the parts in Flash CS3 Professional Advanced about currentLabel and currentFrame but it still doesn't solve my problem. I've also checked and made sure that the instance-names for the movieclips are right.
I have four buttons currently set up to do all sorts of stuff in a flash file. What I'd like to do is have them all point to the currently displayed movie clip on my main timeline.
At the moment they're set up to test the addChild and removeChild functionality I've written and it seems ok. I would like to trigger removeChild and addChild by the last frame in a movie clip and have my buttons send a play command to my movie clip. That way the clip plays to the end before removing itself and adding a new movie clip.
The movie clip that I would like to trigger the addChild and removeChild functions is actually one of four movie clips so I need to declare play(); and send it to the current movie clip regardless of which one is on the stage. I was thinking about declaring a variable to contain my movie clip so that I can just say play(awesomeMovieClipVariable); and awesomeMovieClipVariable will be equal to the currently loaded movie Clip. I can't figure out how to declare a variable and send my movieClip in to the variable.
I have added frame labels to the final frame of each instance of mc_copy1 mc_copy2 and mc_copy3 to allow a conditional statement something like... if (current frame of that movie clip = frame label) but I don't know how to set that up...
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.
In the launch.exe, I have a loadmovie command which loads the external file video.swf. When the video is loaded, I want the viewer to be able to hit the SPACEBAR at any time which will result in pausing the video (pause.swf appears on screen) and after 3 seconds unloads the video.swf file and jumps to a frame label on the Launch.exe timeline. The code below is what I have at the moment but it doesn't work.
the way my time line is set up is.. Scene 1 > outside MC > drink1MC > steeringWheelMC > jailAnim So how do I get it to go from jailAnim to Scene 1, Frame 3? Or into outsideMC frame 1? I tried this:
stop(); againBTN.addEventListener(MouseEvent.MOUSE_DOWN, again); function again(event:MouseEvent):void { gotoAndStop(3, "Scene 1");
And I get an error saying it cannot find "Scene 1" in jailAnim. I also tried frame labeling in Scene 1 frame 3, but once again I get the error saying it cannot find it in jailAnim.
I am creating a flash site, and inside my frame label for lets say "pageA" the movie clip begins In pageA, fades up shows the content and stops(); alowing for the page content to be read.
After reading, the viewer clicks on the button inside the nav bar, to take them to say "pageB" i now want "Page A" to fade out and then root to "pageB
my thinking is that i insert a stop on the time line of the movieclip, then when the button is pressed it plays, lets say, the remaining 10 frames in the clip (the fade out), and then roots to pageB.
i just need a simple actionscript to do that, if there is an easier way, any one who could point that out and end my misery is a god/godess respectfully!
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
Problem is that my rewind and fast forward buttons do not work properly in the sense that they start to mess up when you fast forward or rewind past the current scene. It seems to just skip through the whole movie and totally mess up the animation.the code for the controls is on a single layer and reads as the following:
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)
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()
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).