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




[CS3.AS2] Button In A Movie Clip Link To Another Movie Clip And Play



what im doing is that making a button in a movie clip link to another movie and play/stop certain parts of that clip

lets say that there are 4 buttons are in movieA, and the other clip is called movieB

when the user clicks button1 in movieA, movieB will play from frame 1 to 5 and stop.
when user clicks button2 in movieA, movieB will play from frame 5 to 10.
and so on

so far my code for button1 is:

on (release){
this._parent.movieB.gotoAndStop(5);
}

on (release){
_root.movieB.gotoAndStop(5);
}

button2:

on (release){
this._parent.movieB.gotoAndStop(10);
}

on (release){
_root.movieB.gotoAndStop(10);
}

with this code, it just jumps to the designated frame.
what i want is to have it play from current frame to a designated frame

can anyone shed some light on this?



FlashKit > Flash Help > Flash ActionScript
Posted on: 06-25-2008, 06:59 PM


View Complete Forum Thread with Replies

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

Stop And Play Button For Movie Clip Within Moive Clip
hi i have problems with my buttons. i have got 2 fla files. 1) shell.fla 2) content.fla.

The shell.fla has a movie clip(name:holder) to load the content.swf. And within the content.swf i have got movie clip within movie clip.

Thru a search from the forum i came across this script

first frame:


Quote:




function stopAllClips(clip) {
clip.stop();
for (var i in clip) {
if(typeof clip[i]=="movieclip") {
if(clip[i]!=clip) {
stopAllClips(clip[i]);
}
}
}
};

function startAllClips(clip) {
clip.play();
for (var i in clip) {
if(typeof clip[i]=="movieclip") {
if(clip[i]!=clip) {
startAllClips(clip[i]);
}
}
}
};




for the button:


Quote:




on (release) {
if(!_root.stopped){
_root.stopAllClips(_root.holder_mc);
_root.stopped = true;
} else {
_root.startAllClips(_root.holder_mc);
_root.stopped = false;
}
}




everything works fine except after i pause and play, i doesn't play from where it has stopped. Anyone has got any ideas as to how i can solve this problem. Thanks very much.

Button In Movie Clip To Link To Other Movie Clip
I am trying to have a button isde my movie clip on frame 1 to jumpt to the start of my movie clip on frame 2. They are both in the same scene. I have tried all the basic action scripts including calling the root target and movie name and nothing will work. I am using Flash5 in XP.

Some of the scripts I used:

on (release) {
loadMovie ("", "_root.about");
}


and

on (release) {
gotoAndPlay ("_root.about");
}


why doesn't this work?

ps my 2nd movie clip is called "about"

Button In Movie Clip To Link To Other Movie Clip
I am trying to have a button isde my movie clip on frame 1 to jumpt to the start of my movie clip on frame 2. They are both in the same scene. I have tried all the basic action scripts including calling the root target and movie name and nothing will work. I am using Flash5 in XP.

Some of the scripts I used:

on (release) {
loadMovie ("", "_root.about");
}


and

on (release) {
gotoAndPlay ("_root.about");
}


why doesn't this work?

ps my 2nd movie clip is called "about"

How Do I Play A Movie Once A Link Is Clicked And Then Move To The Next Clip?
I'm still trying to figure out how to do navigation and what not in flash. I know how to load a particular scene and have everything move into place like I want it to, but what I want to do is when you click on a link (we'll say "print") I want it to do another animation and then go to the "print" scene in the file. Hopefully that made since. How would I do that? A very simple example of this would be: http://www.dvdsgn.com/index_flash.htm . Upon clicking on a link, the top picture fades out and then fades in the next page. The fading out part is what I'm trying to figure out.

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?

How To Get A Button Inside Of A Movie Clip Play The MAIN Movie
how to get a button inside of a movie clip play the MAIN movie

( reposted, bad grammer in 1st one)


