Question

I am developing a flex screen, in which i have a canvas, above to that there will be a button, by clicking that button we can create panels dynamically.My problem is if a panel was manually dragged and kept in the position where new panel to be created then new panel have to be created somewhere else that means not above any other panels. How to achieve this..Pls give me any solution.Thanks

No correct solution

OTHER TIPS

my first idea is that you keep array of created panels. while creating new panel, you should check in this list if any panel colides with the one you created (get x and y position and width, height and check if it kolides or not)

tou can also create new component based on canvas and override its addChild method.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top