how to change backgroundColor of TextInput which is inside a movieclip in AS3?
Hi,
I've created a movieclip instance named grid1 and is accessing various child objects (textInputs) inside that movie clip using - grid1.getChildAt(1).scaleX=10; (eg).
However, what's wrong with the below lines?
grid1.getChildAt(1).textField.backgroundColor=0xffcc00;
Error 1119: Access of possibly undefined property textField through a reference with static type : flash.display:DisplayObject;
or
grid1.getChildAt(1).setSize(500,500);
Error:1061: Call to a possibly undefined method setSize through a reference with static type: flash.display:DisplayObject;
when textInput 'text1' is on stage, following codes are working fine:
text1.textField.backgroundColor = 0xffcc00;
text1.setSize(120,50);