I got a button, inside of a movie clip.....
How do I get the button to have the MAIN movie play on click, not the MOVIE clip

When I Click On A Movie Clip I Need The Movie Clip To Goto And Play Frame 2
i have created a movieclip and draged it on to the stage i tryed used on mouse down then tell target goto and play but that ment when ever the mouse clicked any where, how do i tell in to only play when i click on the movieclip ?

Button Link Inside Movie Clip Link To Slide #
First let me say I am a very new to ActionScript and Flash, but have a pretty good understanding of the web and a basic understanding of object oriented scripts from CSS and a few other languages.

I have a navigation menu which is a movie clip containing buttons inside it and have a slide presentation as my main content. I am trying to make the buttons link to a specific slide # in a different part of my flash presentation.

You can see the page here: http://brhpc.ericlevay.com

The nav menu is a downloaded source and the slide show is the default canned one from the Flash templates directory.

I was hoping to use the gotoandStop (slide#) to make the connection between the nav button and the slide but it does not do anything.

I will provide the source if needed...

Thanks!

How To Link Button To Movie Clip
I hope some one can help me with this.

I just resently started tring to creat flash web sites. and its smooth sailling until I try and get my buttons to work. My problem is I have a button in the main area/scene 1 and i have movie clips in the library that i want to link the buttons to.

can anyone help me with the coding to do that. or just what to do?

thanks

Button Movie Clip Link
I've created some simple buttons that I'd like, when clicked, to play a movie clip. Whats the best way to do this?

Movie Clip Button Link
I know this is novice, but how can I add links to movie clip buttons?

Link Button And Movie Clip
i am having trouble with linking a movie clip and a button together. my button is normal with only an up over down hit with no MC's in it. the movie clip i would like to link it to it kinof a button, because in the script it has on(rollover){gotoAndPlay(10);} and rollout and press respectively. What i want to do is when i rollover either the movie clip or the button, both will go to the "over state" and when roll out or press do their thing. does anybody know how to put these together somehow as one? I would appreciate any help!

Thanks in advance!!

Link From One Movie Clip To Specific Frame Within Another Movie Clip
Hello,
I've been working on this problem on and off for weeks now, and am hoping I could get some assistance, as it is driving me batty and my deadline is quickly approaching. Here is the basic setup:

I am creating a Flash webpage. I created a Flash movie with 6 frames, with a movie clip on each frame, each movie clip being a single page of the website. What I would like to do is have button within one movie clip (say a button in the movie "contact" which is frame 5 of the main movie) link to a frame within another movie clip (say frame 3 called "project3" within the movieclip "portfolio" which is frame 2 of the main movie).

With all my efforts, I am only able to get the button to go to and play the called movie clip at frame 1, and no other frame number or label.

I have tried codes such as the following:

on (release){
this._parent.portfolio.gotoAndStop("project3");
}

on (release){
_root.portfolio.gotoAndStop("project3");
}

... and countless other options, but nothing seems to work. I would greatly appreciate any assistance with this matter. For the record, I admittedly do not know much Flash and am learning most of this on my own with a small base knowledge from a design class I took years ago using UltraDelv! Please let me know if I need to go into further detail.

Cheers!

Movie Clip Inside Movie Clip Link To Url Issue
I have created a scrolling row of banner ads that reacts to the mouse. I had some help getting the images to load in using an xml document and also to pass the url from the xml. My problem is the button funtion is blocked as the button movie clips need to be placed inside the scrolling movie clip in order to get it to scroll. Is there anyway I can get these buttons to work? I have attached my fla, please help!

Thanks for your time,

Glenn

Button To Play Movie Clip
I am building a website and I have a movie clip that I have placed on the main timeline. I need the movie clip to play all the way through and then stop at the end, when a button on the main timeline is pushed. I know it is probably really simple but I have looked all over the web and have had no luck getting anything to work. I would appreciate any help

Play Movie Clip On Button Hit
I've been trying to use the search but it doesn't seem to work from me right now!

I'm trying to make a button that has a movie clip in the down state.

I've found out that the button goes back to the over state once the button is pressed so I'll have to make an invisible button over the movie clip and use some actionscript to make the movie clip play when the button is pressed.

Is this correct or am I heading down the wrong path?

My movie clip is called "slider_bottom" and the button is called "bottom_slider", do I have to give the movie clip an instance name?

How do I stop the movie clip from playing until the button has been pressed?

Thanks for your time, I'm sure that this is a simple problem, but I'm a newbie!

S

Button To Play Movie Clip
Hello,

I am hoping someone can help me out I am not knowledgable with flash especially CS3 but that is what I have. My page is a website I have several buttons on my main timeline. I would like it so that when the user clicks on a button it will play a movie clip (from the library). Also can the movie clip be on a particular frame (example frame 30). Does anyone know if this is possible and how to make it work?

Thanks,
Desperate

Play Movie Clip Without A Button.
I had posted this issue in another thread, but i didn't get a solution, then i decided to write another one, and reformulate my question.
If i can, i'll close the old thread. Ok?!

I have a stage with a movieclip. This movieclip has an internal animation.

The presentation is: at the frame 146, the main timeline stops, when i'm able to click on main menu (main menu = movieclip on main timeline), and when i do this, it opens a submenu. This submenu is a child movie clip.

But now my boss told me to change this, he wants that this animation doesn't stop, and opens the submenu whithout clicks.

I don't wanna lose much time reorganize my animation, i need to use AS. Can anyone help me? Thanks in advance =)

Here is the link to the file .fla:

http://www.4shared.com/dir/9953408/7d0d3ee8/Tasker.html

Trying To Link A Button In A Movie Clip To Another Scene
I'm actually trying to do two things. I have a movieclip in a scrollbar. There are two buttons within that movieclip. One I'd like to have link to another frame label in another scene. The other I'd like to have a call up a small browser window. Could anybody please help? my email is scott@algorithmia.com. Thanks.

)s

