Hello,
I am in middle of developing a big application where I am using popups in various places. I have a "SuperPanel" as a container for all my popup windows. This is a customized panel which extends the Flex Panel container.
In one particular scenario I have created a maximize button, clicking on which takes an ADG from the application and displays it on a Popup window. The ADG is a child of a VBox. Now when the user closes the popup the same ADG is collapsed to become a child of the previous container where our maximize button lied.
Everything is working fine except for one thing that the creation of the popup and removal of popup is very slow. It takes more than 4.5 seconds for the popup to be seen on screen and also the same time to be removed from the screen.
This is not the case for other popupwindows where I am displaying a different kind of data.
What can be the reason for such a lag in popup display?
Thanks in advance,
Bhargav
Thanks for the reply Matt.
I am adding the old ADG and not creating a new instance.
My flow in the maximize button click event handler is this way:
//use PopUpManager.createPopUp for creating a new popup
I hope the above code helps to make the whole scenario clear.
Let me know if you need anything more.
Thank you for the feedback and I will definitely talk to my senior about
this.
Also since you are an Adobe employee, I would like to ask one more thing.
How can I make my Flash Builder 4 ignore the SCCS files which are generated
by my revision control?
I tried to modify the plugin.xml file to include s.* file in the filters of
FB but I am denied any modification in the file. I have a Win 7 and logged
in as Administrator. Still when I open the file in wordpad, modify and then
save the file it says that access to that file was denied.
Some light in this will really reduce my search time among folders.
Regards...
Bhargav
Sorry for the delay but I had found the solution to my problem.
It was silly of me to pass a parent of the current component as parent to the popup. It should have been the component itself or the application.
With the change in the parent the popup is acting as required.
Thank you all for looking into my problem.
Bhargav
A little late, but thanks komal harkut! I was having the same problem, but with
myPopup.open(FlexGlobals.topLevelApplication as DisplayObjectContainer, true)
I actually saved 3-4 seconds!
Although, with retina displays and Flash 11.5 it is still quite slow (everything looks slower actually) so I guess I'll have to run the profiler again and start switching to images instead of vectors. :(
North America
Europe, Middle East and Africa
Asia Pacific