On Tue, 22 Mar 2005 10:13:54 -0500, Doodi, Hari - BLS CTR
<[EMAIL PROTECTED]> wrote:

> Does canvas has dragEnter, dragDrop...etc
> attributes as DataGrid has.

Yes, the Canvas does have 'dragEnter', etc., but you'll have to write
handlers for those.  For example, you would write a handler for
'dragOver' to provide visual feedback to the user depending on whether
the Canvas object accepts a drop operation or not.

If you just want to drag the image around the Canvas, you could skip
the "drag-n-drop" feature of Flex and just do your own dragging
around.  You'll have to write handlers for 'mouseMove', 'mouseDown',
etc.  While dragging the object, you'll have to set the 'x' and 'y'
properties of the object and perhaps make it semi-transparent while
the drag is in progress.

See sample:

http://www.flexauthority.com/Samples/delicious/WhatsCooking.mxml
http://www.flexauthority.com/Samples/codeViewer.cfm?sampleID=13

Manish


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to