flex - How do I move displayed objects with a mouse dragging when they are positioned at the same place? -


i have objects on stage. in order debug positions (some overlap , hidden) decided drag them mouse see hidden ones.

this did:

  1. i traverse display objects on stage , put them in array.
  2. in loop wrap dispobj in wrapper because can't add event listener dispobj:

        var wrapper:uicomponent = new uicomponent();     wrapper.addchild(child);     wrapper.addeventlistener(mouseevent.mouse_down, gethandler); 
  3. in gethandler function drag object

        e.currenttarget.startdrag(); 

is correct solution problem? (it looks wrapping doesn't work here)

chris


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -