ActionScript 2.0 :: Goto A Specific Frame Inside A Movieclip?

May 14, 2010

I have a time line with 2 frames only. On frame 1 I have a Movie Clip that contains a gallery and its called "gal1" on frame 2 I have another Movie clip called "gal2". Now I have 2 buttons to call each of these galleries which this code in them[code]...

But when I am in gal1 and I want to click on the second botton to call gal2 with the same exact code attached to button2, it doesn't work!

View 5 Replies


Similar Posts:


ActionScript 2.0 :: Goto A Specific Frame Using LoadMovie()

Mar 13, 2004

Anyway, I'm using loadMovie() and then trying to go to a specific frame within it:

[Code]...

When I replace "currentFrame" with a number, say 10, it doesn't work either. This should be so simple but I just don't get it.

View 3 Replies

ActionScript 2.0 :: Goto A Specific Frame Using Var And Array?

Mar 18, 2009

i have, i have a problem with my code.i have a mc (button) that when you click on it should go to a specific frame (the option clicked) and then charge a movie.the button (mc) ist created by a duplicatemoviehere is the code

PHP Code:
stop();import caurina.transitions.Tweener;//_global.addTween= function(){ Tweener.addTween( arguments[0], arguments[1] ); }Stage.scaleMode "noScale";

[code].....

View 2 Replies

ActionScript 2.0 :: Load External SWF - Goto Specific Frame?

Apr 15, 2006

I am loading an external movie with buttons... I would like the loaded movie to goto a specific frame. This is the code to load the new movie

Code:
on (release) {
loadMovie("movies/1.swf", "display");
}

I did search (external swf frame) but nothing came up with what I needed

View 5 Replies

Flash :: Goto A Specific Frame On Click Event?

Oct 21, 2011

I have created a flash with five movie clips. I want when I press each of them to go and play specific frames on the main timeline? How can I do that?

View 1 Replies

ActionScript 3.0 :: Goto A Specific Frame In An External Movie

Sep 9, 2009

I'm making a training video and right now I have a container swf that loads external swf's In the container swf there is about 3 frames in the beginning and on the fourth frame you choose the section you want to go to next. The sections are just external swf's. To load the section / external swf I'm using:

[Code]...

View 0 Replies

Actionscript 2.0 :: Goto Specific Frame Depending On Date?

May 7, 2011

I need to make a function (inside Flash) that will let a swf find out what date it is (each time it is loaded from a server) and then - according to the date - display a frame designated to that date. Optionally, I could have the swf load another swf based on the date.Originally I had planned to make some php wrap-around that would do the loading of different swf's for me - but this is not an option since the swf may soon be uploaded to a server that I cannot feed with php-documents (I don't get access for that - swf only!)So now I must find a way to do this within the swf. But as of right now I am clueless.

One thing I did learn during my googling the past many hours is that the "Date class" in Actionscript is risky - in that it 'reads' what date the end user has on his/her machine. So in the event that some user has the date misconfigured that will screw up what my swf will display.Therefore I am hoping that I could somehow do a variation of php's "echo date" and get the date from the server - but inside Flash. And then have that bit of data call for a certain frame/scene/loaded swf.

View 6 Replies

Flash 8 - Goto Specific Scene In MovieClip

Jun 7, 2009

I am getting better at Flash 8, but I have a problem. I am in a Movie Clip, and when you press 'g' it returns you to the first scene, and I want it to go to the second scene.
on(keyPress "g"){
_parent.gotoAndStop("Scene 2",7);
}
Is there a way you can do that?

View 1 Replies

ActionScript 3.0 :: How To Load Movie And Goto Frame Inside It

May 24, 2010

I am starting to use as3 and I'm with problems. What I wanted to do is: I have a movieclip and I want to load another movie clip inside the main one. That part I can do and I use this code:

Code:
var carregador:Loader = new Loader();
var arquivo tring = "main.swf";
var requisicao:URLRequest = new URLRequest(arquivo);
carregador.x = 150;
carregador.y = 150;
carregador.load(requisicao);
this.addChild(carregador);

Now I want to have a button on the main movieclip with an action to send the loaded movie clip (main.swf) to frame 50. How can I do that?

I tried:
Code:
myBtn1.addEventListener(MouseEvent.MOUSE_UP, qualquer, false, 0, true);
function qualquer(MouseEvent) {
MovieClip(root).carregador.gotoAndStop(50);
}

View 3 Replies

ActionScript 2.0 :: Tell _root To Goto Frame And Then Play Certain Frame Of Movieclip?

May 7, 2006

When you click a button I want my flash to go to the frame label where the movie clip is located, and then play a certain frame of that movie clip.

View 5 Replies

ActionScript 3.0 :: Controlling Movieclip From Array - Goto Inside Movieclip?

Oct 27, 2011

