Hello all,
In my flash program, I have a MovieCoip called display_mc that contains another movieClip called list_mc. List_mc contains several created movieClips called "thisMC0", "thisMC2", ... "thisMC9". Each of these movie clips contain a textField called "myTextField".
i.e. _level0:
display_mc:
list_mc:
thisMC0:
myTextField
thisMC1:
myTextField
...
thisMC9:
myTextField
I can get all of the "thisMC"s to show up, but the textFields will not apppear. Can anyone please tell me why this is so?
Thank you -
Frank
Here is the code for clarity:
In my flash program, I have a MovieCoip called display_mc that contains another movieClip called list_mc. List_mc contains several created movieClips called "thisMC0", "thisMC2", ... "thisMC9". Each of these movie clips contain a textField called "myTextField".
i.e. _level0:
display_mc:
list_mc:
thisMC0:
myTextField
thisMC1:
myTextField
...
thisMC9:
myTextField
I can get all of the "thisMC"s to show up, but the textFields will not apppear. Can anyone please tell me why this is so?
Thank you -
Frank
Here is the code for clarity:
Code:
var nextAvailableDepth = 1;
for (var SLIndex=0; SLIndex<10; SLIndex++){
instanceName = "thisMC"+SLIndex;
thisMov = display_mc.list_mc.createEmptyMovieClip(instanceName, _root.nextAvailableDepth++);
with (thisMov) {
beginFill(0xFFFF59, 40);
lineTo(100, 0);
lineTo(100, 20);
lineTo(0, 20);
endFill(0, 0);
_x=10;
_y=SLIndex*30;
}
//create text box
thisMov.createTextField("myTextField",_root.nextAvailableDepth,1,1,10,10);
var thisMovTitle = eval(thisMov + ".myTextField");
trace(thisMovTitle);
with (thisMovTitle) {
multiline = false;
wordWrap = true;
border = true;
borderColor = 0x000000;
}
trace(display_mc.list_mc[instanceName]["myTextField"].borderColor);
} // end for
stop();