For some reason it doesn't recognize the instance name. I tried accessing the instance directly without using the array to access it.
Object(this.parent).AD44.lite.visible =false;
TypeError: Error #1010: A term is undefined and has no properties.
at WordScrample_fla::delete_1/sel()
its the dynamic instance name i am giving the child when adding it.
if (WordScramble.A.length > 1){
var AD4 = new DICE();
addChild(AD4);
AD4.name = ("AD4"+DN);
DN++}
/*inside the DICE movie clip is where the instance name is added to the array
when the dice has been clicked*/
WordScramble.IName.push(this.name);
trace(WordScramble.IName);// = AD44,AD33 (So the instance name are there)
Do you have any Ideas what I doing wrong here?
Thank you for your help once again