Issue With Getting Button To Link To Movie Clip
Hi,

Basically, I'm trying to get a button to "talk to" a movie clip (to make it play). But everything I've tried to do has come to nothing.
Please open the attachment, and you will see what I mean. Before we go on, I need to explain a few things.

When you open the attachment you will see four different coloured panels. It's the yellow one that I'm trying to get to work.

What's suppose to happen is when you roll the mouse over the yellow panel, (as it's spinning around) the words "About Us" is supposed to fade in next to the yellow panel and should spin around with it. As soon as you roll the mouse off the panel, the words should fade out.

The yellow panel button is called "About Us Button" and it is located here: Main Page(timeline) Emblem Clip Button Panel Emblem About Us Mask About Us Button. This is the script that is on the button:

on (rollOver) {
_root.gotoAndPlay("AboutGo");
}
on (rollOut) {
_root.gotoAndPlay("AboutStop");
}
on (release) {
_root.gotoAndPlay("AboutUs");
}

The "AboutGo" and "AboutStop" frame labels are on a clip called "About Us Text" and it is located at: Main Page(timeline) Emblem Clip About Us Text. This is the clip that's suppose to fade in and out.

Now, the only part of the script I mentioned above that works properly is the "on (release)" one that links to a frame label on the main timeline called "AboutUs".

Why does that part of the script work and not the other parts.

Please check out the attachment and see if it can be solved.

I will be extremely grateful to whoever can help me out.

LOVE YOUR WORK!!!!!!

Blastbum

Link To A Scene - Button Within A Movie Clip.
The subject pretty much explains it. I'm having trouble getting my buttons which are within a movieclip to link to various scenes.
Any idea as to what actionscript I should use so that the buttons within the movieclip can link to a seperate scene.

Thanks

[F8] Making A Movie Clip Into A Button Or Link?
I have a movie clip that's used to show an email address. The reason I made it a movie clip was so that I could animate via actionscript.

