My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 3: FlexSpy default root should be system manager
3 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by hob.spillane, Jun 03, 2008
FlexSpy is great.  There are a couple of limitations however:

1) FlexSpy's default root is Application.application.  This causes anyone
using to not see a large portion of their page in the object tree.

2) FlexSpy's 'Find Component' feature is somewhat inaccurate.  It doesn't
always narrow down to the last component in a tree.  For example:  You
cannot use the Find Component button to figure out what are the contents of
a grid cell.

I've added some code which seems to solve these 2 issues.  Please review,
and feel free to use this as you please.

The default root is now Application.application.systemManager, so you can
see the entire page hierarchy.

The only potential drawback, is in order to get this working, I had to set
"includeChrome" to false when calling ComponentTreeItem.getHitComponent().
 While this prevents chrome from being targeted, it greatly increases the
number of other components that are targetable.

Hope you find this helpful.

-Hob
ComponentTreeItem.as
10.1 KB Download
ComponentTreeWnd.as
10.5 KB Download
Comment 2 by shanedosch, Aug 27, 2008
This made FlexSpy work much better for me.  Thanks!

Shane
http://www.shanedosch.com
Comment 4 by bernd.anderer.alp, Dec 16, 2008
What do I do with that code?
Comment 5 by hob.spillane, Dec 16, 2008
You'll need to get the FlexSpy source and replace the two files I've posted here. 
Then compile the source as a library project to get the swc.  Either that or just add
your flexspy source as a source path to your project in flex builder.
Comment 7 by DDDan3000, Apr 30, 2009
Thanks for this patch. Really great! But i had to rename the classNames
ComponentPropertiesEditor and StylePropertiesEditor to ComponentProperties and
StyleProperties to get things working. Maybe the latest source download isn't up to date?
Comment 8 by rayt...@gmail.com, Jun 15, 2009
anyone able to  "Find Component" on popup dialogs?
Comment 9 by codecraig, Jul 29, 2009
I believe this has been fixed in the 1.3 release, available in the downloads section. 
Although I haven't seen any update to the SVN repo or announcement.

You'll notice a new option in the FlexSpy window that lets you pick different "root"'s.
Sign in to add a comment

Hosted by Google Code