i have dynamic buttons in movieclip and i want the movieclip goto 2nd frame once some one click single movieclip while rest remains in 1st frame.the movieclips can be in arrayi have some code here:

Actionscript Code:
var mc:MovieClip = new MovieClip();for(var i:int = 0 ; i < numberOfButtons;i++){  var btn:MovieClip = new button(); 

[code]....

View 5 Replies

Professional :: Goto New Frame And Stop Current MovieClip?

Nov 28, 2011

In cs5.5, I have a frame with a movie clip on it. When a user clicks a button, I want the movie clip to stop and the user to be directed to another frame. It is correctly redirecting to a different frame, however, the movie clip is still on the stage and playing. How can I modify the following code to make it not just go to a different frame, but also stop the movie clip that is on that frame from playing?

btn_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame);
function fl_ClickToGoToAndStopAtFrame(event:MouseEvent):void {
gotoAndStop(10);
}

View 6 Replies

ActionScript 3.0 :: When Nested MovieClip Ends Goto Next Frame

Feb 14, 2010

I am using flash cs3 and I have a series of quotes that fade in and out. I have a movie clip that does the fading in and out and then nested in there I have the quotes.
fadeInOut1_mc (is the instance of the fading in and out)
quotes1_mc (is the instance of the timeline of quotes nested in the above movie clip)

When the quotes end I would like the main timeline in Scene 1 to move to the next frame and play.
fadeInOut1_mc is in the timeline of Scene 1
If I could do that I think I'd be off to the races, but I'm stuck on it.

View 2 Replies

ActionScript 1/2 :: Specific Frame On A Specific Movieclip?

Sep 1, 2010

