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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting button property

Status
Not open for further replies.

sarak

Programmer
May 3, 2001
25
US
Within a movie clip I have two buttons. I would like to use Button A to set the width (_xscale) of Button B. I haven't had any luck; it seems that I need to reference an instance of Button B, yet I'm unable to figure out how to name anything but a movie clip. My question is whether it's absolutely necessary for Button B to actually be a movie clip instead.

In that case, maybe with I should create a movie clip with a button in it? I believe Button B does need to be a a button since I'm using an on(Press) action with it.

Thanks!
 
Select your button and turn it into a movieClip with f8. All the button functions still work but you can give it an instance name and set its propeties too.
 
Thanks for the response! Actually, I tried simply changing Button B to a movie clip and in fact the button properties don't work still. I have these actions assigned to Button B:

on (press) {
startDrag ("");
}
on (release) {
stopDrag ();
}

When I change button B to a movie clip, these behaviors don't work. Any other ideas? Or am I missing something??
 
You simply have to specify what mc you want to drag...

Regards,
wink4.gif
ldnewbie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top