The problem I'm having is a way to be able to click on that mc to make the regular mailto: feature work. Pretty much I want to make it a link. Any suggestions?

Adding Link To Button W/ Movie Clip
I am very new to flash so I'll explain what I've done before I ask what My question is.
I created a button by combining a gradiant rectangle and text>convert to graphic>convert to button>dbl click on the now button>selected 'Over' state>convert to movie clip>added animation to 'Over' state>did the same with 'Down' state (using different animation).
All of this works fine but I am totally stumped as how to add a hyperlink to it. I know how to do it with just a simple image ie draw circle>convert to button>Actions>on (release) {
getURL("http://www.mysite.com", "_self");
}
>save>publish preview HTML
I think it might be where I am trying to add the hyperlink but I'm not sure.
I even tried going to 'Scene 1' selecting the whole thing and converting that to a botton and then adding the Actionscript as above but no joy to that either.
I would really appreciate any advice.
Thanks
Deefsound
ps I have attched a swf of what I've done thus far.

Using Movie Clip As Button To Link To Scene
Hello, this is my first post. VERY new to Flash. Trying to make my first website. I've had no formal training and am just kind of barrelling through using internet tutorials and Flash reference when I get stuck on something.

Which I am now.

I'm making a web page for my motorcycle collection. There's a main window for animations (transitions) and information on each bike and to the left are icons for each bike. Maybe this isn't the best way, but for now I'm doing this by making the page for each bike a seperate scene with an identical frame and identical bike icons on the left. You click the icon for the bike and it goes to the scene with that bike's information in the main window (with a built-in animated transition between).

Now the problem: I am trying to have the icon buttons on the left be advanced rollover buttons. So each one is a movie clip symbol for which I've scripted button attributes. I've taken 8 photos from different angles around each bike to make an animation like the bike's spinning. I put a stop command on the first frame of the mc animation and then on the last frame, I have a gotoAndPlay (2) command. On the rollover state, it goes to frame 2. On rolloff, it goes to frame 1 and stops. This is all working beautifully. However, I want the buttons to link to another scene in the main timeline when you clip on them. So I tried all kinds of different onRelease functions that I found in various forums. None have worked. When I test the file, the rollover states animate fine, but nothing happens when I click the buttons.

I first tried making an actions layer in the edit timeline of the mc itself and putting in this script on frame 1:


Code:

onRollOver = function() {
gotoAndPlay (2)
}

onRollOut = function() {
gotoAndStop (1)
}

