How to get the parent movieclip from child movieclip
I have used MovieClip(parent.parent).When i click the child moviclip it is showing me null value.
I have one movieclip in library. Inside that mc i have created three movieclip.By using for loop i have created 5 set of movieclip on stage.
for (var i:int=1; i<(len+1); i++) {
myMovieClip = new qmc();
if (i==1) {
var yval:int=stage.stageHeight/3;
//trace(yval+"==yval");
} else {
yval=yval+myMovieClip.height+5;
}
myMovieClip.x=stage.stageWidth/10;
myMovieClip.y=yval+10;
addChild(myMovieClip);
}
The output will come like this
when i click the first row of any radio buttons i want to get the moviclip of the parent name or id value of the parent moviclip
i have written the code like this
myMovieClip.name="mc"+i
myMovieClip.id=i
When i click the radio button am not able to get the parent name
it is showing null
I don't know what the missing image might have done to help your explanation, but without it I am definitely not able to follow what you describe. You start off talking about movieclips inside movieclips and then you talk about a row of radio buttons.
What is the relationship of the radio buttons to the movieclips? What is the code for the radio buttons that you say isn't working?
North America
Europe, Middle East and Africa
Asia Pacific