Accessing button in root file as3
Hi, I have created one flash as3 (main.fla) file with next, previous buttons and I have loaded one child swf (firstchild.swf) file into main file. In child swf also I have loaded another child swf (grandchild.swf) [grand child to main file]. I have disabled the next button in main.fla file and trying to enable the button from grandchild.
My coding look like:
main.fla:
next_btn.mouseEnabled = false;.
grandchild.fla:
I have tried two scirpts:
- MovieClip(root).next_btn.mouseEnabled = true;
- (root as MovieClip).next_btn.mouseEnabled = true;
but any one of them doesn't works for me. can any one help me to solve my problems.
Thanks in advance........
Note: Output says...
TypeError: Error #1010: A term is undefined and has no properties.
at grandchild_fla::MainTimeline/frame1()[grandchild_fla.MainTimeline::frame1:1]