Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Using A Button In A Movie Clip To Control The Movie(and Not Movie Clip) Timeline



Ok i have a button placed in a movie clip. I want this button, when released, to go in another scene, frame one, on the movie(scene) timeline and not on the movie clip timeline.

So i tried: gotoAndPlay("mission", 1); (mission is the name of my scene)

But it goes to the frame 1 of my movie clip, It would be great if someone could tell me how i can control the movie timeline while my button is in a movie clip

thaks
Vakarm



FlashKit > Flash Help > Flash MX
Posted on: 01-20-2003, 12:10 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Movie Clip Inside Movie Clip - Control From Timeline
hello all.

i have a movieclip (instance name: mov1) with a movieclip (instance name: mov2) inside of it.

mov1 is on my main timeline. I want to control mov2 from the main timeline. how can i do it?

i am trying what i thought would work which is
_root.mov1.mov2.stop();

Button Action Not Working To Control A Different Movie Clip Timeline
Hi.

I have a button action not working to control another movie clip timeline. The movie clip timeline I want to control has an instance name but for some reason it's not playing. The button is on a different movie clip timeline. Both movie clips are on Scene 1. I think there is something wrong with my target path?

on(release){
_root.insMcWorkNav.gotoAndPlay("lbWork04");

insMcWorkNav is the movie clip, lbWork04 is the frame to play

Any suggestions? Thanks!

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)?

Control Movie Clip In Container From Button Inside Other Movie Clip
There are three movie clips involved in this question.

1. A main movie clip that has a target empty movie clip where an external swf loads.

2. A menu movie clip that is built from button symbols and has its own timeline.

3. The external movie.

When a user clicks on the menu, the external swf loads into the empty movie clip target.  This part works fine. Here's the code:
on (release) {    
    loadMovie ("Lesson1.swf", "_root.container");
}

I want to use one external swf for all lesson, versus 20 external swfs. The problem I'm having is controling at what frame the external swf loads.  I've tried adding --gotoAndStop (15) -- for example. I've also tried adding, gotoAndStop "_root.container" (15), but that doesn't work either. The gotoAndStop action ends up controlling the menu movie clip timeline instead of the movie loaded into the container. I figure this is because the menu mc has "embedded" buttons and it's own timeline.

Any  help you can offer will be much appreciated.

Thanks
Sheila



Can A Button In A Movie Clip Control A Different Movie Clip?
I'm working on a web page with a draggable menu which is in its own movie clip. Can the buttons in this menu affect different movie clips or the main page?

How Do I Control The Timeline Of A Movie Clip?
I have a button and a movie clip. I would like the movie clip to play on the button rollover - the movie clip has a stop in the middle where it stops. (Obviously) On rolloff I would like the movie clip to continue to its end.
How do I control the timeline of movieclips from buttons on the stage.
I realise this reasonably basic stuff, but I'm in the process of learning. Thank you for any help.

Control Timeline In Movie Clip
Sorry if this is to easy but I'm a beginner and I'll get my way around ActionScript in a while but until then here's the question: How can I control the timeline of a movie clip from the Stage ? for example: When the timeline in the stage reaches the 10th frame I want the timeline in a movieclip to gotoAndPlay(2);

Control Timeline In Movie Clip
Sorry if this is to easy but I'm a beginner and I'll get my way around ActionScript in a while but until then here's the question: How can I control the timeline of a movie clip from the Stage ? for example: When the timeline in the stage reaches the 10th frame I want the timeline in a movieclip to gotoAndPlay(2);

Control Main Timeline From Within A Movie Clip? Help
Please help...
I have a video game on the main timeline of a scene. The scene label is "Game"... before the game starts, I have frame 1 of the main timeline attach the movie clip "Instructions" and play it. Once instructions reaches the end, I have Flash remove the video clip(works) and I want it to go back to the main timeline(Game) and play frame 2. What command do I use to have it do this? I tried:

Game.gotoAndPlay(2);
_root["Game"].gotoAndPlay(2);

BUT it Doesnt Work! I assume because "Game" is the Scene name, not a movie clip name... Any ideas on how to do this??

THANK YOU!

