The following code fails because I can’t seem to direct it to the textField objects I’ve created:
this.createTextField(footerText1, 0, 100, 25, 0, 0);
this.createTextField(footerText2, 1, 400, 25, 0, 0);
var hexColor:String = new String();
hexColor = "9BC2FD";
with(_root.footerMC.footerText1){
text = "Contents \u00A9 2007";
autoSize = "left";
selectable = false;
textColor = parseInt("0x" + hexColor);
}
I’ve tried:
[FONT=Courier New]with(footerText1){
with(this._parent.footerText1){
with(_parent.footerText1){[/FONT]
and even an absolute [FONT=Courier New]with(_root.footerMC.footerText1){[/FONT]
None of them works! What is going on??