A SWC is a link-time library. You cannot call loadStyleDeclarations on it. You an unzip it an extract the library.SWF and load that if you want.
Alex Harui Flex SDK Developer Adobe Systems Inc.<http://www.adobe.com/> Blog: http://blogs.adobe.com/aharui From: [email protected] [mailto:[email protected]] On Behalf Of Tahniyat Kazmi Sent: Monday, February 09, 2009 3:23 AM To: flex CODER Subject: [flexcoders] How to use SWF from SWC?? Hi, I have a problem in getting SWF from a SWC. Actually I added a compiled SWF of a CSS file in SWC library. Then add that SWC in to project now wana use that SWF into project but runtime error occures [http://www.flexdeveloper.eu/forums/Smileys/set1/sad.gif] Example: StyleManager.loadStyleDeclarations("fontCss.swf"); StyleManager.loadStyleDeclarations("CSS2.swf"); fontCss.swf is SWF that i create in current project and CSS2.swf is library SWF... Now kindly help me out to how access this SWF from the SWC Thanks