Main Timeline Control From A Movie Clip
we got a problem, we want to jump to specific keyframe in the main timeline from a button in a movieclip. Please tell us how?

Movie Clip Control From Master Timeline
Hi...

How can i make my movie clip starts to play in a determined frame of the master timeline...

The movie clip is stopped, and when the master movie (playing) reaches a determined frame the movie clip starts...

Thanx

How To Control The Main Timeline In A Movie Clip?
I tried _root.gotoAndPlay(3); in a frame of my movie clip, but it seems to have no effect.

Is there somebody who could show me the right way to do it?

thanks

Control Main Timeline From Within A Movie Clip
Is it possible to control the main timeline from within a movie clip without a button? Basically what I am doing is, I have snow using Actionscript on the main timeline, actually I have two snow effects. One is just regular snow, the other is snow that "sticks" and plies up when it hits a MovieClip.

Then, I have a couple other movie clips on the main timeline as well. One is a changing background and the other is snow at the bottom of the screen piling up.

I have 3 frames on the main timeline that keep looping to produce the snow, then inside the movieclips I have about 215 frames. Now, at the end of one of those movie clips, I want the one that was piling up snow to fade out, along with the snow effect that was piling on top of it. What I did was created another scene. However, I can't get to that scene from inside of a movie clip without a button, can I?

Thank you very much in advance.

Can A Movie Clip Control The Main Timeline?
ok, heres the deal, im making a game in which if you hit the movie clip (path_mc) you go to the next level (the next frame). The script is on the player.
heres what my script looks like:

onClipEvent (enterFrame) {
if (this.hitTest(_root.path)) {
//action to get to timeline{
nextFrame()
}
}
}

i need a way to preform an action from movie clip to timeline
i tried _parent.timeline, _root.timeline is there any way i could set timeline as a variable?
please help.
thanks in advance.

[F8] Sliding Bar To Control Movie Clip Or Timeline
I am trying to create a section of a site, which looks quite like this one: http://www.circuitcity.com/ccd/gener....do?oid=163402 (click on DIGITAL SLR and see what I am trying to replicate).
I have created a sliding bar, created 3D animated sequences of my movie. But I do not know how to put these all together to control 3D rotation positions by sliding the bar handle... Need this ASAP!!!!!!!!!!! Please, give a helping hand!
I am a beginner in action script, so, I may need more detailed explanations.
Send your comments to leoform@earthlink.net
Best!

How Do I Drag To Control Movie Clip Timeline
Hi, thanks to anyone who can help with this - I've been scouring the net for awhile. I have a spinning globe animation that I made, which runs for 100 frames and then loops back to the start. The thing is, I want to have some sort of interface that allows a user to (preferably) drag across the screen to the left to make the globe spin left (move the playhead forward), and drag across the screen right to make the globe spin right. Anyone know how I can do this?

The animation is here.

I was able to achieve this effect somewhat by rolling over and rolling off of the movie clip using this tutorial, but the problem I ran into was that the movie clip is only set up to loop by reaching the 100th frame, not by rewinding to the first.

It doesn't necessarily have to loop, but it'd be nice. It doesn't have to drag (could be controlled by buttons), but that'd be nice too. Any help would be MUCH appreciated. Thanks!

Control Root Timeline From A Movie Clip
Hi,

I am sorry to ask a probably obvious question, but I just can't find the answer.

In Flash CS3 using Action Script 3, how can I tell the main timeline to gotoAndStop(); a certain frame from within a movie clip.

Let me explain.
I have a menu (which is a movie clip) with various buttons. Each button corresponds to a certain frame in the main movie. So if a user click on Button1, it should gotoAndStop(1); and Button2 should gotoAndStop(2); and so on.

In Action Script 2, I could use _root.gotoAndPlay(2); from what I understand, but that does not work in Action Script 3.

I am not looking for the mouse events, I have that working already.

Thanks.

Scrollbar To Control Timeline Movie Clip
Hi All,

Was curious if there is code that when you have a move clip and inside the movie clip you have a scroll bar that controls the movie clips timeline so you can scroll forward or backwards similar to the scroll bar in quicktime...also with the buttons..stop..pause ..play etc...

