On 8/3/05, Philippe Maegerman <[EMAIL PROTECTED]> wrote:

> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application
> xmlns:mx="http://www.macromedia.com/2003/mxml"; width="100%"
> height="100%">
> <mx:Image contentPath="ph_1.jpg" id="ph_1_mc" width="100" height="100"
> mouseDown="event.target.startDrag();" mouseUp="event.target.stopDrag()"/>
> </mx:Application> 
>   
>  
> If I use event.target.startDrag(true), it will move its origin to the mouse,
> first that's not what I'm looking for, second it doesn't even drag after
> moving :((( 

According to Peter Ent, you need to do the mouse handling yourself:

http://weblogs.macromedia.com/pent/archives/2005/07/more_flex_and_f.cfm

I had implemented draggable images in this app.  Check it out:

http://manish.revise.org/flash/flex/delicious.zip
http://www.flexauthority.com/Samples/delicious/WhatsCooking.mxml

Manish


------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12he1r8e7/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123089978/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/";>In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!</a>.</font>
--------------------------------------------------------------------~-> 

--
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

<*> 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