onRelease = function() {
gotoAndPlay ("Scene 4", 1)
This didn't work. Then I found out about needing to link it to root to change scenes outside of the mc and on the main animation. So I changed the onRelease code to:


Code:

onRelease = function() {
_root.gotoAndPlay ("Scene 4", 1)
This didn't change a thing!

So I removed the onrelease code from the movie clip timeline and went to the main timeline and tried putting it on the actions layer there:


Code:

600mcbutton.onRelease = function() {
_root.gotoAndPlay ("Scene 4", 1)
The code check came out okay, but it still didn't do anything when I clicked the button. I tried about a dozen variations of all of these things between the main timeline and the mc timeline and it never acted any differently. The rollover animation always worked, the link to Scene 4 NEVER worked. This one's got me stumped.

Thanks for reading all the way through this and helping.

Movie Clip Button Link Problem
ok, ive made my buttons and the movie clips i want to link them to, but i cant seem to get them to work. here is the script i am using.

b1.onRollOver = over;
b1.onRollOut = out;

function over() {
this.gotoAndPlay(2);
}

function out() {
this.gotoAndPlay(7);
}

this.b1.onRelease = function() {
this._parent.gotoAndPlay("news link");
};


not sure why it isnt working. I had it once before but it wouldnt let me link any other buttons to anything else. weird. please help, thanks in advance.

Button On Roll Over Should Play A Movie Clip
what i mean to say is that.. i m making a flash site..and the link have a roll over effect. now when a person roll's his mouse over the link ..the link should play a movie clip(object not a swf file)

now what should i give the script for it!!!

On Button Press, Play Movie Clip ?
I have a scene with several buttons, each of which play a different movie clip, but I am having trouble with my action scripting - calling the clip.

I had the action in a frame label, but I want the clip to play without sending it anywhere, just to pop up and play, and go away when it's over...

can someone help me with the actionscript for this...

D..

Play Movie Clip Within Button On Mouseout
Hey, i did a search for this, but couldn't find anything that matches the description.

I have a button, and in the button's 'OVER' keyframe, i have a movie... So the movie plays (basically an object tween) and it gets to a stop frame within the movie. When the user takes the mouse off the button, i want the movie to start playing again, so it finishes it's tween back to normal.

So the user mouses over the button, it fades frame orange to blue, (for example.) Then when they mouseout it fades back to orange again.

Bit complicated, but thanks in advance

Making A Button Play A Movie Clip
How do you make a button go-to-and-play a certain frame on a movie clip on rollover, and rollout?

I need the actionscript.. thanks.

Play And Pause A Movie Clip With Button
Ok, I'm trying out a new navigation, and I need help. I have 5 buttons, and an animated movieclip next to the buttons. When you roll over any of the buttons, I want the movie clip to play. When you roll off, I want it to stop where it is. The buttons will lead to different HTML pages, (or a frameset, if that will make it easier for the header .swf file to keep from reloading--any thoughts on this would be helpful as well.) Seems simple, but I can't seem to find an answer anywhere. Thanks for the help.

How To Play Movie Clip On Release Of A Button?
eh, I thought I knew how to do this...it seems so simple but for some reason my method is not working.

I want to play a simple two frame movie clip(stop action included inside of it, yes, so it doesnt repeat over and over again) on release of a button. so i figure the script should look something like this, where no01 is the instance name of the movie clip and (1) is the first frame of the movie clip.

on (release) {
no01.play(1)
}

that is on release and play(MovieClip) actionscript commands there...but it's not working. i don;t understand why, seems simple enough. so if any one has any ideas and can point me in the right direction, it'd be much appreciated. the sooner the better too. thanks a bunch in advance!!!

Rigging Button To Play Movie Clip
Hi,

I have a grey box w/ text over it(actually its a list of prices) in which I have converted into a Movie Symbol. I have the movie animated to slide IN and OUT of the flash movie. So its two parts labled in and out.And I have a button labeled "prices".

How do I Rig the button up so that onRelease. the prices slide on screen. And then when another button is clicked. It slides off and another box of info slides on?

[F8] How Do I Make A Button Play A Movie Clip?
How do i make a button i made, play a particular movie clip i want it to play and also reveal a set of more buttons. so i have a button that says "Ontario", then when i press it, a picture of the province will fade in(which i already set the fade in through transistion in the movie clip) and then a set of buttons that are major cities llike "Toronto", "Ottawa", "Hamilton", and so on appear as well. and that all happens from clicking the one button "Ontario". is this possible. if so how do i go about doing this?

[F8] How Do I Make A Button Play A Movie Clip?
How do i make a button i made, play a particular movie clip i want it to play and also reveal a set of more buttons. so i have a button that says "Ontario", then when i press it, a picture of the province will fade in(which i already set the fade in through transistion in the movie clip) and then a set of buttons that are major cities llike "Toronto", "Ottawa", "Hamilton", and so on appear as well. and that all happens from clicking the one button "Ontario". is this possible. if so how do i go about doing this?

Help With Button Coding To Play A Movie Clip
I have three buttons (instance names are: redbutton, yellowbutton, and bluebutton) and three basic movie clips (instance names are: redmovieclip, yellowmovieclip, and bluemovieclip).

How do I code the AS3 to get the buttons to play each movie clip for the corresponding color at X:265 and Y:108?

Basically, I want the buttons to play the movie clips (which are just squares) on demand, and then make them disappear and show the next movie clip at the same X and Y positions (X:265 and Y:108) accordingly.

If someone could paste the proper code and help me out, it would greatly appreciated. And, I would be able to get on with the rest of my hard life

Movie Clip To Play After Pressing A Button
a bit basic but im stuck

i have a button that when the mouse is over the button it runs a movie clip,

but i want it to continue to play when the mouse goes off the button

help!

Button With Mouse Over To Play A Movie Clip...
wonder if someone can help me out?

I am trying to create a button that will do the followings:

step 1 - the button can play a short moive clip when it first appears
step 2 - stop and stay as the last frame image
step 3 - when the mouse over, it will play that short movie clip again
step 4 - when it is hit, it will go display a new url on the same window

i have made the movie clip and the button symbol. but when i put them together, it can only do the first 2 steps...

i am putting this button on my main movie as the front page of my website.
would be much appreciated if someone could help.

A Button In One Swf Causing A Movie Clip In Another Swf To Play?
I currently have one swf referenced in another. One the main one I want a button to have a gotoAndPlay action that causes a movie clip in the other SWF to play a different frame. Anyone know how to accomplish this?

How To Play Movie Clip While Dragging Button?
I was wondering what the best way is to play a movie clip while dragging a button inside a separate movie clip.

Example: I'm creating a children's book in Flash form. Some childrens' books have movement using a pull tab on the side of the page. I have created two things for one of these pages:
A) The pull tab movie clip consisting of a button inside of it. Its code is as follows:
on (press) {
startDrag(toggleDrag2,false,596.5,118.0,666.5,118. 0);
}
on (release) {
stopDrag();
}

This way (and it works), the pull tab cannot be dragged along the y axis, and its movement along the x axis is restricted.
B) A movie clip with a symbol in it that has a motion tween, 75 frames, a stop action and key frame on each of the 75 frames.


There is exactly 75 x coordinates the pull tab can be dragged along (its instance name is toggleDrag2 and the movie clip instance name is Flying Violin).

What I'm not sure how to do is make the Flying Violin move with the pull tab. Not literally along the the x-axis, but with each increase in the x axis of the pull tab, I want the FlyingViolin to play one frame, then stop and wait for the x-axis to increase or decrease. If it decreases, the FlyingViolin movieclip moves back a frame and stops.

Here is the code I came up for the FlyingViolin movie clip:

onClipEvent(enterFrame){
var _x1 = _root.toggleDrag2._x;

if(_root.toggleDrag2._x>_x1)
_root.FlyingViolin.play();
if(_root.toggleDrag2._x<_x1)
_root.FlyingViolin.gotoAndPlay(_currentFrame-1);
}

What I wanted to do was assign a new variable the x value of the pull tab (toggleDrag2), allow the x value to increase, and when it increases any amount, the ActionScript checks to see if toggleDrag2's x value is now greater or less than it was before, and if it is, the FlyingViolin movie clip either plays or decreases a frame (_currentFrame-1).

Did I do this right?

-Galen

Getting A Button To Play Part Of A Movie Clip
Hello all,

I would like part of a movie clip to play when a button in the main movie is released. I put a stop action on the first frame of the movie clip and on the frame where I want the movie clip to stop. I have following script on the button -

}
on (release) {tellTarget ("/clip") {
play ();
}
}

