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

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO