I copied code to load a stylesheet from one (working) FLA file to new FLA file. New file does not work. Old one does.
Code:
my_ss = new TextField.StyleSheet();
my_ss.onLoad = function(success) {
if (success) {
trace("myStyle.css loaded");
} else {
trace("myStyle.css did not load");
}
};
my_ss.load("text/myStyle.css");
I get output that myStyle.css did not load.
Have double, triple, quadruple++ checked the path. It is correct.
Is it a problem with the stylesheet file itself? I’m working in BBedit, file has DOS line breaks.
(should it be saved DOS UNIX MAC? Unicode?)
Flash Publish Settings: Flash Player 8
Load: Bottom up
Actionscript 2.0
Suggestions? Ideas for how to further troubleshoot to understand what, exactly, is not loading?