This script results in the following error -

Target not found: Target="/clip" Base="_level0"

Can anyone help with what I am missing?

Thanks,
CG

How To Play Movie Clip While Dragging Button?
I was wondering what the best way is to play a movie clip while dragging a button inside a separate movie clip.

Example: I'm creating a children's book in Flash form. Some childrens' books have movement using a pull tab on the side of the page. I have created two things for one of these pages:
A) The pull tab movie clip consisting of a button inside of it. Its code is as follows:
on (press) {
startDrag(toggleDrag2,false,596.5,118.0,666.5,118. 0);
}
on (release) {
stopDrag();
}

This way (and it works), the pull tab cannot be dragged along the y axis, and its movement along the x axis is restricted.
B) A movie clip with a symbol in it that has a motion tween, 75 frames, a stop action and key frame on each of the 75 frames.


There is exactly 75 x coordinates the pull tab can be dragged along (its instance name is toggleDrag2 and the movie clip instance name is Flying Violin).

What I'm not sure how to do is make the Flying Violin move with the pull tab. Not literally along the the x-axis, but with each increase in the x axis of the pull tab, I want the FlyingViolin to play one frame, then stop and wait for the x-axis to increase or decrease. If it decreases, the FlyingViolin movieclip moves back a frame and stops.

Here is the code I came up for the FlyingViolin movie clip:

