Hey guys, Thanks for the initial help on this - I finally got this to work, at 3am this morning! Just a quick note to anybody else reading this: For this FP9, AS3 SWF thing to work properly, you must use the SWFLoader.load Command. I was using a method I saw in a Cairngorm App, where you would bring in all the Assets using the Embed Metatag, and then casting them as a "Class". This royally screws things up, and I can only assume that it's because of the Class casting. So after changing my method to Load, instead of setting the "Source" property to an already embedded Asset, I could finally gain access to my named MovieClips defined within the SWF File. Now my next question: Can I traverse the Document Tree, using the Dot Notation - if there are more MovieClips, embedded within the MovieClips I created variables for (using the getChild? Thanks for the info regarding this, Mike
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Wicks Sent: Wednesday, February 14, 2007 11:17 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Can't we access MovieClips contained in embedded SWF's? Temporarily assigning it would probably be best I guess - especially as its going to loop through 140 each time - Scott's idea is a good one too and should work - might give it a try later on myself to test it - but my gut instinct would b e to create a loop - then you can just use getChildAt(i) to assign the properties ... matt On 14 Feb 2007, at 17:05, Mike Anderson wrote: Well, my goal is this: There will be a ton of interactivity between the Flex variables, and the Subdivision Plat SWF. In fact, how the SWF looks visually, and behaves based on mouse interaction, will all depend on the values brought back from the database. For example, if a Lot has been sold to a customer, I need to change the color of the Lot MovieClip to Red. There are 4 other possible Statuses, that the Lot could have - and each Status is represented by a unique color. After the Plat SWF is brought in, the Flex App will loop through all 140 Lots, and set each corresponding MovieClip color, in addition to any other information I want shown. Luckily, in this particular case, I will have knowledge beforehand based on the database data, as to which Lots will already pre-exist on the SWF. This is where I need to decide, which parts I should code within the Flash 9 SWF, and which parts I should code within Flex. If I had my choice of course, I'd code everything 100% within Flex. Bottom line, I just want to code the bare minimum on the SWF side, so I can programmatically control everything from within Flex. Anyway, moving on, when the mouse hovers over a Lot, I need to have some additional information popup - like a ToolTip. I need the dimensions, total square footage, and the customer information (if the Lot has been sold). In this case, I can just have a custom component popup, and populate it with the corresponding information from my ArrayCollection. I just need to find a way, that when the mouse hovers over a particular Lot on the SWF, to signal Flex which Lot is being hovered over, so I can grab the appropriate data from the ArrayCollection, and fill in all the blanks. So with all that said, is there any other methodology you would use, to accomplish the tasks I mentioned? I suppose I could forego creating 140 variables, and just create a new one on the fly, each time the mouse hovers over a particular lot. Then I can grab the corresponding Child, and temporarily assign it to the Variable - in order to gain access to it's properties and methods. Thanks again for all your help - Mike ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Wicks Sent: Wednesday, February 14, 2007 10:45 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Can't we access MovieClips contained in embedded SWF's? Mike, what do the clips need to do? Matt On 14 Feb 2007, at 16:36, Mike Anderson wrote: Plat Overview of a subdivision