I am a frontend developer and author based in the UK, specializing in JavaScript development and application architecture. I founded Newtriks Ltd. and have been remotely contracting for the last 10 years for global corporations and venture-backed start-ups. I regularly consult Angular, Backbone, and React, and train programmers in test-driven development. I'm an enthusiastic open source contributor and am the cofounder and lead developer of the live webcasting platform Sayansho Ltd. Please contact me to discuss your specific business requirements.
In a previous post I highlighted how I found that certain styles where getting lost on my UITextField’s especially in renderers etc. I still noted people were finding this a continued issue and I have found a better way of handling this now which I have so far had 100% success with. Please see the code below:
12
var customTxtField: CustomUITextField = new CustomUITextField();
customTxtField.styleName = "styleCustomText";
123456789
//Add this into a Custom Class that extends UITextField
override public function styleChanged( styleProp:String ):void
{
super.styleChanged( styleProp );
var c:Number = getStyle("textColor");
setColor( c );
}