- In: Actionscript 3.0 | AIR | Flash CS3 | Flex
The AS3 HTML text property combined with the Flash's ability to interpret and display subject specific XML symbols gives you the ability to create well-formatted Flash applications that use math symbols, foreign alphabets and ancient alphabets. Solved: Welcome, I do an Input text in my stage and tie with a as3. I have a problem with shown a correct result instruction if.This is my code: - 3166231.
Following is the code for finding and changing BackGround color of all the Input textfields in a perticular scope
//---- Import classes ----------
import flash.utils.getQualifiedClassName;
import flash.text.TextField;
import flash.text.TextFieldType;
//--------- initialize variables ----
var temp:Array;
trace(this.numChildren)
for(var k:int=0;k < this.numChildren;k++){
var child:* = this.getChildAt(k);
if(getQualifiedClassName(child) 'flash.text::TextField'){
var childIns:TextField = child as TextField;
if(childIns.type TextFieldType.INPUT){
changeBGColor(childIns);
}
}
}
Input Text Align
Input Text Attribute
//---- function to change BG color of input boxes ------
function changeBGColor(textFieldObj:TextField){
textFieldObj.background = true;
textFieldObj.backgroundColor = 0x00ffff;
}
As3 Input Text Listener
Tags: Change Input Text Backgoround Color, Change Textfield BG color, Find all textfield on stage