FYI, the magic incantation to scale the dragProxy to the size of the target is:

if (Object(mx.managers.DragManager)._dragProxy.proxyImage.width != event.target.width) {

  Object(mx.managers.DragManager)._dragProxy.xOffset *= (event.target.width/Object(mx.managers.DragManager)._dragProxy.proxyImage.width);
  Object(mx.managers.DragManager)._dragProxy.yOffset *= (event.target.height/Object(mx.managers.DragManager)._dragProxy.proxyImage.height);

  Object(mx.managers.DragManager)._dragProxy.proxyImage.width = event.target.width;
  Object(mx.managers.DragManager)._dragProxy.proxyImage.height = event.target.height;
}


--- In [email protected], "JesterXL" <[EMAIL PROTECTED]> wrote:
>
> Thanks. Searched my Outlook Express messages to no avail; I know it was
> already mentioned in another way, but gave up finding it. Running Flex in
> Debug mode just to see the classes is a pain in the arse.

I cringe when I have to fire up the debugger.  That's one of the huge disappointments about Flex 2 not being moderately backwardly compatible with Flex 1.5, with Flex 2 requiring a version Flash which will take time to become widely adopted,  and with the Zorn debugger eclipse plugin not working under Linux.

A "for in" loop helped us out with the discovery of the properties.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to