Calling a parent function when child .swf closes
i adding child .swf parent simple button. if button clicked multiple times, child added multiple times. added ".visible = false" button when clicked button cannot clicked while child open.
now, there "close" button on child .swf uses "this.parent.parent.removechild(this.parent);" , need set parent button ".visible = true".
i have tried movieclip.parent.parent.resetbutton(); and parent movieclip.resetbutton(); , many variations of code. no errors code doesn't work either.
any ideas?
thank you.
figured out on own (don't believe it) without child/parent communication.
when parent's button clicked, i'm checking see if child exists. if so, won't create child again.
i'd still know how perform communication between child , parent.
More discussions in ActionScript 3
adobe
Comments
Post a Comment