Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with Buttons 3

Status
Not open for further replies.

mrroberts

Technical User
Jun 5, 2001
19
GB
Hi There,

Okay here goes, I have created a button and a few MC's in the OVER frame the MC works fine, I have put a blank frame in the DOWN frame as I dont want it to do anything, but when it has been clicked I want a different MC to play I put the MC in the Hit Frame but it doesnt work ? If I put it in the DOWN frame it works fine but you have to keep it clicked.
How do I get the MC to play when the button has been clicked.

Im sure this aint hard to do im just not getting it ????
Any Help ?
 
create a seperate mc and target it from the button. Do you know how to do this? If not here goes.

In Flash 5:

on (release) {
text.play ();
}


With F4 you use the TellTarget command:

on (release) {
tellTarget ("text") {
play ();
}
}


Hope this helps


roda B-)

Learning is like rowing against the current. As soon as you stop, you start going backwards.
 
hi there,
If you want the mc to run in or over the existing mc,
don't put the mc in the down state, you require the down state to be within the button on stage... right click the button on the stage, properties,actions,on mouse event, select, on press, or whatever you require, then load movie, enter your movie name in the right box..eg..test.swf, then select either, 0 or 1 in the location level box.. this determine wif the mc is in or substituted for the mc that is running at the time...

Good Luck

John
 
you cant play a mc in the hit frame of a button..to get it to play you need to create a button that links to the mc..drag the mc onto th time line where you want it to show up..you need to name the instance of the mc "mc1" or whatever you named it..add these actions to the button..

on (release) {
tellTarget ("mc1") {
gotoAndPlay (1);
}
}
or you could use this:


on (release) {
with (mc1) {
gotoAndPlay (1);
}
}



e.gif


carlsatterwhite@endangeredgraphics.com
 
Im using F4,
Im not too hot on these action scipts,
I have kinda worked out how to get these commands, But it still dont work, I have put the MC on the stage but it just plays when its not on the stage and you click the button nothing happens.

At the moment I have this ????

On (Release)
Begin Tell Target ("anim")
Go to and Play (1)
End Tell Target
End On

what am I doing wrong?

 
Haha,

I have worked it out now, abit of trial and error,


Thanks all for your help !!!
Keep up the good work !!!!

Aaron...
 
Yep

the thing just kept on playing, Which was pretty pointless!!

Cheers Mate


Aaron....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top