Any good tutorials on that would be appreciated...I have flash professional 8...do they have components in flash 8 so you can drag a component on the stage of the movieclip and then ad your parameters to make it work.

Thanks inf advance.

Grant

Unload A Movie Clip From The Movie Clip That Was Targeted From The Root Timeline
I have on the main timeline, a button that when it's pushed loads an external .swf into a blank MC. I need to be able to close the MC within the mc. I know I can do this is loadMovieNum and use levels, but then I can't target where I need it to load in...is there a way to do this?

Thanks
Stacy

Making A Draggable Movie Clip Control The Location Of Another Movie Clip
http://www.kineticz.net/jba/residental.jpg that is a picture of what i am trying to do. the white bar at the bottom is the draggable movie clip and the group of 3 pictures right above that is the movie clip that i am trying to control w/ the draggable clip. I am having trouble writing a script that will do this. any help you can give will be much appreciated.

How Can I Control A Movie Clip Which Was Loaded In To A Empty Movie Clip On Level 0
how can i control a movie clip which was loaded in to a empty movie clip on level 0 the name of the movie is 'imagemc.swf' and 'imagemc' for the empty movie clip on level 0. the movie doesn't have a movieclip name, how am i going to tell target the movie?

Control Main Timeline From Clip Inside Movie
Have a movie clip on my timeline(its a button)

_root.home.onRollOver = function(){
_root.home.gotoAndPlay("over");
_root.home.back = false;
_root.home.play();
}

_root.home.onRollOut = function(){
_root.home.gotoAndPlay("out");
_root.home.back = false;
_root.home.play();
}


_root.home.onRelease = function(){
gotoAndPlay("main", 1); }THIS IS WHAT I CANT GET TO WORK

When I click the button nothing happens. Ive tried..
_root.gotoAndPlay("main", 1);
gotoAndPlay("_root.main", 1);
gotoAndPlay(_root."main", 1);

Ofcourse none of theese worked.

Control A Dynamic Movie Clip From The Main Timeline
Hi everyone,

Here is the problem, I have two .swf files
one of them is the base movie that loads data about a template, and then loads the template (2nd movie) inside an empty movie clip on stage. Now I want to load an image inside a movie clip which is inside the template(2nd movie) using AS from the main timeline (base movie).


Thanks is advance

Ameretat

Make Movie Clip Control Main Timeline
i just got a navigation menu from someone but i am having a problem using it. it is done in movie clips and not buttons, so how do i get it to control the main "timeline" or "movie" with which it resides?

i am using flash 8.

any help would be greatly appreciated!

matt

Can An External Swf Movie Clip Control Action On The Parent Timeline?
I have an instance where I'd like a movieclip inside of an external swf file to control action on the parent timeline... any ideas? Is it a function command? Here was my attempt at it...

//importing external swf file "entrypage" using empty movieclip "container" on main parent timeline
_root.createEmptyMovieClip("container",1);
container.loadMovie("entrypage.swf");

//functionality of external swf files movie clip "na9" which is contained inside "testnav" on external swf files main timeline...
testnav.nav9.onPress = function() {
_parent.gotoAndStop("theend"); //by clicking on the above movieclip, it moves to "theend" label on the parent timeline
}


Am I close?

Control A Movie Clip From A Drag N Drop Movie Clip
I need a script that allows the user to control the timeline of a MC from a drag-able MC.

Basically I want a MC that drags is constrained to the x position with a limited movement of say 100 Pixels, as the drag MC is moved along it controls the play position of a tween in a different MC.
So when you push the Drag MC back and forth it moves the second MC play position back and forth.

a great example of this is at http://fable.lionhead.com/fable.html
on the pop up book parts

How Do I Control A Movie Clip Thats On Stage From A Nested Movie Clip
I have been lookin for a solution for this for a while now. How do I access a movie clip thats on the stage from a nested movie clip? root doesnt work like it used to with AS2.0, is there a way? Any help would be highly appreciated

Control Main Timeline With Movie Clip In Main Movie,,
I could really need your help on this.

http://www.flashkit.com/board/showth...hreadid=465355

