View Full Version : quick question (noob)
substance
August 19th, 2006, 10:15 AM
K so I have a movieclip called 'player' and within that movieclip i have one called 'close'.
on 'close' I have the following AS :
on (release) {
this._parent._visible = false;
}
why isnt this working? I feel so dumb because it's such a small bit of code :/
I tried accessing it though '_root.player' as well, that didnt work either.
Ceejeeb
August 19th, 2006, 07:47 PM
well is the close bit a movieclip or a button cos the code you showed will only work if its a button if its a movieclip it needs to be
close.onRelease = function(){
this._parent._visible = false;
}
and it needs to be in a frame not on the movieclip
substance
August 19th, 2006, 10:55 PM
**edit** Okay, the parented mc,'player' is draggable. When I commented out the code that makes it draggable the button to make it invisible.'close' worked.
I guess it makes sense, what's happening is the on release function I have for 'player' is overwritting the 'close's on release function.
So.. how can i get them both to work (and yes, the 'close' mc needs to be in the 'player' mc)
substance
August 20th, 2006, 05:05 PM
bump :o
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.