Answered
Lisetening for Property change
I have created a MC to be used as a button. It is generic and
I customize it per instance. It contains an onRelease event
handler.
I am confused as to what approach I can take within the MC's onRelease statement that would allow the parent to 1> know the MC has been clicked & 2> know which instance of the MC has been clicked (without putting onRelase code for each instance at the parent level).
I was trying the following...
myMC.onRelease = function() {
_parent.clickedButton = myMC._name;
};
...but I couldn't figure how to make the parent listen for a change to clickedButton.
How can I listent for a variable change? Is there a better approach?
thx,
Nathan
I am confused as to what approach I can take within the MC's onRelease statement that would allow the parent to 1> know the MC has been clicked & 2> know which instance of the MC has been clicked (without putting onRelase code for each instance at the parent level).
I was trying the following...
myMC.onRelease = function() {
_parent.clickedButton = myMC._name;
};
...but I couldn't figure how to make the parent listen for a change to clickedButton.
How can I listent for a variable change? Is there a better approach?
thx,
Nathan