onClipEvent(enterFrame){
var _x1 = _root.toggleDrag2._x;

if(_root.toggleDrag2._x>_x1)
_root.FlyingViolin.play();
if(_root.toggleDrag2._x<_x1)
_root.FlyingViolin.gotoAndPlay(_currentFrame-1);
}

What I wanted to do was assign a new variable the x value of the pull tab (toggleDrag2), allow the x value to increase, and when it increases any amount, the ActionScript checks to see if toggleDrag2's x value is now greater or less than it was before, and if it is, the FlyingViolin movie clip either plays or decreases a frame (_currentFrame-1).

Did I do this right?

-Galen

Getting A Button To Play Part Of A Movie Clip
Hello all,

I would like part of a movie clip to play when a button in the main movie is released. I put a stop action on the first frame of the movie clip and on the frame where I want the movie clip to stop. I have following script on the button -

}
on (release) {tellTarget ("/clip") {
play ();
}
}

This script results in the following error -

Target not found: Target="/clip" Base="_level0"

Can anyone help with what I am missing?

Thanks,
CG

Play Movie Clip When Button Released
Hi apologies in advance for the really basic question coming up....

I've created a movie clip symbol called MovieOne (I put a lot of thought into the name!) and I want to make an instance of it play when a user clicks a button. I get that I have to use actions to make this happen, but that's about all I get! Do I need to create an instance of MovieOne and insert it into its own layer in the timeline? If so how do I stop it from just playing straight away?

I tried this action for my button (where Mov1 is the instance name of the movie clip)

on (release) {
    gotoAndPlay(Mov1);
}

but I wasn't surprised when that didn't work!

I had a search for a tutorial on this but no luck - could anyone point me in the right direction?

Any help is v much appreciated - really want to work this one out...

Thanks

Make A Button Play A Movie Clip?
I followed the tutorial on how to make an animated button, but it didn't say how you assign the button to do anything. Is it possible to assign a button to start a movie clip on another part of the site? A movie clip that's not embedded in the buttons movie clip?

Im Sure This Is Simple; Button In Movie Clip Wont Link
The example attached shows the trouble i'm havin with my web page the button bar comes down and when you click on the button thats come down it doesn't link just goes back up again.

I think its just a little action script problem.

Also when i click on the toyota button the menu comes down, how can i make it so a second click on the toyota button would send the menu back up again.

Thanks for helpin guys

[MX04] Link A Button To A Movie Clip Frame
I have a button in scene 1 who need to link to a frame (frame 15) in the movie clip (movie1).
I have only:
on (release) {
gotoAndPlay('movie1',15);
}
please help..

[F8] How Can I Link A Button To A Frame Or Animation In A Movie Clip
good morning fellas. first off thanks to dallasnyc for the help on my last problem. ok, so my issue is that i have a movie clip on the timeline. it plays a short animation. after that animation theres two optons, two buttons on the page user clicks one the animation disappears and another box shows up, same with second. im just not sure what to do from here. any help would be appreciated. i can post the project if neccasary. thank you

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?

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