If the swf is player 8, the code will be stripped so there won't be code to talk to. If the swf is player 9/cs3, then you should actually create a swc and import it as classes.
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Giles Roadnight Sent: Friday, April 20, 2007 4:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Communicating between Flex and Embeded Swf loaded with loadBytes Hi I have made a custom pre-loader for my Flex app that displays an embedded swf: [ Embed(source="/assets/ui/loader_panels.swf", mimeType="application/octet-stream") ] public var WelcomeScreenGraphic:Class; public function WelcomeScreen() { this.loadBytes( new WelcomeScreenGraphic() as ByteArray ); } This works fine but the swf needs to laod different xml files depending on the localeCode set in the flash vars of the main Flex App. How can I pass this variable into the swf so that it loads the correct xml file? Also is there a way for the flash file to dispatch an event or call a function in the flex app when the animation has finished? Thanks.