Targeting A Frame Label In A Movie Clip From A Button In A Separate Movie Clip.
I have two separate movie clips placed on a timeline-MovieclipA and MovieclipB. I have a button in MovieclipB clip that wants to target a frame label located in the MovieclipA timeline. Can someone help me?

Code 4 MovieClip Button To Load A Movie Clip Into A Placeholder Movie Clip.
Yeah that title sounds a little confusing...so i will explain:

Is there a way to tell a "movie clip button" that once it is clicked on to load a "movie clip" into a "movie clip placeholder". So instead of loading an external swf into the placeholder, it will be a movie clip from within the same library. Putting every single custom clip on the timeline would take a while, so that is why I thought it would be easier like this, and the other movie clips are not that large that I want to load into it so there is no need for external swfs, trying to keep it clean. Here is the code along the lines I am trying to go for.

__________________________________________

this.profile_mc.onRelease = function() {
placeholder_mc.loadMovie("profileSection_mc","plac eholder_mc","_root.content");
}
__________________________________________

- "profile_mc is the button I am trying to activate to load the
"profileSection_mc" into the "placeholder_mc". but so far no good.

- the movie clips are within the same library, not on the timeline or external library.

- Is this possible?

A Button Inside A Movie Clip, Within A Movie Clip, Calling Another Scene:
Is it even possible?

I have been trying to do it for the last few days for a site I am working on.

I have done searches in many forums and it's foolish looking for an answer that way, because quite frankly every thread I opened was something to do with LoadMovie or GetURL, etc.

What I have right now is on the button in my Menu Bar Movie Clip:

on (release) {
gotoAndPlay(285);
}

Which plays a fancy little animation in the movie clip and then on the last frame of that movie clip I had:

gotoAndPlay("Contact", 1);

Which is the Scene for the "Contact Us" Scene named "Contact"

One would think that it would load up the scene and play at frame 1, however all that happens is it reloads the movie clip of the "Menu Bar" at frame 1 and starts over, not even realizing what I asked.

Anyways, I figured there's a script or something that tells it to look outside of the movie clip or to the _Root, or whatever.

If someone has a solution, it would be greatly appreciated.

Sorry I have no example to show, since I have yet to upload it. (It's my company's web site, and I don't think customers would want to see some half-arsed web site that's not complete.

Thanks in advance.

Create A Movie Clip As A Button To Jump To Half Way Through Another Movie Clip?
hi guys and gals,
i am wondering if i can make a movie clip (as a link for a website) jump to half way through another movieclip...
thanks in advance

Creating A Button To Open A Movie Clip From Inside A Movie Clip?
I'm using a hexagon menu to display some images. One image is placed on each slide of the hexagon menu (which can then be rotated left and right to see other "slides").

What I want to do now is to be able to click on the object (image) as a button and for it to go to another scene which shows the image blown up and some description next to it (which is another movie)

I have tried the following which doesn't seem to work:
Created an invisible button (or choosing the image as a button) and having

on(release) {
gotoAndPlay("scene 5", 1);
}

this doesn't work when I use it over the hexagonal menu, but when I move the button to somewhere else on the screen (not over the movie) it works.


Please can someone help with this - Ive been working on it flat out over the weekend and desperately want to make it work. any ideas would be appreciated!! thank you

Loading External Movie Clip With A Button Inside Another Movie Clip Help
Hi,

I am working on a scrolling thumbnail movie clip, that when you click on the thumbnail button inside the movie clip it will load an external movie clip. I have an empty movie clip on the main stage, and have been trying all sorts of code, but for some reason it doesn't like that I am inside a movie clip using buttons. It can't seem to find the external swf.

I have tried:

on (release) {
loadMovie (ithink.swf, "loader");

and

on (release) }
if (firstTime == true) {
loadMovie("ithink.swf", _root.loader);
firstTime = false;
} else {
_root.clicked = "ithink.swf";
_root.loader.gotoAndPlay("goback");
}
}

and so far nothing, for some reaosn when I click on a button outside of the movie clip with the above code it loads... and than the other works too, but if I click on the buttons inside the scolling movie clip first they won't work.

Any suggests or ideas!!?

