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!!
FlashKit > Flash Help > Flash General Help
Posted on: 05-03-2003, 09:58 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Play One Movie Clip After The Other In The Main Scene
I know this must be a pretty simple task but I can't seem to get it
working..
I have a Scene "MainScene" which has a library attached with 3 movies.
What I would like this to do is play one after the other in the main scene
but I'm not sure how to play one (a single keyframe on the timeline) and
then after that one has finished, play the next.
Please help me out! and its urgent! Thanks In advance!
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.
Button In Movie Clip Linking To Main Scene.
Howdy howdy. I'm working on a flash project and I want the buttons in one movie clip to link to frame 5 of scene 1. (So I have scene 1, a movie clip with the buttons in it and I want one of those buttons to make scene one skip to frame 5) So far it just goes to frame 5 of that movie clip, and when I named "Scene 1" inside the "Scene" box it didn't do anything. I tried searching the forum prior to posting this but I got 50000 results the first time and 35000 the second time, and I didn't feel like browsing through all of those hoping to find the answer to this question. (The first 2 pages of each search didn't contain anything I found to be helpfull) Any help would be greatly appreciated! (I'm using Flash 5) Thanks -NoodlyGod
Button Inside A Movie Clip Controlling The Main Scene?
Hi, I have a button inside a movie symbol that is on the main scene.
When it is clicked I want to move to a certain frame on the main scene.
I have double clicked on the movie symbol and attached this script to the button:
on (release) {
tellTarget ("this._parent") {
gotoAndPlay(5);
}
}
but it doesnt do anything.
What is wrong?
Thanks.
How Do I Code For A Movie Clip With A Button In It Embedded In The Main Scene?
This should be easy for any one who designs websites in flash.
I have a movie clip embedded in my main timeline that appears after an animation sequence happens. In this movie clip is button that changes color when you rollover it and links to an email address. Pretty simple.
I am not sure how to correctly code the actionscript for this. So far, when you rollover the movie clip and try to click the button, the whole movie clip flashes.
How do I tell flash to point to the button embedded in the movie clip?
You can see the god awful mess I've created online at:
http://www.espavoproductions.com/flash_site.swf
Look at the CONTACT button to see what I am talking about.
Please help. I would be so very grateful.
-Stephanie
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");
};
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
Making Button In Movie Clip Symbol Reference Main Scene
I set up a flash movie with a scroll pane moving a movie clip. When I place instances of buttons in that movie clip and apply actions to them, they are not working.
The main movie has only one scene, so my actions for the buttons in the movie clip contained in the scroll pane have the following properties: gotoandplay, scene 1, frame label, frame label in scene 1 I'd like to jump to.
Is there a reason, the actions applied to those buttons won't take me to the corresponding frame label in my main movie?
How Do You Get A Button In A Movie Clip To Skip To A Frame In A Scene?
I need some help!!
I have put a button in a movie clip, but i don't know how to make the button in the movie clip, skip to a frame in the actual scene. I need the instance in the scene to remain a movie clip and not a button!!
Also a have some code on a button to start a scene which makes a random number! Is it possible to make the code run without the users having to click on a button!!
Thanks!!!
Button In Movie Clip Changing Frame In Scene?
So I created a navigation bar as a movie clip and i wanted the buttons in the movie clip to control what is going on in the scene. I put a action (on press goto scene1 and frame #) on a button in the movie clip and it doesnt take me to the scene frame. what exactly am I missing? help would be greatly appreciated.
I am doing all this in Flash MX.
? 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)
Button Within Movie Clip Not Linking To Frame Label On Scene 1
Hi
I am using Flash 8. I have created a button with the instance name "painting_1" which is within a scrolling movie clip called "work_scroll". I want the button when clicked to link to a frame labeled "painting1" which is two levels above it on Scene 1.
So it breaks down like this: Scene 1 / scrollpane_work / work_scroll / painting_1 (the button)
I have gone to work_scroll selected the button "painting_1" and added the following actionscript:
on (release) {
_root.gotoAndStop ("Scene 1", "painting1");
}
This does nothing. Please could someone tell me what I'm doing wrong?
Thank you.
Movie Clip Button: Cannot Play A Frame Label
I am making a simple web site for a friend, and everything is running peachy keen up to now. But this web page is not only something my friend asked me to do, but a learning experiance for myself. My problem is as follows:
The web page I created requires me to use a movie clip as a button, however I am not educated enouph to make the MC button able to play a specific frame label. However the script works when I place it in an ordinary, boring button. Here is the current script that doesn't work, and thank you for your time.
on (release) {
if (Proc = False) {
if (CurrentSection != "Home") {
}
}
gotoAndPlay("Home");
}
Edit: The MC button works when I make it go to an external web page through the gotourl thingy.
Play The Main Scene From An Movie ?
hi there,
i have a _root.MC_lala and i need when i press a botton to get the main scene to get to a certain fraim...
i place actions on the timelin inside that MC and on the button but neither of them wants to work...
what am i doing wrong ?
simple but please help...
tnx
Make A Button Within A Movie Clip Make The Main Movie Clip Play?
hi, is it possible to make a button within a movie clip make the main movie clip play?
at the moment i have it set to play(); on release put this plays the movie clip rather than the main movie, is there any way to make it play the acutal main movie insteat?
Movie Clips Don't Let Main Scene Play
Hi, I got a movie with quite a few scenes in it. The first scene has most of the images on the main timeline, but in the subsequent scenes I wanted to make things more modular and make separate movie clips.
Throughout the process of creating these scenes I used nextScene() actions on the first frame to get to the next scene while I was testing. Now I'm trying to see the entire movie and for some reason the second scene is playing the movies within the scene but not anything past the first frame.
I have two small movies that start the scene, then a bunch of blank frames and the main timeline has the rest of the scene once the two small movies are supposed to stop.
I have on the small movies _root.movie.stop(); and it stops the small movies but something is still hung up at the first frame.
I looked through the movie explorer and the only other actions on movies that play in frame 1 are all changed and should be ok. I even added _root.nextScene(); and _root.nextFrame commands on the small movies themselves and those didn't even work. I'm getting really frustrated with this.
Please help.
Goto Frame In Main Scene From Button In MC
I have a scene
-In which there is a MC
-In which there are buttons.
When hit i would like my buttons to go to and stop on a frame in the main scene.
I have got
on (release){
gotoAndStop (Frame);
}
But I relise this will have to be a frame in the MC how do i get it to refer to the frames in the main scene???
Thanks in Advance
Menus - How Do I Go To A Frame In The Main Scene From A Loaded Movie?
hi...
need help... i actually have done this beofre but dont know what ia doing worng now..
i created an intro. this into is a seperte movie loaded into my main movie.
in the intro there is a skip button so that the user can skip intor and go to a a frame on the main scene i loaded the movie into...
i tried _root.gotoAndPlay(10) it doenst work...
i trird )level0gotoANdPlay(10) it doent work...
please help !
thanks
Button In Mc Takes User To Specific Frame On Main Timeline In A New Scene?
Hi
Is it possible for a button in a movie clip symbol to take the user to a new scene?
For example:
On frame 1 of Scene 1 a movie clip symbol starts to play. When it's finished playing the user can click a button which takes them to the next movie clip symbol on (e.g.) frame 5 of Scene 1, or they can click a button that takes them to a specific frame in a new scene (e.g.) Scene 2.
Is this possible?? I've managed to get them moving from clip to clip within a single scene (using root.gotoAndPlay), but I can't figure out how they would move from a movie clip symbol in one Scene to a movie clip symbol in a different scene.
If it's possible please tell me how... I'm dyin' out here!!
Many, many thanks in advance!
sn
Targeting Frame Label In Scene From Movie Clip In Same Scene
Hey Pals,
I'm trying to target a frame label on the timeline of a scene from a movie clip within the same scene, using Flash MX 2004 Pro. The scene is ultimately used as a .swf to load as a page of a website. The frame label is called "miscOn", the scene is called "misc". The below code is attached to a button within the movie clip.
on (release) {
loadMovieNum("tajwebsite_main.swf",1);
gotoAndPlay(miscOn);
}
Thanks!
Stu
PLEASE HELP - Movie Clip Control Of Main Scene
Hi,
my problem that is driving me crazy:
I have a movie clip playing on a stopped frame on my main scene, what I need is for when the movie clip within the scene reaches the end frame for the main scene to gotoandplay another frame,
I keep trying variations of _root.goToAndPlay("Scene 1",2) on the last frame of the movie clip but it doesn't work. please please help,
Thanks
Loading A Movie Clip In Main Scene
I have made a movie on the top of which are two buttons in the form of Tshirts. I want that when the Tshirt with horizontal stripes is clicked a colored image of that Tshirt is loaded in a square. After that when one of the colored squares is clicked, the same Tshirt is loaded in another color. Similarly when the button with vertical stripes is clicked a colored version of that Tshirt is loaded in the square. If the square already has an image of the horizontal sriped Tshirt in the square, then , that should be replaced by the Tshirt with the vertical stripes. I have written acrtion scipt for this but it is not working. I will be grateful if some one can kindly look at .fla file and let me know what the error is and how to rectify it.
Thanks!
Load Movie Clip In Main Scene
I have made a movie on the top of which are two buttons in the form of Tshirts. I want that when the Tshirt with horizontal stripes is clicked a colored image of that Tshirt is loaded in a square. After that when one of the colored squares is clicked, the same Tshirt is loaded in another color. Similarly when the button with vertical stripes is clicked a colored version of that Tshirt is loaded in the square. If the square already has an image of the horizontal sriped Tshirt in the square, then , that should be replaced by the Tshirt with the vertical stripes. I have written acrtion scipt for this but it is not working. I will be grateful if some one can kindly look at .fla file and let me know what the error is and how to rectify it.
Thanks!
How To Load A Movie In Main Scene While The Command Is Inside A Movie Clip?
Hi all,
Well, I have a scene that has a movie clip, and inside this movie clip there is a button. I want to program that button using ActionScript to loadMovie named "1.swf" inside a container in the main scene (which this movie clip belongs to).
Hope the question is clear and hope to get a fast answer as it is urgent..
Thanks alot in advance.
Regards
Button In MC Won't GoTo Play Frame In Scene
i am fumbling my way through scripting and need help.
I have a button in a movie clip, which is in another movie clip, which is on a layer in my scene. I want that button to go to and play a frame in that scene.
going to that button in the first movie clip and telling it to GoTo and play frame 15 isn't working. I have tried telling it both "curent scene" and the scene's name.
is there some sort of scripting that I need to know to get the movie clip's buttons to control the scene?
-josh
How To Tell Main Timeline To Goto Next Scene From A Movie Clip.
How to tell main timeline to goto next scene from a movie clip.
I’ve tried:
_root.nextscene()
_root.play()
_level0.nextscene()
_ level0.play()
_root.level0.nextscene()
_root.level0.play()
Nothing seems to work except having a button with the action, but I need it to work without having to press a button. Any help would be appreciated.
How To Tell Main Timeline To Goto Next Scene From A Movie Clip.
Mentaleruptions,
The code does work. Sorry for premature reply. It was late last night when I tried it. I got up fresh this morning and tried it with success. I just needed to move the line one up before the this.stop() command, duh.
Thank you vary much.
.
Selecting Movie Clip Instances On Main Scene
Is there an easy way to find and select movie clip instances on the main
scene? I'm working with a pre-built template and I'm trying to find and
edit a movie clip instance on the main scene, but I'm having trouble
selecting it.
Thanks.
Load An External Image From A Movie Clip To A Main Scene
Hi Guys
I want to make an image gallery I have put 4 button in a movie clip and when the user click on any button a big image will open in front of the main scene and user can close that window as well to see other images
a quick reply shall be highly appriciated
Thanks & Regards
Atif
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)?
Instructing An External Movie Clip To Play From The Main Movie
Anyone tell me the easiest way to sort this one?
I have a movie clip that consists of 2 keyframes.
It is loaded onto level1 above my main movie and the first frame is blank (so that it does not come into play until instructed).
The second keyframe is the main part of the loaded movie and this needs to play after receiving instruction from the main movie.
My problem is 'How do I instruct this to happen??'
I have no knowledge of action script so if anyone could advise or tell me if there is an easier way to do this I would be eternally greatful........................................
Continuous Play Of Several Movie Clips From One Main Movie Clip
hi,
i'm trying to play several movie clips, one after the other from one main movie clip.
i've got 8 movie clips, "m1.swf", "m2.swf", etc. "m8.swf", and one main movie clip, "play.swf".
i've tried using loadMovie, but it only plays the last movie clip. this is what i've got.
in the main movie clip, i've put a play button, and the actionscript i have in the button is:
on(release)
{
this.loadMovie("m1.swf",play);
//this.unloadMovie("m1.swf");
this.loadMovie("m2.swf",play);
//this.unloadMovie("m2.swf");
this.loadMovie("m3.swf",play);
//this.unloadMovie("m3.swf");
this.loadMovie("m4.swf",play);
//this.unloadMovie("m4.swf");
this.loadMovie("m5.swf",play);
//this.unloadMovie("m5.swf");
this.loadMovie("m6.swf",play);
//this.unloadMovie("m6.swf");
this.loadMovie("m7.swf",play);
//this.unloadMovie("m7.swf");
this.loadMovie("m8.swf",play);
//this.unloadMovie("m8.swf");
}
is this wrong? how can i get this to work correctly. really important that i get this working for my job.
any help will be greatly appreciated.
cheers
Getting A Movie Clip Not Play In The Main Time Line
I have a movie that I do not want to play in frame 1 of the main time line and instead I want to activate it when a button is pressed. I got this to work with tell target but I just dont want it to play when the main page loads in. Any help would be appriciated. 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.
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
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?
Can't Invoke Scene Play From Within A Movie Clip -- Please Help.
Hi!
I'm having the following problem and I'm desperately looking for help.
Here's the description:
My flash has a single movie clip and 5 buttons in seperate clips.
I want to invoke a gotoAndPlay function of a scene on the release of a button which is part of a clip in that scene (suppose the parent (and only) scene containing the clip (which in turn contains the button) is named Main). Normally this should work:
(Actionscript on the button: )
on(release) { gotoAndPlay("Main", 2) }
but it doesn't. Instead it opens a browser window with two tabs... Go figure...
Any ideas?
P.S. Check http://students.ceid.upatras.gr/~diamanto/vac.fla for the original flash file...
Making A Movie Clip Play A Scene.
Ok basically here is my problem.
I have designed a movie clip for a button. And i need the movie clip to play something outside of the movieclip.
Ive made an invisible button. the code i have done is
Code:
on (release) {
gotoAndPlay ("Scene 1", 116);
}
but when i test it out. nothing happens. could someone please help me out.
Thanks in advance.
zoot
How To Make Button In MC Send Main Movie To New Scene?
I can't get a button I have in a MC in my current scene, to send the playhead to a different selected scene using on(release). I can get it to control the playhead in the current scene, but not the others. I've scripted it using the _root.gotoAndPlay("scene2", 1) syntax, but it won't work. Anyone have any ideas? Thanks
|