[flexcoders] Re: Under flex Builder, is it possible to step into an app loaded by SWFLoader?
The one caveat to this is that you have to load the debug version of the module. When I first started using modules I forgot this and spent a few hours (days...) beating my head against the wall and cursing Flex Builder. I use a simple conditional to check the url of the shell app to see if I am debugging and load the appropriate module. --- In flexcoders@yahoogroups.com, Sterling, Brian [EMAIL PROTECTED] wrote: To answer your last question, yes you can debug modules in FlexBuilder when they are running in an including app. I just set a break point in one of our modules and it worked like a charm. -Brian From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Thursday, May 31, 2007 3:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Under flex Builder, is it possible to step into an app loaded by SWFLoader? For one of our clients, we make heavy use of SWFLoader to load applications into a shell app. This works very well but is hard to debug, since I haven't found any way to debug the loaded apps (except for trace, of course). Is it even possible to debug apps loaded this way? Running the loaded apps alone is problematic, since they depend on data (xml) passed in from the shell. I could default this data for testing purposes, but am hoping for some magic instead! I have not explored modules yet. Can you step into them in the FB debugger? Tracy
[flexcoders] Re: Context menu mouseTarget vs. itemRenderer with Image control
If you are using a custom item renderer why aren't you just adding the context menu to the item renderer? As a note if you are extending one of the default item renderers they have the mouse disabled in the constructor so this needs to be fixed. --- In flexcoders@yahoogroups.com, tsiesser [EMAIL PROTECTED] wrote: I'm hoping someone's had experience with this one... I have a TileList control with a custom itemRenderer. The renderer consists of an Image control and a few Label controls. I've also attached a custom context menu to the TileList. In the MENU_SELECT event, I want to set the TileList's selectedItem to the item that the mouse is over before popping up the context menu. So I examine the event.mouseTarget property... this might be one of the embedded Label controls, so I crawl up the parent property till I get to the top. Works great - I eventually get to the itemRenderer level, where I can check if the renderer.data value is already selected, and if not, select it. It *doesn't* work if I right-click on the Image control. In that case, mouseTarget comes back as a MovieClip object with its parent property set to null - there doesn't seem to be any way to determine which itemRenderer it belongs to! Any ideas? All help appreciated, as always!!! --Tracey