Controlling Movie Clip With Button
Hi, I am a Flash beginner. I've got the following problem:I am doing an animation on the seven-piece Chinese puzzle called "Tangram". It consists of movie clips showing the solution of each puzzle and three buttons to control the movie clips: "Hint", "Solution", and "Next"Each movie clip has 71 frames, with a key frame every 10 frames, i.e. frame 1, frame 11, frame 21, etc (Every ten frame, a piece of the puzzle positions itself at the right place).I want the Hint button to tell Flash to go to frame 11 of the movie clip when clicked, then to go to frame 21 when clicked again, etc, until the puzzle is complete. My question is, instead of "nextFrame" as in: on (press) {movieclipname.nextFrame();}what should the function be? I have tried "nextKeyFrame", but Flash doesn't accept it. Could you help me with this? Oh, I forgot, another question:does Flash allow you to create your own commands. Thanks for helping me.
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 08-26-2004, 02:56 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Controlling A Movie Clip From A Button Inside Another Movie Clip.
I'm confusing myself just typing this.
I'm working on an interactive map. The map itself is a MC inside a container, but also contains all the buttons as well. On my main stage(scene 1 and menu) is a window(MC) that will show info and photo of building. Now if I create a button on the main stage I can control the movieclip(images) easily. But when I use a button from inside map(MC) it doesn't seem to recognize the (images.gotoAndStop(frame))command.
I'm just not sure what to put in order to be able to control the MC's timeline from within that map movieclip.
Sorry if this is confusing. Of course at the same time it might be a simple solution for most people here as well. At least that is what I'm hoping anyways.
Button Controlling A Movie Clip...
For a flash site I'm working on right now, I've had some problems with conflicting actions. I've realised that the only way I can achieve what I want is to control a movie clip's frames with a button from outside of the movie clip.
how do I do that?
Controlling A Button In A Movie Clip?
In scene1 of my movie I have a movie clip with a button in it. When the button is clicked, I need the movie to go to scene3. If you don't mind, how do I do this?
Cheers
Help With Button Controlling Movie Clip...
Hey everyone,
Got a question regarding button/movie clip control. Ok, I'm making myself a flash site and I've got my links. A single link is a movie clip with a button inside of that. I want to be able to make a different movie clip at the root level rotate x number of degrees when I click the button. Any help would be greatly appreciated!
[F8] Controlling A Button Using A Movie Clip
Hi, haven't tried this before, but want to see if it can be done:
I have a movie clip with the following code:
on(release){trace("downini");
_root.controlledButtonInstanceName.press=true}
also on the stage is the button with instance name: controlledButtonInstanceName, and the following code is attached to it:
on(press){trace("pressed");}
well, it doesn't work
any suggestions?
Button Controlling Movie Clip
I posted this post earlier but i dont think i explained myself enough. so here it goes.
I have a flash website im working on and im stuck. my website loads and then my first page comes up and every thing fades in.so far everything is fine.this is where the problem comes in. on the bottom of the page i have a button that i want to controll a movie clip. the movie clip is nested inside the button on the down state. the problem with this is the movie clip plays when you hold it down and i want it to play when the button is clicked. if anyone can help me with this? i have read about using action script for this but i dont think thats the problem.also if all i need to do is put action script in the button what state do i put the action script on the up or down state?
[F8] Button Not Controlling Movie Clip
I have got a movie clip used like a button to change the appearance of another movie clip. I have got a demo that you can download to see what I have done. It isa version of what I am trying to do. On the demo. I have 3 graphics and a large letter A. The letter A is in a movie clip called "Alpha" on frame 1 with a stop action. B is on the second frame and C on the third all with stop actions. The movie clip has an instance name of "Alpha". The actions on the graphics are
______________________________
on (release){
Alpha.gotoAndPlay(1);
}
on the first
______________________________
on (release){
Alpha.gotoAndPlay(2);
}
on the second
&
______________________________
on (release){
Alpha.gotoAndPlay(3);
}
on the third graphic.
It is not advancing the frames in the movie clip.
Please help.
You can download my demo.fla here: http://www.judahpro.com/demo.zip
Button Controlling Movie Clip
I have a button on the main timeline targeting a Movie Clip. The button has a onRollOver and onRollOut state associated with some actionscript in the main timeline. The Movie Clip really is just a mask that opens and closes over in image. What I'm trying to do is onRollOVer make the mask open and onRollOut make the mask close. The animation is 40 frames with the first 20 frames being the open tween and the last 20 frames being the close tween. The problem I'm having is when the user rolls out prematurely it jumps to the last frame of the open tween and then begins it's closing tween. I think I need to set up some kind of onEnterFrame somewhere. Is there a way to get rid of the last 20 frames and just have the animation rewind? I want all the
actionscript to be on the main timeline. Example actionscript:
tv_btn.onRollOver = function () {
tv_mc.gotoAndPlay("open");
}
tv_btn.onRollOut = function () {
tv_mc.gotoAndPlay("close");
}
I know where my problem is, but not sure how to fix it.
Button Controlling Movie Clip
I have a button on the main timeline controlling an animation residing in a movie clip. I have a mask in the movie clip that opens to show an image when the button is in the rollOver state. I want the the mask to close on the rollOut state. If I make a tween with it opening and a tween with it closing, when the user rollsOut of the button prematurely it jumps to the last portion of the open animation. I want it to be fluid. I'm not sure how to do this with actionscript and I want all my code to be on the main timeline. Here is a sample of the code:
tv_btn.onRollOver = function () {
tv_mc.gotoAndPlay("open");
}
tv_btn.onRollOut = function () {
tv_mc.gotoAndPlay("close");
}
Controlling A Movie Clip Within A Button?
I am trying to control a movie clip which is contained in a button.
I was told this could be done in Flash MX, if it can then I am doing something wrong.
I have an instance of my button placed on my main timeline called aubutton
Withing this button there is movie clip symbol instance named centre
I am using the following script on the main timeline instance of the button to try and control the movie clip in the button:
PHP Code:
on (rollOver) {
tellTarget ("aubutton.centre") {
gotoAndPlay(2);
}
}
yet nothing happens
What am I doing wrong?
Controlling Movie Clip With Button
Hi, I am a Flash beginner. I've got the following problem:
I am doing an animation on the seven-piece Chinese puzzle called "Tangram". It consists of movie clips showing the solution of each puzzle and three buttons to control the movie clips: "Hint", "Solution", and "Next"
Each movie clip has 71 frames, with a key frame every 10 frames, i.e. frame 1, frame 11, frame 21, etc (Every ten frame, a piece of the puzzle positions itself at the right place).
I want the Hint button to tell Flash to go to frame 11 of the movie clip when clicked, then to go to frame 21 when clicked again, etc, until the puzzle is complete. My question is, instead of "nextFrame" as in:
on (press) {
movieclipname.nextFrame();
}
what should the function be? I have tried "nextKeyFrame", but Flash doesn't accept it. Could you help me with this? Oh, I forgot, another question:
does Flash allow you to create your own commands. Thanks for helping me.
Controlling A Movie Clip With Button
Last edited by 101-1 : 2003-12-22 at 16:10.
I have a long animation which continually loops, within this animation there are several buttons. I would like to use these buttons to run smaller animations within the overall animation.
The desired result is to have little animations going on (when you press a button) within a larger animation.
This may be solved by having the small animations constantly running but have them invisible (Alpha=0) and then when you click the button the alpha is reset to 100.
(maybe)
I have no idea where to start with this and so any help you can offer at all will be gratefully recieved.
Nice One, 101-1
Button Within Movie Clip Controlling Scenes..
hiya
i have a button within a movie clip and all i want it to do is take me to another scene within the main timeline. sounds easy enough but i can't for the life of me get this to work.
please help.
thanks.
Button Within Movie Clip Controlling Scenes..
Hello !
Well, im here, i looking for a solution, im creating a small page, for project,
I have a button, on this, button i have a Tell Target Action, this one shows up, a Movie Clip, it works, the deal , is there are 5 diferents, buttons, i want each time when you click in any button, clean the previous one and showp up , the the proper Movie Clip,
Every time when i click on the button shows up, the Movie clip, but when i click on the next one, this shows up, the movie clip under the first on,
Please help me Anyone
Waan
Controlling A Movie Clip Inside A Button
Anybody know why I can't control a movie clip instance that's inside a button instance?
My Code:
----------------------------------------------------------------
_root.ButtonInstanceName.MovieClipInstanceName._pr operty = value;
----------------------------------------------------------------
I've attached my FLA, if you want it.
Thanks for your time,
Furry
Controlling Movie Clip Inside Button
Im creating a button component, and i need to do a simple action that makes a movie clip inside a button dissapear using the ._visible action.
Why oh why cant i control a movie clips properties inside a button?
thank you
lee
Controlling Movie Clip Rotation In Button
Hi -
I am trying to figure out how to create a spinning device that stops in various positions when clicked on.
In other words, I've created a button with a movie clip inserted in the OVER and DOWN stages.
when the mouse rolls over the button the arrow spins. I would like for the arrow to stop as soon as the viewer clicks on it.
I only seem to be able to get it to stop at the start place, rather than at random positions in the rotation.
I'm not sure if I'm explaining this well. I figure I need to use some action script here, but as I'm not familiar with Expert mode I'm afraid I may be in over my head???
Please help!
(I'm attaching a visual)
Thank you,
Zoe
Controlling A Button Embedded In A Movie Clip
Hello all!
I am creating a game where there is a box, and when you click on the box your score raises and the box moves to another random position.
I am using Flash 7.0.
I use attachMovie() to place the box, and I want to be able to access the button embedded in the movie clip that I attached. But how? Whenever I try it ends up doing nothing. This is kind of hard to explain, so tell me if you don't understand.
Thanks,
Blake
Controlling A Movie Clip Inside A Button
I have created a movie clip inside a button. I want to change the frame of the moveclip inside so that the button can dynamicly change its label.
I tried to call it by buttonName.movieclipName.gotoAndPlay(2) but it doesn't do anything. Any suggestions?
Thanks!
Controlling Main Timeline From A Button In A Movie Clip...
i have a button inside of a movieclip, and all i want it to do is ON RELEASE...make the main movie GOTO & PLAY another scene.
For some reason, this isnt f*ckin working!
Is this wrong or right?
on (release) {
tellTarget ("_root") {
gotoAndPlay ("rls_details", 1);
}
}
lemme know. Thanks!
Button Controlling Movie Clip Is Jsut For Show
Hey i have a setup where there is a column on a online magazine. in this column will have pictures diplayed in it, when you mouse over it i want it to expand and show more information about it, text. i make this column expand via making it a button and using some "roll in" "roll Out" code controlling a movie clip. the problem is, i have additional buttons inside this expanding window, so, when i roll over a button the column thinks that the mouse "rolled out" on it so it collapses.
there is a link to the fla at ......
first test.fla
http://www.filefactory.com/file/1e6cb4/
first test.swf
http://www.filefactory.com/file/48705e/
...
what do i do? note: there are alot of symblols inside of symboles its not really organized but i dont know how else to do it. Help!
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.
Controlling The Playhead In A Movie Clip Via Buttons In Another Movie Clip
Alright, first off, I've tried literally everything I can think of, and all of the scripting looks perfect (from what I understand), so I can't think of what could possibly be wrong with the script.
Here's some information upfront about where these movie clips are located:
Main Timeline > tv_mc
Main Timeline > menu > menu2 (buttons controlling tv_mc are located here)
(Note: menu2 is a graphic, not a movie clip. It was only made so that I could move the menu itself without tweening several layers.)
Here's what I want to accomplish:
I want the buttons inside of menu2 to control the playhead in tv_mc, a movie clip. The first 25 frames of tv_mc are just the "stage" moving into view so that the information can be displayed.
There are five buttons in menu2 containing the following script:
Code:
on (release, releaseOutside) {
if (!mainwindow) {
_level0.tv_mc.gotoAndPlay(1);
mainwindow=1;
_level0.tv_mc.set(framenext, bio);
} else if (mainwindow==1) {
_level0.tv_mc.gotoAndStop(bio);
}
}
"bio" is the name of the frame in tv_mc. Basically, what I want this to do is check and see if the "stage" is already viewable, and if it isn't, to display the stage and then display the information as well, which is the purpose of storing the frame name in "framenext".
tv_mc also has this code:
Code:
if (!framenext) {
stop();
} else {
gotoAndStop(framenext);
}
At the moment, the menu buttons work to display tv_mc, but wont move the playhead past 25. I'm guessing that the "framenext" variable is somehow not getting any information, or not getting any information across to tv_mc from menu2.
I'm really effing lost at this point. Any help at all? I'd post the .fla, but the size is pretty big. :T
Button In Mov.Clip Controlling Something Outside Of Clip
I am stuck, and quite a bit frustrated.
I have this flash presentation I'm making. Everything is okay so far, but I've run into THIS problem:
I have a little "drawer" that slides out and acts as a linking panel (i.e., it has navigational links on it). This "drawer" is a movie clip, and I've got it where you can open and close it independently of the actual project.
However, I need to be able to click a link on this "drawer" movie clip and have it move to a certain frame in the actual project (outside of the movie clip).
So in a nutshell, my problem is I need a button inside a movie clip to control something outside of the movie clip.
My .fla is attached.
Controlling A Movie Clip Inside Another Movie Clip?
I've had my share of problems with this one...I hope someone knows what the hell I'm doing right/wrong and could help me out
Okay, I made a movieclip to put the blocks(which are movieclips too) in a breakout clone.
lets give the container movieclip the instance name "container"...the blocks are preset in that container with their own instance names...what I want to do is a hittest with those blocks but I found out that...
(this.hitTest(_root.container.block1)) doesn't work.....any ideas why?
even changing the x and y properties of the blocks doesn't work...
(_root.container.block1._x = 5)
Movie Clip Button Inside Movie Clip Button Is Driving Me Nuts
hellllllo everyone, this thing has been bothering me for weeks, i've been hiding from it for days but it always seems to come back and bug me..
this is the problem..
on my main timeline i have a movie clip button that plays over/out state within this clip and on the over state it also opens 8 other movie clip in this movieclip that i am hoping to make them clipable, i only made an over state for the first movieclip out of the eight, but it just wont do the rollover effect..
i think there is a better way to do this..if i need to start over..let me know..thanks!!!
i will attach the file please help me out! i am tired of hiding!
thank you again!!!!!
Controlling Another Movie Clip
I can control a movie clip with next action or "tell target".
mc1.gotoAndStop(2);
I can also control the main frame in a movie clip with
next action.
root.gotoAndStop(2);
I don't know how to control a movie clip(mc2) with the action in another movie clip(mc1).
I have tried to put next action into the movie clip1(mc1)
to control the movie clip2(mc2).
However it doesn't work.
mc2.gotoAndStop(2);
root.mc2.gotoAndStop(2);
Thanks in advance
John
Help Controlling A Movie Clip
I have a movie clip in which I would like to sit static on the stage until the user mouses over it. Upon mouseover, I would like it to play just once, and continue to play if the mover mouses away from it.
Controlling A Movie Clip
can anyone tell me how to control a movie clip on the timeline with buttons on another layer? (ie.play and stop)
Controlling A Movie Clip Please Help
This isn't hard I am just having problems!
I have a series of buttons on the left side of my completely flash site.
I want to be able to roll-over a button and have text fly in from the right and then disapear when your roll-out.
What is the code for this?
How do you set up the text movie clip?
Thank you!!
Controlling A Movie Clip
Hello everyone!
Let's say I have a movie clip containing 2 pictures in 2 separate frames. I have 2 buttons on the stage and the movieclip, first button should show first picture and second button second picture. How can I pass the action to tell the movieclip clip to go the first picture when the first button is clicked??
Any help would be appreciated!
Thanks in advance.
Controlling One Movie Clip From Another
Is it possible to use the tell target command from within movie clip 'A' to control movie clip 'B' that is in the same scene? Having trouble getting this to work... sorry if this has been asked before. Thanks!
Controlling Movie Clip
I have two buttons (ON and OFF) on two seperate layers and a movie clip animation on a third layer all on the root timeline in frame one. I want to prevent the movie clip from playing until I use _root.MCname.play(); to start the movie clip animation. How can I keep the animation from playing and invisible until I am ready for it to play? Do I need to put the MC in another frame? Any help is appreciated. Thanks in advance.
Controlling A Movie Clip
Hi,
first of all, i wanna thank all those who helped me through all my projects, i really appreciate their help
i have a new question ...
I want to design a menu that the main items open as doors revealing the links behind them when the mouse is over the door. the code is something like this:
on (rollOver) {
var varStart = 1;
while (varStart < 25) {
tellTarget (this) {
gotoAndStop(varStart);
}
varStart++;
}
} this code should run when the mouse is over the door , the door is a movie clip with a motion tween. and it moves as the "varStart" change. The motion is on a 25 frame. It's not working, the door is standing still as if the mouse did not move. HELP
Controlling Movie Clip
Hi there! I need help controlling a movie clip I am developing a website and need some more advanced action scripting to what I am used too.
I need a script that will play the remainder of the existing movie eg (outro transition) then open and replace with another external movie clip.
I hope this makes sense please see...
http://www.gingermonkeys.com/taster/masters/
Please you are my only hope!
Madina
PS. bring back normal mode in flash!
Controlling Movie Clip
Hello, please help..
Why does it work fine this way:
_root.mc_portfolio1.play();
But it doesn't work this way:
i = 1;
holder="_root.mc_portfolio"+i;
holder.play();
???????????????????????
Controlling Movie Clip
I have a movie clip called "Clip". How do i do things like, get the numbe of frames, and set the current frame? Im trying this, but it doesnt work:
Clip._currentframe = Var
(var being a number)
what am i doing wrong?
Controlling A Movie Clip?
Anyone know of a tutorial or how to do something like this?
http://www.iceni-tv.co.uk/flash/home...r.swf?homepage
Thanks.
Controlling Movie Clip With Xml
Hi everyone
I'm posting this again as i still haven't found a word on the net about controlling a movie clip from an xml when you click on a tree structure.
So far, i can have external hyperlinks on tree nodes, but i don't know how to get a clip to move in the timeline as i click on a node.
What i'm doing is basically having a listing of pharmacists opened on saturdays and sundays, and when you click on one of them (child node in a tree), it will point to a frame on movie clip instance .maps. with gotoAndPlay where each frame will load the specified pharmacy's location on the googlemap component with lat long, and zoom unit specified within the frame's actions (i haven't gotten around to placing an icon on the center as i'm trying to get this resolved.)
I'd really appreciate someone pointing me the way on this, it's been almost my second week busting myself with the docs, forums and other papers around the net. The closest i got was someone posting a similar thread but it fizzled away...
[CS3] Controlling Movie Clip With Xml
Hi everyone
I'm posting this again as i still haven't found a word on the net about controlling a movie clip from an xml when you click on a tree structure.
So far, i can have external hyperlinks on tree nodes, but i don't know how to get a clip to move in the timeline as i click on a node.
What i'm doing is basically having a listing of pharmacists opened on saturdays and sundays, and when you click on one of them (child node in a tree), it will point to a frame on movie clip instance .maps. with gotoAndPlay where each frame will load the specified pharmacy's location on the googlemap component with lat long, and zoom unit specified within the frame's actions (i haven't gotten around to placing an icon on the center as i'm trying to get this resolved.)
I'd really appreciate someone pointing me the way on this, it's been almost my second week busting myself with the docs, forums and other papers around the net. The closest i got was someone posting a similar thread but it fizzled away...
Controlling A Swf Thru A Movie Clip..
Im loading a swf thru a movie clip, now once that reaches the end, i want to automatically load a different swf, is there a way to do this?
heres my current load code :
var i =new Loader();
i.load(new URLRequest("test2.swf"));
myContainer.addChild(i)
thanks for the help
Controlling Movie Clip With FLV
Is there a way to control a movie clip, so that when an FLV file finishes playing, it goes to the next frame?
like if the FLV clip is loaded into frame 1. and on frame 2 there is an image, I want it to goto frame 2 as soon as the FLV movieclip is finished playing. is this possible? hellllllp
Controlling A Swf Thru A Movie Clip..
Im loading a swf thru a movie clip, now once that reaches the end, i want to automatically load a different swf, is there a way to do this?
heres my current load code :
var i =new Loader();
i.load(new URLRequest("test2.swf"));
myContainer.addChild(i)
thanks for the help
Controlling A Movie Clip...
I have a movie clip, say the movie clip has 30 frames. The first 15 frames, a guy walks from the left to the middle of the stage, in frame 15 the action is "stop", when you click a button, the guy walks to the right of the stage. However, when the guy is walking TO the middle, i.e btw frames 1 and 15, if I click on the button, it jumps to frame 16 so there is a slight skip in the motion. I believe my options are either to disable the button until the guy gets to the middle of the stage then re-enable it, or control the movieclip in such a way that he just walks to the right - which I am not sure how to do. If any one can help or has better suggestions ...... please help.
Controlling A Movie Clip
Hi! Ok I think their is a simple solution to all of this but I need a bit of help :-/ If I have a movie clip called "movie1" with an instance name of "movie1" and I want to controll it with a button on the main stage, (out of the movie clip) I thought the following should work:
on (release) movie1.play( )
But no joy :-/ any idea why?
(P.S Im new to action scripting so if. pos, keep it simple!) Thanx!
Controlling A Movie Clip
I have a movie clip on the main timeline. Well, actually i have 30 of them, all on different frames. It's basically a flash version of a powerpoint file that i've designed. Each of these movieclips have been named something unique but similar (eg. movie1 on frame 1, movie2 on frame 2) and i would like to be able to put the code that essentially says:
movie1.stop(); or movie1.play();
I am trying to have a pause button that will execute that code. What i need is a way to reference this frames' movie clip. I've tried
['m' + _root._currentframe].play();
it doesn't like that. or any other method i've tried. I basically just need the syntax for dynamically specifying the name of the movie clip i'm referencing. Any ideas?
Controlling A Movie Clip?
i am new to flash and i have made an animation on multiple frames and turned it into a swf movie.
how can i make the movie start when clicked on, play through once ,then stop and not continue to loop?
also once the movie is finished it needs to continue to show the last frame of the movie and not go back to the first frame when the movie stops.
it is important for me that it can be done in only one frame.
thank you
EDIT: it is in actionscript 2
Edited: 12/02/2008 at 11:51:34 AM by stgodd
Help With Controlling A Movie Clip
The problem I have is when i select to move the movie clip, i can't get it to stop animating when i tell it to go to a certain place.
Can anyone fix this for me?
Thanks
|