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

visibility

Status
Not open for further replies.

wakkoguy

Technical User
Oct 30, 2001
84
0
0
US
I am trying to make a movie clip invisible. i have named it mc_button

here is my code:

on (release) {
gotoAndPlay ("Pam Out");
with (mc_button) {
_visible = false;
}
}

here is the error i get:
Error: A 'with' action failed because the specified object did not exist.

what am i doing wrong, the mc is in the same clip!
 
Try this instead:

on (release) {
gotoAndPlay ("Pam Out");
mc_button._visible = false;
}

As long as your instance name is correct it should work if they're in the same timeline.
Slainte

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top