all groups > flash actionscript > august 2006 >
You're in the

flash actionscript

group:

css apply to dynamic textfield


css apply to dynamic textfield Captain Pill
8/7/2006 5:55:50 PM
flash actionscript:
i try to apply a .css stylesheet to my textField and it work but i dont see the
change. there the code


// load css and load variable
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();
cssStyles.load("styles.css");

cssStyles.onLoad = function(success:Boolean){
if (success) {
this.loadedInfo.StyleSheet = cssStyles;
_level0.myLV.load("mytext.txt");
}else {
loadedInfo.text = "There has been an error loading the requested
information. Please Contact the Webmaster and report the error.";
}
}
Re: css apply to dynamic textfield WebXperience
8/7/2006 8:56:09 PM
AddThis Social Bookmark Button