I'm trying to get the following movieclip smallbutton to link to frame 5 on movieclip cont.The way the timeline is built is as so:content_mc > cont > (more mcs) > smallbuttonThis seems to be an issue from every answer I've tried so far since the movieclip "cont" is not being called in the main timeline; first there's content_mc and then comes cont.How would I go about getting the movieclip "smallbutton" to link to the 5th frame of movieclip "cont"?This is for AS 2.0So far I'm at:on (release) {  _root.gotoAndPlay("cont");  _root.smallbutton.gotoAndPlay(5);

View 7 Replies

ActionScript 2.0 :: GoTo A Frame In A Movie Clip From Another Movieclip And Play?

May 18, 2005

What is the actionscript if i want to go to a frame in a movie clip from another movieclip? And also for future reference, how do you go to a frame from a movieclip/button to a frame in the main scene? Is it something to do with root?

View 5 Replies

ActionScript 2.0 :: Make A Button Do Two Things / Play A Movieclip And Goto Frame

Aug 27, 2005

What im trying to do is play a movie clip between frames. So say we have two menus, when you are on menu 1 and you click the button for menu 2, a short movie clip plays and then you stop on menu 2. I realise I can do this by putting the movie clip on the main scene timeline, but is there anyway i can put it on the button? I think the action script would be something along the lines of "On release play MovieClip and goto frame X" As i said i want the movie to play as an almost filmic transition between menus, with a fade up and then out (Have got that bit sussed using the alpha controls)

View 3 Replies

ActionScript 2.0 :: Make A Timer That Waits 15 Seconds, And Then Makes A Movieclip Goto A Certain Frame

Nov 3, 2008

Im trying to make a timer, that waits 15 seconds, and then makes a movieclip goto a certain frame. Is this possible with Timer() and an if statement?

View 1 Replies

ActionScript 3.0 :: Reference A Specific Frame Inside A MC In .swf File?

May 30, 2009

I'm trying to reference a specific frame inside a MC in my .swf file from an .as file.What I want is to capture the current frame of the movie clip for the .as file. It's for the purpose of points when you shoot each plane. It's an easy trick of frame 1's plane would be worth 100 points, frame 2's plane 200 points, etc.I thought I'd write a line like this in my collision detection section of my .as file.

Code:
planePoints = currentFrame * 100;

The only problem is, of course, it grabs the current frame of the main .swf timeline that my flash file uses, and not the movieclip that's being called to produce the planes.So I thought I'd be able to specify a path to the movie clip (in this case it's called Airplane in the MC's linkage properties)

Code:
planePoints = Airplane.currentFrame * 100;
Then, of course, it freaks out and says that 'access of possibly undefined property currentFrame through a reference with static type Class.'

I still get confused with AS3 and the way items are handled vs AS2. I've lost track of how many times I type _root.

View 2 Replies

ActionScript 2.0 :: Buttons Inside MovieClip More Specific

Aug 17, 2006

I need to know how to make several buton inside a MovieClip to link URL's, or something else (besides onRelease)? The Movie Clip has already onRollOver and onRollOut states in it. This is the .fla file [URL].

View 1 Replies

ActionScript 3.0 :: Path - Bring A Specific Location Which Is Inside The MovieClip - Remove?

Mar 10, 2010

When I click on the button, it should bring me to a specific location which is inside the MovieClip, and that works. However, from inside that MC, I want to click on the same button, it should bring me on the main time line. How to do that? I am making of a variable (boolean) here. Is there something wrong in my code? (see path.fla)

(b) How do I remove a movie clip? (see path2.fla) When I clik on the square_btn, it brings me to a location inside that movie clip where there is an oval button. When I reach that oval button, I want the square_btn to me temporarily removed on that page.

View 2 Replies

ActionScript 3.0 :: Adding MovieClip At Specific Frame?

Oct 8, 2010

This seems like it should be pretty basic, but after hours of searching for an answer I give up! All I want to do is write code on one frame to take action on another. So for a completely random example, let's say I'm writing my code on frame 1. In that code I'd like to add a movie clip at frame 10. How do I target frame 10? Working in AS3.

View 5 Replies

ActionScript 2.0 :: Moving To A Specific Frame In A Movieclip?

May 10, 2005

I have a problem and I've looked everywhere for a solution but haven't found one yet. I'm trying to move the playhead to a specific frame inside a movieclip but can't find any code that will allow this to happen.

In more detail: I have 5 movieclips that act as my main pages on my main timeline. from inside let's say, from the 5th movieclip on frame 100 i want to move out of this clip and into the 3rd movieclip BUT NOT to go to frame 1 but move to frame 50 of the 3rd movieclip. I've tried everything but no matter what happens the first frame is always displayed, and i don't want that.

View 3 Replies

ActionScript 2.0 :: Moving To Specific Frame In MovieClip

May 10, 2005

I'm trying to move the playhead to a specific frame inside a movieclip but can't find any code that will allow this to happen. In more detail: I have 5 movieclips that act as my main pages on my main timeline. from inside let's say, from the 5th movieclip on frame 100 i want to move out of this clip and into the 3rd movieclip BUT NOT to go to frame 1 but move to frame 50 of the 3rd movieclip. I've tried everything but no matter what happens the first frame is always displayed, and i don't want that. How to jump to a specific frame inside a specific movieclip?

View 3 Replies

ActionScript 3.0 :: Hiding A Movieclip On Stage From Inside A Movieclip Frame Action

May 4, 2011

I have the scenario below. I have a movieclip on the stage (root). Inside this movieclip I have a frame with the action below:

_root.MCHappy.visible = false;
_root.MCSad.visible = false;
_root.MCNormal.visible = true;

I cant get this working with AS3. How is the correct way to do that inside a MovieClip with AS3?

View 6 Replies

ActionScript 3.0 :: Get A Button Inside A Movieclip Link To A Frame In Another Movieclip On The Scene?

Feb 16, 2010

How can I get a button inside a movieclip link to a frame in another movieclip on the scene? I tried this code:

function gotoCenter(event:MouseEvent):void {
MovieClip(root).centermc.gotoAndPlay(2);
}
skruetest.addEventListener(MouseEvent.CLICK, gotoCenter);

..where "skruetest" is the button, "centermc" is the movieclip where I want to go to frame 2. I don�t get errors with this code, but nothing happens when I click the button. What can I do?

View 4 Replies

Professional :: Access An Object (movieclip) At A Specific Frame?

Apr 29, 2010

How can i access an object (movieclip) at a specific frame   which is located inside another movieclip. It's something like this : first movieclip - and inside it,  on frame 10 i have the second movieclip. I want to access that second movieclip ont that 10th frame.

View 1 Replies

ActionScript 1/2 :: Removing MovieClip From Stage At Specific Frame

Feb 8, 2011

I cant get this working at all, I have a movieclip that when it gets to frame 22 I want it removed from stage. As it gets to this frame it increases a variable by 100 and when I have it invisible it keeps increasing the variable infinitely which I dont want. How do I completely remove the movieclip from the stage (it starts placed on the stage from my library).

View 1 Replies

ActionScript 3.0 :: Access A Text From Specific Frame Of MovieClip?

Jun 20, 2011

I have a text (textbox1) in the 3rd frame of a MovieClip (movieclip1).

How can I access that textbox1 from the main timeline, when the MovieClip is not at its 3rd frame?

For example to change it to "Hello!"?

View 2 Replies

ActionScript 2.0 :: Get A Button To Make A Movieclip Go To A Specific Frame?

Jan 13, 2004

What I am trying to do is get a button to make a movieclip go to a specific frame. I have a movieclip that plays a set of frames up to the 100th frame, and then I tell it to go back to and play frame 1 again. However, at about 105, I have another set of frames that I want to play at the push of a button. How would I go about doing this?

View 1 Replies

ActionScript 2.0 :: Calling Specific Frame After Attaching MovieClip

Mar 22, 2005

I was wondering if there's a way where you call out specific frame after attaching a movie clip.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved