ActionScript 2.0 :: Making A Movie Clip Go To A Certain Frame
Mar 12, 2004
Making a movieclip move to a frame label.
Ok, I have my main movie, with a movieclip on layer2. The movieclip is named slideclip.
In slideclip I have two frame labels (open, and slide).
When I click on a button in scene1 ( My main movie) I want Movieclip Slide to move to frame label "slide".
How can I make a movie clip move to a certain frame?
View 5 Replies
Similar Posts:
Dec 22, 2009
I am having problems making a movie clip goto a different frame when an item on a list box is selected. Here is my code
list.getSelectedItem().label;
_root.onEnterFrame=function(){
if(list=="2"){
mc.gotoAndStop(2);
}else
mc.gotoAndStop(1);
}
View 1 Replies
May 30, 2007
What action script would i need to make a button in one movie clip goto and play a frame in another movie clip? Im not very good at flash but i've been trying my usual codes but it dont work..
View 2 Replies
Jun 30, 2009
it isn't such a big problem bur for a beginner like me it is.I have a movie clip called "Lion_beginning_mc", inside of it I have 3 Key Frames and Inside each and one of them I have different shapes.For example:Key Frame number 01 - DogKey Frame number 02 - CatKey Frame number 03 - MouseI want to move this movie clip "Lion Beginning_mc" form Key frame number 1 to Key frame number 20.I want the Dog,Cat and a mouse to change between each other only once while moving from Key Frame number 1 to 20.And then when the movie clip "Lion Beginning_mc" reaches his goal another movie clip or a frame (with a shape) will start.
View 5 Replies
Jun 28, 2010
Scene1->MovieClip1->Image1(as a button)Scene1->MovieClip2->MovieClip3->MovieClip4->frame1Now I want to call frame1 from Img1 have a parent Scene1 common.How can I do this.I have tried
on(release){
_parent.MovieClip2.MovieClip3.MovieClip4.gotoAndPl ay("frame1");
}
[code].....
View 2 Replies
Sep 27, 2009
Making a Comic book/Video game with Flash Action Script 2.0. Check out my blog ive uploaded a couple of demos on it.Anyways i want to make a movie clip appear on stage when the user finds a key. The movie clip would be used as a trigger to send the player into an other version of the second level where a door would now be unlockable (only if he has the key).I know how to make the hittest work its making the movie clip appear on stage with an action that is giving me problemes.
View 2 Replies
May 20, 2009
I have several different movie clip components in a flash file that I need to hyperlink to different addresses. I cannot for the life of me figure out how to add a url to these objects.
edit: I should add that I see an invisible button as being one solution.
View 9 Replies
Jun 27, 2009
I created a simple slideshow type thing that involves two buttons that allow a user to go left or right to view additional pictures. All of the pictures are stored in a single movieclip.When the buttons are clicked it just changes the x value of the movie clip.Everything works perfectly.Currently when it reaches the last picture (the very end of the movie clip) it scrolls back to the beginning. But I have to change it so that it appears to loop... Basically creating another instance of the movie clip on the fly.how to do it?And here's a snippet of the code to give you an idea:A few notes... photo_mc is the movie clip that moves around (and stores all the pics)All the actionscript is in the first frame.btn_left & btn_right are the buttons
Code:
final_x=225 ;
speed =3.5;
[code]....
View 1 Replies
Aug 18, 2011
i created a two layer in time line in one layer there is a movieclip called mc1. In the same layer in 15th frame i have another movie clip mc2. Inside the movieclip mc2 i created another movie clip at frame10 now if i clik the the mc1 on first frame The movie clip should goto and stop at tenth frame
View 4 Replies
Mar 26, 2004
i have a movie clip with a dynamic text field being animated...i have a text file with this in it
&textline1=time
&textline2=place
&textline3=year
&textline4=month
now how do i make the movie clip to first go from frame 1 to 10( last frame in teh movieclip) with the text time and then when the movie clip starts again it should say place and so on and so forth.. depending on how many textline variables i define in the text file?
View 5 Replies
Apr 30, 2009
is it possible to link a frame inside a movie clip from main time line?
View 4 Replies
Jun 30, 2011
i'm very new at flash and finally ended all the work i wanted to do here. now i just need to had the actions so it will run properly. basically i just need it to stop in each frame and run the animation of the movie clip on that frame. if it's i can put the project here so you can see what and were i need to had the actions.
View 1 Replies
Feb 23, 2010
I have a character, And in its movieclip I`ve got 3 frames (first has an idle pose, second a walking pose and third a running pose), each with a movieclip with an action in it.Well, what I wanted is that when I am walking with this character, and press the SHIFT key he runs.And I`ve got the following code
if (Key.isDown(Key.LEFT))[code]....
But when I click the shift button, he shows the first frame static of the movie clip in frame 3 (running frame).
View 9 Replies
Nov 2, 2010
I would like play head of a movie clip to return to a certain frame of that clip so a MC inside it would loop. I now have: stop(); as the action.
View 2 Replies
Jun 8, 2002
i've tried placing the code in the actions pnel of the mc; on the mc at the main time line and in various other unspeakable places... but i always get the same error warning me that this code can only be used in movieclip instances and that my stupidity levels are reaching dangerous levels. (error: 'Symbol=stage_mc, Layer=actions, Frame=1: Line 5: Clip events are permitted only for movie clip instances
onClipEvent(enterFrame){'
i fear somebody will reply to this with:'the code goes on the movieclip instance'...at which point i will take up a career in knitting (i knew i shouldn't have given up the course in the first place)
View 12 Replies
Jan 7, 2009
I have an invisible button and only one mc, the mc loops 3x then stops, this is defined with as in mc.
Now i want to play the movie from the invisible button but only loop it once. Which means i would like to play it from frame 1 to frame 215.
And also when u rollout i would like the movie to stop and go to frame 1.
this is my button code so far
Code:
on (rollOver) {
tellTarget ("loader")
{
[Code]......
View 12 Replies
Jun 7, 2010
I am making a quiz/game, and it works like this, two teams that have to take over the united states, by answering history questions, so right now I have it were when you click on a state, it takes you to a question (on a different frame in the main timeline), then I have a problem, if you get the question right it takes you to the "board" of the United States (that works), but when you are back the color of the state should change its color to red (on frame of the clip) if south got it and blue (another frame of the clip) if north got itBut instead i changes back to grey (default color, all start grey to begin with). I don't and can't seem to figure this out
View 2 Replies
Mar 14, 2009
I use flash cs3 and as2 for the game.
1:Basically, I want to make a little circle so that when I put my mouse over it it will give me 10 points then disapear, so I wrote this in the movie clip actions:
Code:
on (rollOver){
_root.score += 10
mc1._visible = false;
}
2: I would also like to know, how do I make a movie clip with a code but when I copy it the actions won't disapear. That would save a lot of my time because I wouldn't need to copy/paste the code in each movie clips.
But when I test the game and put my mouse over it, it just adds me 10 points but it doesn't disapear.
View 4 Replies
Apr 4, 2009
I'm currently creating a slideshow effect when you have a series of MC's from left to right and when you rollover one of the movie clip's, it expands 150%. That i got down. However, I want it where when this occurs, the clip appears in front of all the other clips in the sequence and right now only a portion of it does. The other portions appears behind one of the MC's to the right. How can I alleviate this using AS3 code?
View 2 Replies
Apr 11, 2009
I have a button inside a movie clip that when pressed it launches another movie clip. That part works great. The problem I'm having now is either removing the original movie clip or at the very least making it invisible when the next movie launches. So far for my button script this is what I have:
onRollOver=function(){
this.gotoAndPlay("_over");
};
onRollOut=function(){
[code]...
View 3 Replies
Sep 24, 2010
I'm using the code and assets from this page. [URL] I'm creating ads for websites and they don't allow continual animation after 3 loops. I added to the above code to make it fade at the end. I think I'm close, but it doesn't seem to fade away as I had hoped, it just keeps falling.
Am I missing some code that I need to replace? Do I need to put a frame # somewhere when I want it to fade? Does the last part of the code go on a frame at the end? The snow just keeps falling even though it's reached the last frame. What do I add to make it stop?
Here is the code. The link above will show you exactly the type of animation I'm looking at. I added the fade part after "init ( );"
init = function () {
width = 300;
// pixels
height = 250;
[Code].....
View 2 Replies
Sep 24, 2010
(remove the spaces to correctly link, my post count is too low to include links)
kirupa. com/ developer/flash8/snow. htm
I'm creating ads for websites though and they don't allow continual animation after 1 to 3 loops. What I'm hoping to do is one of the following:
Rather than have an abrupt stop to the snow on the last frame and have them oddly disappear, I'd like to have it stop creating snow on (for example) frame 100 so it's all gone by the last frame (for example) 130.
Here is the code.
init = function () {
width = 300;
// pixels
[Code]....
On a side note, I have the AS code on frame 1 currently, and just to test it out I added a stop(); to the last frame, but the snow kept falling. Do I have to add code to this snow code to get it to stop at a certain frame?
View 6 Replies
Sep 24, 2010
I'm using the code and assets from this page. [URL]. I'm creating ads for websites though and they don't allow continual animation after 1 to 3 loops. What I'm hoping to do is one of the following:
Rather than have an abrupt stop to the snow on the last frame and have them oddly disappear, I'd like to have it stop creating snow on (for example) frame 100 so it's all gone by the last frame (for example) 130. I'm using flash 8, AS2.
Here is the code.
init = function () {
width = 300;
// pixels
height = 250;
On a side note, I have the AS code on frame 1 currently, and just to test it out I added a stop(); to the last frame, but the snow kept falling. Do I have to add code to this snow code to get it to stop at a certain frame?
View 1 Replies
Oct 7, 2008
how to make a movieclip invisible so I can use it as an invisible button?
View 3 Replies
Feb 4, 2010
I have a movie clip that is about 30 frames long. I've placed an instance of it on the main timeline and it follows a motion path. My motion path ends after about 20 frames. At this time, I've inserted a keyframe which is preventing my movie clip from playing the remaining 10 frames.
I tried adding an ActionScript layer where the last keyframe is and it reads:
instance.gotoAndPlay (20)
Doesn't seem to work. Just a note that this is around frame 292 of the main timeline. Also note, a new keyframe begins on another layer with a different movie clip.
View 5 Replies
Jun 26, 2009
I have a movie into which I am loading external swfs. this all works fine but some of the content is duplicated and where there is slimline text it shows that there are two layers. see the header on white here:
how can i set the alpha to 0 or remove the host movieclip, from the externally loaded swf. does that make sense? so once the external swf has loaded into the empty movieclip then the parent movie disappears.
View 0 Replies
Feb 2, 2004
I am making a movie clip that acts a button. I am pretty much using the good old on{rollover} gotoandStop(2)Well is there any way i can make it so my onRollOver effect finishes before my onRollOut effect occurs (like if a ball bounces when I roll over it, can I make it so it finishes bouncing even though i rolloff before the animation ends, and then triggers the onRollOut effect?)
View 2 Replies
Dec 25, 2006
How would you go about making a movie clip shoot a bullet from it, but have the movieclip able to move around, like a sidescroller game...
View 2 Replies
Apr 16, 2007
Say I can create 200 different movie clips on the stage when I press a button and want to destroy them when I click on them, how would I do this.
[Code]....
View 3 Replies
Feb 11, 2009
Is it possible to tween the up and over state of a button without making it a movie clip? I just have a button that inverts its bg and text color on over, and I'd like to tween that in the simplest way possible.
View 0 Replies