I would really appreciate it... I am beyond frusterated!!

Control Movie Clip With Button In MX
Er, simple question I know...

I want a movie clip in a scene to go to a specific frame of its timeline when I press a button also in the scene. With old Flash I'd do this with a tellTarget, how do I do it in MX? A listing of the steps would be much appreciated.

Movie Clip Button Control - Help Please
Hi all, I hope someone's around who can help with this. I'm working on a slot machine Flash, and I cannot seem to control it.

I have a button on the machine. When the user presses this button, I want it to play a movie clip (the spinner). I've tried all sorts of Target stuff, but nothing seems to work.

I've tried multiple times to search the forums, but it keeps timing out. Any suggestions/examples? Thanks in advance and happy holidays!

-Alyssa

Button Control Another Movie Clip
i have a button symbol that when pushed needs to cause a different movie clip to goto a certain frame. What is the code to do that? i tried a tell target but dont know if my set up was wrong.

thanks

Trying To Get My Button To Control Movie Clip
I using Flash MX. I have a button, that when you roll over 'clipA', it plays. Then when you roll out 'clipA' play in reverse from where it has left off. This is the script I've attached to my button:

code: on (rollOver) {
_root.clipA._currentframe+=1;
}
on (rollOut) {
_root.clipA._currentframe-=1;
}

And this script I attached to 'clipA'
code: onClipEvent (load) {
this._currentframe=0;
}


I get no action at all, where did go wrong?

Movie Clip Control Using A Button
I have Flash MX 2004 and i am trying to make this movie clip go to a different frame if you click a button.

Help Using A Button To Control A Movie Clip
Ive been working on an interface for a friends web site, ive gotten everything done but one thing.... Ive been trying to make a gallery which involes 4 buttons each when clicked should start a seperate movie clip but ive put in the script
(same idea for each button)

MB_But.onPress = function () {
MB_TinClip.gotoAndPlay(1);
}

but i get errors that i cant figure out.

any suggestions?

Movie Clip That Control A Button
HI there,

how can I make my buttons when movie clip is loaded to go to active state.

this is my code.

Code:
stop();
i = Math.ceil(Math.random()*4);
_root.nm.loadMovie("cento"+i+".swf");
var bt = "btn"+i;
bt.gotoAndStop(10);
trace(bt);
trace(nm._url);
var aLocalConnection:LocalConnection = new LocalConnection();
aLocalConnection.connect("demoConnection");
aLocalConnection.printOut = function(aString:String):Void {
i = aString;
_root.nm.loadMovie("cento"+i+".swf");
};
activebtn = 0;
activeanimation = 0;
btn1.onRollOver = function() {
if (activebtn == this._name) {
return;
} else {
btn1.gotoAndPlay("in");
}
};
btn1.onRollOut = function() {
if (activebtn == this._name) {
return;
} else {
btn1.gotoAndPlay("out");
}
};
btn1.onPress = function() {
activeanimation.gotoAndPlay("out");
activebtn = this._name;
activeanimation = btn1;
btn1.gotoAndStop("active");
_root.nm.loadMovie("cento"+i+".swf");
trace(activebtn);
};
btn2.onRollOver = function() {
if (activebtn == this._name) {
return;
} else {
btn2.gotoAndPlay("in");
}
};
btn2.onRollOut = function() {
if (activebtn == this._name) {
return;
} else {
btn2.gotoAndPlay("out");
}
};
btn2.onPress = function() {
activeanimation.gotoAndPlay("out");
activebtn = this._name;
activeanimation = btn2;
btn2.gotoAndStop("active");
_root.nm.loadMovie("cento"+i+".swf");
};
btn3.onRollOver = function() {
if (activebtn == this._name) {
return;
} else {
btn3.gotoAndPlay("in");
}
};
btn3.onRollOut = function() {
if (activebtn == this._name) {
return;
} else {
btn3.gotoAndPlay("out");
}
};
btn3.onPress = function() {
activeanimation.gotoAndPlay("out");
activebtn = this._name;
activeanimation = btn3;
btn3.gotoAndStop("active");
_root.nm.loadMovie("cento"+i+".swf");
};
btn4.onRollOver = function() {
if (activebtn == this._name) {
return;
} else {
btn4.gotoAndPlay("in");
}
};
btn4.onRollOut = function() {
if (activebtn == this._name) {
return;
} else {
btn4.gotoAndPlay("out");
}
};
btn4.onPress = function() {
activeanimation.gotoAndPlay("out");
activebtn = this._name;
activeanimation = btn4;
btn4.gotoAndStop("active");
_root.nm.loadMovie("cento"+i+".swf");
};
so nm loads random swfs and how to say when i = 3 , btn3.gotoAndStop("active");

