AmigaAbattoir / fxspy

Automatically exported from code.google.com/p/fxspy
0 stars 0 forks source link

Modal popups do not appear in the FlexSpy dropdown #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a popup in your application and invoke it using 
PopUpManager.createPopUp(null, PopupClass, true);
2. Run your application and open FlexSpy

What is the expected output? What do you see instead?
The popup should be displayed in the "root" drop down menu.  Instead, I 
only see "Main".  In fact, if the popup is not modal, it does appear.

What version of the product are you using? On what operating system?
FlexSpy 1.3, Flex 3.4, Windows

Please provide any additional information below.

Original issue reported on code.google.com by brianmg...@gmail.com on 13 Jan 2010 at 4:23

GoogleCodeExporter commented 9 years ago
Note, this is similar, but not quite the same as issue 8

Original comment by brianmg...@gmail.com on 13 Jan 2010 at 4:24

GoogleCodeExporter commented 9 years ago
Brian, I'm the owner of Issues 11 and 12.  See as how there does not seem to be 
a lot
of activity on updating this project - have you found any solution to this 
problem
yet?  I was going to start looking into it, but figured i would ask if you had
figured out anything yet?

Thanks!
-Weston

Original comment by WestonMc...@gmail.com on 11 Mar 2010 at 4:03

GoogleCodeExporter commented 9 years ago
Hi Weston,

Not really.  I use FlexSpy.registerKey() to open FlexSpy with a shortcut key.  
You 
can pass that method a root DisplayObject, and for a while I was passing it a 
reference to stage.  This actually did reveal the popups, but it meant that by 
default (if there were no popups), Main was not selected, which was a bigger 
inconvenience.

I am trying to remember, but this might have only been an issue on modal 
popups.  
Hope some of that helps!

Thanks,
Brian

Original comment by brianmg...@gmail.com on 11 Mar 2010 at 7:39

GoogleCodeExporter commented 9 years ago
Thanks Brian!  I'll try passing the stage object.  Perhaps i can add a hook to 
focus on the main app if no modal 
windows are detected.  Thanks again.

Original comment by WestonMc...@gmail.com on 12 Mar 2010 at 2:07

GoogleCodeExporter commented 9 years ago
Update the method listWindows() of ComponentTreeWnd action script 
(flexspy/imp/ComponentTreeWnd.as) as below. It will let FlexSpy to spy both 
modal and modeless popups:

        private function listWindows(windowsArray:ArrayCollection, list:IChildList): void{
            for (var i:int=0;i<list.numChildren;i++) {
                var currentWindow:DisplayObject = list.getChildAt(i);
                if (currentWindow == _instance) {
                    break;
                }

                if (currentWindow.name.toString() != "modalWindow"){
                    windowsArray.addItem(currentWindow);
                }

            }
        }

Original comment by javaspar...@gmail.com on 20 Jan 2011 at 7:23

GoogleCodeExporter commented 9 years ago
Attached the updated file

Original comment by javaspar...@gmail.com on 20 Jan 2011 at 7:25

Attachments: