Hi there!
I’m loading some CSS for my dynamic text textfields, but I have lots of MC’s containing many other MC’s which contain many textfields.
I’m using this:
myCSS = new TextField.StyleSheet();
myCSS.load("styles.css");
myCSS.onLoad = function(success) {
if (success) {
MC1.myText.styleSheet = myCSS;
}
};
but the main nuisance is the fact I need to apply this piece of code for every MC in the movie and every MC within an MC… and every textfield.
Isn’t there a way to apply this CSS just once, to ANY textfield in ALL levels of the project? (Just like when you load an external txt file with LoadVars)
I mean, I’d like to know if something like this could be done:
LoadtoAnylevel.ANDtoAnyTextfield.styleSheet = myCSS;
Thanks in advance for your help.
Cheers,