Hey, This can be done. But one of the issues is conceptual - how do you wrap style tags around text as someone's typing it? You kind of have to choose one style for the whole input field, unless you're building a text editor...
This should work, although I can't test it right now... var myStyleSheet:StyleSheet = myAlreadyLoadedStylesheet; var styleName:String = "plain"; //get style '.plain' from sheet. Note '.' in file, but not in 'getStyle' call var styleObj:Object = myStyleSheet.getStyle(styleName); var styleFormat:TextFormat = myStyleSheet.transform(styleObj); field.setTextFormat(styleFormat); field.setNewTextFormat(styleFormat); Jim Kremens _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com