Hi,
You can use Flex Component Kit to create contents from Flash which can be used as components in Flex Take a look at this link http://blog.flexexamples.com/2007/09/02/installing-the-flex-component-kit-fo r-flash-cs3/ Subeesh From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Todd Sent: Tuesday, November 11, 2008 10:40 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Accessing properties of Embedded Flash SWFs from Flex 3 OK, a little more research tells me that the Flex compiler strips out all timeline code from the embedded Flash timeline. So, now my question becomes: How do I expose a property from FLASH that is accessible from Flex? --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Todd" <[EMAIL PROTECTED]> wrote: > > Hello All, > The Flex docs aren't really clear on this, but I'm wondering if it's > possible to EMBED a SWF written for Flash 9 into a Flex 3 application, > and then access some properties on it, methods, and click events from > it. Right now, I get an error: > > ReferenceError: Error #1069: Property foo_test not found on > embedded_asset_object and there is no default value. > > I'm using mx:SWFLoader with an id of loadedSWF and some code that > looks like: > > loadedSWFMainTimeline = loadedSWF.content; > testProperty = loadedSWFMainTimeline.testProperty; > > Poof Error! > > I've also tried casting the loadedSWF.content to Objects and the > dataClass (which wasn't right) > loadedSWFMainTimeline = (loadedSWF.content as Object).dataClass; > testProperty = loadedSWFMainTimeline.testProperty; > > Any ideas? The Flex documentation alludes that this won't work for > SWFs compiled to Flash Player 8 or earlier, but doesn't really > mention, nor have samples for FP 9+ >