Cant Get Frame In Main Timeline To Play Frame In Movie Clip
Hi all,
Ok, I want a section of a movieclip to play up until a certain frame on the main, or _root timeline. Then I want a different section of the same movie clip to play. Now I have the movie clip all set up all fine and dandy, yet I cant get it to the frames or 'section' it is playing when it reaches the apropriate frame. I have the following code on the _root timeline frame.
Code: gotoAndPlay("stop"); (I have a frame label "stop" where it should be) Is this the right code I should be using? It has worked in the past, but it has been in between an on (something) event/action (not quite sure of the correct termanology there)
Please help.
FlashKit > Flash Help > Flash General Help
Posted on: 04-20-2005, 11:10 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
GotoAndStop From The Main Timeline To A Frame In A Movie Clip
Im relatively new to Flash and very new to this forum. I'll try to conform to the rules/suggestions about posting that I read.
My problem is that I have an instance of a movie clip on my main timeline. I have actionscript on the first frame of the main timeline and I want to be able to, based on user input, direct people to the appropriate frame in my movie clip. I have tried a few things and none seem to work. This includes labeling the movie clip which seemed to work for someone else in another post i read that was similar. Right now i have this -- _root.gotoAndStop("pius5", dest); -- where "pius5" is the name and label of the movie clip and dest is the frame. Any help would be greatly appreciated.
One other thing. If I copy the frames from pius5 to the main timeline I can easily use the gotoAndStop command but the movie clip become much larger in size when pasted. I thought this was strange. Anyone know why?
Thanks in advance,
Matt
Goto Frame Label In Main Timeline From Movie Clip
Hi..
Could somebody point me in the right direction.
I have a buuton in a movie clip that I need to point at a frame label
on the main timeline.
I am using :-
on (release) {
removeMovieClip(dultanMC);
_root.play("Scene 1", "myframelabel");
}
It does not go to "myframelabel" but to the first frame of the
main timeline.
I've tried gotoAndPlay ("Scene 1", "myframelabel");
that just removes movie and does not redirect.
Please could somebody advise.
Playing A Frame(s) Inside A Movie Clip From Actionscript On The Main Timeline
hello i was wondering if someone could tell me the correct syntax for playing a frame(s) inside a movie clip from actionscript on the main timeline.
I have tried: this.movie_clip.gotoAndStop("frame_name");
i don't want it to play, just stop on the frame (which does not contain any script).
also: gotoAndStop("this.movie_clip", "frame_name");
and: gotoAndStop(this.movie_clip, "frame_name");
please help!
thanks in advance
Al
Problem Getting A Button From A Movie Clip To Play A Frame In Main Scene
I am at a stumbling block and need help!!
I have created a animation that is a scrollbar full of buttons as a separate clip, the prob is that when I set the action from the button of that clip to the main scene, the action doesn't happen.
Please help! you can reach me by aim or e-mail and I will send you the fla to help me debug, thanks!!
How Do I Play One Frame From The Main Timeline From An MC ?
as the title sais , i am in a movie clip and when i click on this button i wanna gotoandstop a frame that is on my main timeline. I cant put this
on (release) {
_root.gotoAndStop (framenumber);
}
because i want it to go to the main timeline in the second scene , but when i put _root... it goes to the root of the whole prject i want it to go to the root of the second scene
Action On MC To Play A Frame On Main Timeline
Flash 8
I'm trying to get a Movie Clip (in the 1st frame of the main timeline) to end by going back to frame 10 of the main timeline in Scene 1. I put an action in the MC's last frame
gotoAndPlay("_parent", 10); but nothing happens
I also tried "scene 1" " _root1" "_level1
Is there a way to navigate from the Movie Clip to the main timeline of Scene 1??
Thanks
Play A Movieclip Once, Then Go To The Next Frame On The Main Timeline
Hello, I'm sorry for the long topic's title.
I have an animation I'd like to use as an INTRO in my flash movie. I will joint it inside a movieclip, giving it the istance name "INTRO". And I position it in the first frame of the main timeline.
How can I make possible that played once my intro (my movieclip) the player jumps to the second frame of the timeline, named by the istance "HOME".
Is it possible?
Thankyou very much for your help,
and great things.
Stebianchi
How To Address A Button On The 5th Frame Of A Movie Clip With Action Script Located On The First Frame Of The Main Time
I'm trying to make a button appear on frame 10 of a movie clip and write actionscript on the main time line that addresses that frame 10 button. I'm not sure of the method I need to do to get that frame 10 button to get a url. I tested the same button when put on frame 1 and it worked, but I'm not sure how to address buttons and other symbols that appear as a result of the playhead moving to different places on movie clip time lines.
Can anyone help, or give me a link?
Thanks
Dennis
Attach Code
//works
_root.buttons_mc.go_btn.onRelease = function(){
_root.mall_mc.gotoAndPlay(1);
//a stop action is placed on frame 10 of the mall_mc movie clip
};
//this button is inside the mall_mc movie clip on frame 10
//doesn't work
_root.mall_mc.url_btn.onRelease = function(){
getURL("http://yahoo.com");
};
//An instance of the same url_btn is dragged on to frame 1 of the mall_mc
//movie clip and given an instance name url_frame1_btn
//works
_root.mall_mc.url_frame1_btn.onRelease = function(){
getURL("http://yahoo.com");
};
Loading A Movie From A Movie On Main Timeline, To A Specific Frame On Main Time Line
I need help loading a movie from a button in a movie on the main timeline. To a specific frame on the main timeline.
i.e. I have a navigation movie, in it is a load of buttons. I want to load separate movies to a blank movie on a specific frame on the main timeline.
I guess I am having target problems, I can load the movie in the main timeline, but not the frame i want it or the the blank movie in that frame.
A Button That Plays An MC Clip, But Goes To A Diffrent Frame On Main Timeline
Hey all
Newbie in need of some help, am using Flash MX 2004. Ok, im trying to deisgn a photography site and need some help with the buttons. When you click between pictures (Clicking on the thumbnails) I want a disolve to white, between the images, so theres a smooth transition.
How I thought I could do this is to have an MC, that is called into action when the button is clicked. So the process would be like this......
On click-play movie
-jump to frame X and stop.
The movie would be a second or so long, but the jump to frame would have to be done quicker than that, and underneath the MC- if that makes sense.
I know that this can be done by using diffrent scenes, but I have about 100 pictures to put on and dont really fancy making 100 scenes!
If anyone can help with this then you will make my day, cheers
Targeting Movie Frame From Main Timeline
Hello,
How do I call up a specific frame in a movie clip from my main timeline? My movie clip instance is called 'menu' and the frame I want is 2.
I don't really understand _level,_target,_root, or _parent commands and have not loaded the movie in any special way other than dragging it onto the main timeline.
Any help would be greatly appreciated.
Thanks
Movie Clip Symbol Won't Play On Main Timeline
Hi everyone,
I've created a movie clip symbol with it's own animation on its timeline. I've placed this symbol onto the first frame of the main timeline but when I test it, it doesn't play. There's no stop actions or anything on either timelines so I'm not sure why this is happening. I thought that the animation in a movie clip symbol will automatically play (i.e. if you test in a browser) once it's on the main timeline - is this right? Or am I doing something wrong. Maybe I need to tell it to play?
Appreciate any advice.
Tell Movie Clip To Play/stop From Main Timeline?
I have a main timeline that has a movieclip called "Clock". At one point in the main timeline I want the movieclip to play and at another point I want it to stop. I can't get script to control the movieclip.
Any tips?
Thank you so much for your time.
Consecutive Movie Clips On The Same Frame (main Timeline)
-flash movie has 1 frame with about 10 layers.
-on each layer there is a 10-frame movie clip
-after one movie clip, I want another movie clip on another layer to play.
-the other mc "instance" is named "mc02"
-on that 2nd mc, it starts with a stop() frame so it doesn't play right away.
-the 2nd frame is called "start01"
-here's the action script on the last frame of the 1st MC :
stop();
_root.mc02.gotoAndPlay(start01);
I thought this would work, but it doesn't...any help greatly appreciated!
Thanks in advance....
md
Please Help First Website Movie Clip Placed On Main Timeline Wont Play
Hi! if any one could please help me it would be greatly appreciated!
So im trying to make my first website in flash and ive ran into a problem. I have the main movie, my main time line. I have a few animations going on in this that were all created in that main time line. those work fine. however, i created two new movie clips (still inside the same .fla file) and animated them with thier own time line. I then thought you could just drag and drop these movie clips onto your main time line and they would play inside the movie. but when i press ctrl + enter, the dont play!
here are some points of intrest.
my main movie (the main time line) is 130 frames.
the movie clips i made inside the same .fla file are between 400 and 600 frames.
i placed both new movie clips on the 130th frame in the time line with their own layers.
also there is a layer for actions on the 130th that has stop();
i thought that maybe the time line had to be as long as those movie clips i created and so i extended it but they still didnt play.
im thinking action script is involved? please help me im getting pretty frustrated and im sure there is something simple to achieve this.
here is a link where you can download the source files im using. if you open the file the two movie clips i created are called front two and front one and are layers with the same name.
this board wont let me fully post my link cause the last word in it is s*h*i*t* so youll have to type it in your browser. its http://public.me.com/matts*h*i*t* (just remove the asterisks)
also i noticed that my file is huge. i used photoshop to create everything and them imported it into flash. is there a way i can reduce this size?
thank you sooo much! please help!
-Matt
Telling Main Timeline To Play Backwards From Movie Clip
Hi,
I am trying to tell flash from within a movieclip to start playing a specific frame within the main timeline only after it has finished playing the movieclip backwards. I can get the movieclip to play backwards fine but it's getting the main timeline to start from frame 1 which doesn't work. I have the following code on the first frame of the movieclip (which is called video) but it doesn't seem to do anything
onClipEvent (enterFrame) {
if prevFrame == 2 {
_root.gotoAndPlay(1);
}
else if {
_root.video.gotoAndPlay(2);
any suggestions?
Jumping To An Specific Frame In A Movie Loaded Into The Main Timeline
Hello,
Is there any way to jump to an specific frame in a movie that was loaded into the main timeline?
That´s what I did (but it didn´t work, it always jump to the first frame of the external movie):
1. I created a mov_volta.swf movie with different labeled frames as pres01_entra, pres02_entra, pres03_entra...
2. I created an empty movieclip, put it into an empty layer in the main timeline and named its instance "presidentes_volta"
3. Below this layer I put another movieclip which instance was called "presidentes_vai"
4. In this movieclip I have buttons with codes like this one:
code:
on(release) {
loadMovie("mov_volta.swf", _root.presidentes_volta);
_root.presidentes_volta.gotoAndPlay("pres01_entra" );
}
5. So, what I want is: load the movie "mov_volta.swf" into the empty movieclip "presidentes_volta" which is in the main timeline (that´s OK), and then jump to the frames "pres01_entra", "pres02_entra", "pres03_entra"... in the movie "mov_volta.swf". This second part is not working. Instead of jump to the desired frame, it always jump to the first frame of the movie.
Is there any way to control this? Thank you for your help
(I hope that you can understand my English. I read much better than write. In Brazil our regular English classes are poor...)
Control The Play On The Main Timeline From Within A Loaded Movie (not A Movie Clip)?
Question... I have a movie (main movie) that loads another movie (movie 2) automatically. Movie 2 contains a button that loads yet another movie (movie3). Now I’m having trouble with this next part... When movie3 loads I want "main movie" to stop where it’s at in the timeline and stop all other loaded movies until the user clicks another button where upon movie 3 will go away and "main movie" will resume. Movie 2 is like the paper clip guy in Word and movie 3 is my help movie. Therefore, it can be accessed at any point during the main movie and I don’t want to use a goTo command to jump to a frame label or scene. Does anyone have any idea how to control the play on the main timeline from within a loaded movie (not a movie clip)?
Targeting A Frame In The Main Timeline Of The Root From An Externally Loaded Movie
Hi! I'm trying to target a frame called "home_portfolio" on the main timeline from a loaded swf. Here's the code on the portfolio button:
on (release) {
tellTarget ("_root") {
gotoAndPlay("home_portfolio");
}
}
On the "home_portfolio" frame is an action to load the portfolio movie. However, it ignores this.
After reviewing some of the other posts I've changed the code on the portfolio button to be"
_root.gotoAndPlay"home_portfolio"
yet when I publish the swf the output says
Symbol=_bottom nav, Layer=text, Frame=1: Line 1: ';' expected
_root.gotoAndPlay"home_portfolio"
I don't understand why either one of these codes won't work. Can you help? Thanks so much
How Do I Make A Button In A MC Go To And Play A Frame Label In The Main Movie?
Basically I'm making a MC symbol that contains a bunch of moving buttons. On the buttons I put the action:
on (release) {
gotoAndPlay("Scene 1", "pow");
}
where "pow" is the frame label I want the movie to go to. On this frame is a stop action.
If I just drag out an instance of the button it seems to work fine, but the buttons that are "inside" the MC don't work.
What am I overlooking?
Thanks,
Jonny
? About Jumping From A Frame In A Clip To A Frame In The Main Scene
Hello. I have a question. I have a question about jumping from a frame in a movie clip to a frame in the main scene. In my main scene, I have a "stop" action in frame one. In this frame, I have a movie clip that is 100 frames long. On the 100th frame of that movie clip, I want to jump to the 5th frame of the main scene. This is the actionscript that I tried, but it didn't work:
this.gotoAndPlay(5)
//This is the code that I placed in the 100th frame of my movie clip, but it doesn't seem to work.
What am I doing incorrectly? Thanks in advance for any advice! (I am using Flash 5)
Trying To Make Movie Play Frame X To Frame Y Then Switch To Frame Z..
Hello,
I was hoping someone could help me out with an issue I'm having. I have my flash on multiple scenes, and would like to play an animation when clicking on the navigation button before switching to a different scene.
I'm halfway to accomplishing this.
Here is what i used
Code:
_root.gotoAndPlay("changepage1");
_root.onEnterFrame=function(){
if(this._currentframe=="changepage2"){
gotoAndPlay("Home2",1);
}
}
The above code is on a blank keyframe. Changepage1 is the start of the animation and Changepage2 is the end of the animation.
Upon clicking the navigation button it plays the above scenes.
However it doesn't change scenes to scene "Home2".
Thank you in advance for all your replies.
I Need A Movie Clip To Play, Stop And Play Again In The Next Frame
I need a movie clip to play, stop and play again in the next frame. So pretty much i have to get the movie clip to play once and stop then when you go to the next frame it should play again once and stop again. What i have is a slide show type thing where you click on the next button to advance to the next frame and in each frame i have all the animations in their own movie clips.
-Thanks
Playing A Movie Clip At Frame On Timeline Question
Hi,
I am having trouble learning how to trigger a movieclip at a specific frame in my main timeline.
I have an example fla file here: (its about 400kb)
http://www.harmoniccycle.com/harmoni..._03a_JMS_2.zip
Its part of this cartoon that I am working on:
top 10 reasons to wear a skateboard helmet
I want to get the hair movie clip to hold at frame one until frame 40 then I want it to play to its end and stop and hold while the main timeline plays out.
Can someone help with some instruction?
thanks,
mike
Making Movie Clip Start When Timeline Gets To Frame
Hello,
I have a movie clip call t-home, it is on the stage with an instance name of home...
When i get to a certain frame in my intro i want the movie clip to start playing, (also when they click a button later on, bur dont worry about this)
its not playing though... this is my script on the timeline
telltarget ("_root.home"){
gotoAndPlay(2);
}
and ideas
Let Movie Clip Play Before Next Frame
i have a movie clip that loads a swf file.
loadMovie ("mov_talent.swf", testing);
name of my movie is testing.
is there an actionscript that lets you play the movie before it goes to frame 2. it's not a preload.
i just want to show an animation and when it stop the text fades in. the text would start on frame 2.
thanks
Tell Movie Clip To Play At A Certain Frame
I am doing something different this time, to keep the timeline clean. So i decided to use contained movie clips in the main timeline. I am new to this. I am making magazine of sorts to showcase our products online.
In the action frame in the "upbeat" movie clip, I have it at
Code:
_root.gotoAndPlay("mainmenustop");
_root.mainmenu.gotoAndPlay(19);
_root.beginning.gotoAndStop("finalframe");
Mainmenustop is where this movie clip(Mainmenu movieclip) is, and I want this clip to stop at frame 19 or even label "start" eitherway, but it won't, it'll just go to the beginning of the clip.
Even the "beginning" clip won't go to the last frame. I moved one frame back of the sprite. I guess that line is kinda useless but i'd like for it to work.
I got the "skip the beginning" button to do that(since I don't need to see the beginning every time I test it. :P BUt it won't work if i put in action layer?
Help, please? Thanks!!
Go To Next Frame And Play Movie Clip
I'm trying to make the flash movie finish up one movie clip in the first frame, when finished, automatically it should then go to the second frame (frame lable "two") and run the movie clip there.....and when finished there, return to the first frame (frame lable "one") and rerun that movie clip.
Note i am not a programmer and muddled my way through AS2...however AS3 is a real mess for me.
Play A Certain Frame Of ANY Movie Clip
Lets say I have a button. What I want it to do is to tell ANY movie clip that is on stage at the moment to play a certain frame.
Can somebody, please, give me a script for this.
Thank you.
How Do I Make A Frame-by-frame Character To Put Into My Main Movie?
Hi I am trying to create an animation to put into my main animation. Eg) a moving character who moves across the main movies page. I've drawn all the keyframes for it by hand, in a new movie window, but what do i do next to get it into my other movie as a moving character?
[CS3] Play Frame In Movie Clip/Boutton
Hello all.
I'm creating a simple flash file and I'm having a little issue.
I need to, at a certain time, play the hover state of a button. How can I do that?
I can't do a gotoAndPlay() since it doesn't continue playing and I can't select a frame in a movieclip or a button!
Please help,
rodney
[CS3] Play Frame In Movie Clip/Boutton
Hello all.
I'm creating a simple flash file and I'm having a little issue.
I need to, at a certain time, play the hover state of a button. How can I do that?
I can't do a gotoAndPlay() since it doesn't continue playing and I can't select a frame in a movieclip or a button!
Please help,
rodney
Play Frame In Movie Clip/Boutton
Hello all.
I'm creating a simple flash file and I'm having a little issue.
I need to, at a certain time, play the hover state of a button. How can I do that?
I can't do a gotoAndPlay() since it doesn't continue playing and I can't select a frame in a movieclip or a button!
Please help,
rodney
Conditions That Play Frame 2 Of A Movie Clip
Alright, so I have an overhead style game where the instand name of the character is "player".
Now, what I'm trying to do is to make it so that when the player walks into another movie clip (in this code, it is named NPC1m2sphere) and presses the Q button (81), a movie clip goes to and stops at 2 - and stays there even when the key is released.
Heres the current code I have, and I can't see why its not working :[
I have this code on the movie clip that I want to go to and play 2
onClipEvent (load) {
if (NPC1m2sphere, hitTest(_root.player)
if (Key.isDown(81))
gotoAndStop(2);
}
}
Someone help - much appreciated if you do
Play Frame In A Movie Clip On Rollover?
How can I play frame in a movie clip when I rollover a button? I have a mask that I want to come down when I roll over a button. I have included the .fla. Any help would be much apreciated.
~Doo Doo
Play Frame In A Movie Clip On Rollover?
How can I play frame in a movie clip when I rollover a button? I have a mask that I want to come down when I roll over a button. I have included the .fla. Any help would be much apreciated.
~Doo Doo
|