You have specified wrong name ...No need to specify css.swf only put filename.swf.....You should do in this way
StyleManager.loadStyleDeclarations("theme/purple.swf" , true);
It will definately solve your problem!
If solves then do not forget to mark my answer as correct
Hi thanks for the reply.
The actual name of the swf is purple.css.swf and not purple.swf so the naming, as far as I can tell, is correct. I did try your suggestion but it didn't work.
I guess you can try this
StyleManager.loadStyleDeclarations("../theme/purple.swf" , true);
No luck with that one either I am afraid.
I think the problem is to do with the compilation of the external swf's into the Flex application. If I don't embed the css.swf then I don't get an increase in the filesize which suggests that the css.swf file is not being included at compile time. I am not sure how Flex Builder handles this when the 'Compile CSS to SWF' option is checked.