first Swf is loading randomly then via LocalConnection continue to next number like i+1.
Now it works but only when is clicked..

thanks

Button To Control A Movie Clip
I'm new to actionscripting, so would appreciate some help with a problem:
On the right hand side of my movie I have a rectangular graphic - say it's called 'list'. On the left, I want to have two buttons - one to move the list up when you hold the button down, the other to move it down. When you release each button, the list should stay put and not jump back to a former position. Can anyone help me with the code? Many thanks.

Trying To Get My Button To Control Movie Clip
I'm using Flash MX. I'm trying to get an invisible button to control the timeline of a movie clip. On rollOver, I want my movie, clipA, to move foward 1 frame for every fps that the user is over the button, starting with frame 40, until clipA reaches frame 50. Then on the rollOut I want clipA to move backward 1 frame for every fps that the user is off the button until it goes back to frame 40.

I was trying to use _currentframe+=1 & _currentframe-=1, but i got no response. Any suggestions???

Trying To Get My Button To Control Movie Clip
I'm using Flash MX. I'm trying to get an invisible button to control the timeline of a movie clip. On rollOver, I want my movie, clipA, to move foward 1 frame for every fps that the user is over the button, starting with frame 40, until clipA reaches frame 50. Then on the rollOut I want clipA to move backward 1 frame for every fps that the user is off the button until it goes back to frame 40.

I was trying to use _currentframe+=1 & _currentframe-=1, but i got no response. Any suggestions???

Movie Clip Control From A Button
I can't get it to work.
Here's my action script
on (release) {
_root.movieclip1.movieclip2.stop();
}

why doesn't this work? I'm still new to action script..is there something I have done wrong?

Button In Movie Clip To Main Timeline
I have a button(A) that opens a movie clip which contains a button (B). I want button B to go to and play a frame on the main timeline, NOT a frame in the movieclip. Is this possible?

If not, what I am aiming for is a menu of buttons, that are rollovers from which another menu pops up with buttons you can click.

Help!
Thanks

Using A Button To Control A Movie Clip Position
I'm sure my asnwer is somewhere on here but I'm a still a novice at AS so I needed a detailed answer.

I have a small graphic that I want to slide up and down alongside a menu depending on which menu button I rollOver.

Example: The graphic starts out next to "home" and when my mouse hits "products" the graphic eases down next to products.

I can use SetProperty to just change the position but I want it to slide down and ease in.

Any help is appreciated.

Simple Button To Control Movie Clip
Hello,

I was relatively comfortable with AS 2.0, but am having a hard time warming up to 3.0. I feel that this should be something simple to find help online with, yet I'm finding it difficult to get a simple answer.

I have a button that is inside a movie clip within another movie clip:

mainMenu_mc > whoBtn_mc > whoButton

This button appears to work fine controlling a movie clip on the same timeline. This is the code so far (on an Actions frame in WhoBtn_mc):

whoButton.addEventListener(
MouseEvent.CLICK,
function(evt:MouseEvent):void {
whoGlow.gotoAndStop("click");

}
);


I have another movie clip on the main timeline that I would like to control with this button:

blackFadeBottom_mc

What would the code look like for this?

Any help is appreciated - Thank you.

How To Control Movie Clip After Button Is Pressed
How do you control a movie clip's animation after button is pressed?

I have created a Flash animation in a movie clip, but I want to let the animation play, and then it fades out when it reaches the last keyframe.

another instance, once another button is pressed-- I want the previous one to finish the animation and then the another button to start another animation.

Copyright © 2005-08 www.BigResource.com, All rights reserved