PDA

View Full Version : Problem with changing CSS style on the fly


actionScriptorz
04-10-2008, 03:07 PM
Hi all,

i'm trying to load different styles on the fly, i've read tutorials about compressing the css file to swf using the mxmlc in command line, the file is genereated, but somehow its not displaying the style. Is there anyway to check if the compressed swf file is valid? or am i missing something?

FYI: i have
initialize="StyleManager.loadStyleDeclarations('en_style.swf', true)" in my application tag, and en_style is in the same folder as my main mxml file and the style is not displaying, which contains only a background-image

Thanks in advance and nice to meet everyone,
Actionscriptorz

actionScriptorz
04-10-2008, 04:19 PM
nevermind, i passed in -use-network=false to test HTTPService with a local file, i got rid of the argument and it works fine now.