tonythemediaguy
October 8th, 2007, 08:16 AM
Hi,
I have a sprite called newCircle. It has two children: over (sprite) and label8 (textfield). I can access the alpha value of "over", but I'm trying to set my variable to the value of the textfield label8 when clicked.
newCircle.addChild(over);
newCircle.addChild(label8);
this is inside my event listener for CLICK but just returns null.
event.currentTarget.getChildByName("over").alpha = 0;
_firstCard = event.currentTarget.getChildByName("label8").text;
Any help is greatly appreciated,
Tony
I have a sprite called newCircle. It has two children: over (sprite) and label8 (textfield). I can access the alpha value of "over", but I'm trying to set my variable to the value of the textfield label8 when clicked.
newCircle.addChild(over);
newCircle.addChild(label8);
this is inside my event listener for CLICK but just returns null.
event.currentTarget.getChildByName("over").alpha = 0;
_firstCard = event.currentTarget.getChildByName("label8").text;
Any help is greatly appreciated,
Tony