Thanks a lot, I'm gonna look into it

--- In flexcoders@yahoogroups.com, Alex Harui <aha...@...> wrote:
>
> You might be able to use this:
> 
> http://blogs.adobe.com/aharui/2010/01/constrained_drag_and_drop.html
> 
> 
> On 5/20/10 5:50 AM, "ouaqa" <abenef...@...> wrote:
> 
> 
> 
> 
> 
> 
> Hello,
> 
> As part of my project, I need to create a magnetic grid, locking moving 
> objects to the grid as they are moved (it's a drawing api).
> 
> The Graphic Objects (i.e pictures, text, ... ) are Canvas objects that are 
> display on a Canvas (more or less the background of the drawing api).
> 
> Over this canvas, i added another canvas displaying a grid ( a Shape Object 
> with a bunch of horizontal and vertical lines).
> 
> This is where my imagination stops.
> I'm fairly new to flex development and I have no idea about how to "lock" the 
> graphic objects to the grid as they are moved.
> 
> By the way, if it's relevant to you guys, objects are not moved using the 
> drag&drop mechanism but using the com.greensock.transformManager 
> (http://www.greensock.com/).
> 
> I've searched the adobe documentation, this group and googled for a while 
> without finding any relevant information. Any advice would be greatly 
> appreciated.
> If any of you wish, I can add some juicy bits of code.
> 
> Thanks in advance.
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>


Reply via email to