<mx:XML source="/locale/XCConnectorStrings_dev.xliff ../>
Tracy Spratt, Lariat Services, development services available _____ From: [email protected] [mailto:[email protected]] On Behalf Of Flap Flap Sent: Friday, August 07, 2009 10:53 AM To: FlexCoders Subject: [flexcoders] Embed XML file cause a "must inherit from Sprite to link to the root." Hi all, So I have a Flex project with a file that have an XML embed using embed metadata. [Embed(source="/locale/XCConnectorStrings_dev.xliff", mimeType="application/octet-stream")] protected var devXML:Class; When lauching the swf file I get this Error : "myclass_devXML must inherit from Sprite to link to the root." The tricky part is that the SWF file is generated by a dashboard tool called Xcelsius so I don't have much control on the compilation of the real swf. I just compile a swf file that will be embed (how. ?.. no clue) into the resulted swf. I know this give a big unknown to my problem so if you see alternative solution to embed xml file into a class or project I will definitively appreciated ! Thanks Benoît Milgram / Flapflap http://www.kiloocte <http://www.kilooctet.net> t.net

