Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Hi guys,
           good morning everybody....Yestrday i was going through a
website which is designed in flex. I came across a page where the
components can dragged anywhere we can.So can any            one tel
me how we can make our components draggable......?

Re: dragging

Quoted text here. Click to load it

I'm assuming you know how to code in AS3? There's a drag property (and
associated events) for movie clips, and drag classes. If you're
working in Flash, rather than flex, you can wrap out component inside
a sprite (or movieClip) and
myclip.addEventListener(MouseEvent.DRAG..., callToYourDragFunction).
You could also monitor for MOUSE_DOWN and attach the x/y properties of
the component to the mouse.x/y properties... it's a big of a large
subject to get into, in here, as I've no idea how much coding you know!

Site Timeline