A box with background captures all mouse events.  What do you want to
happen if you could get the drag to start?  The drag proxy would show up
over the box as well.  Are there any other drop targets or are you just
moving it behind the box?

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Kevin
Sent: Tuesday, October 23, 2007 7:41 AM
To: [email protected]
Subject: [flexcoders] Drag image underneath another component

 

I have an image that is underneath a "box" component and I will like to
be able to drag the image, but can't seem to do so unless I place it on
top of the Box.  Any ideas?  - Kevin

 

<mx:Canvas width="450" height="350" horizontalScrollPolicy="off"
verticalScrollPolicy="off" >

                        <mx:Image id="myImage"
source="assets/temp/mytestimage.jpg" mouseDown="handleStartDrag(event);"
mouseUp="handleStopDrag(event);"/>

                        <mx:Box id="myBox" width="450" height="350"
backgroundColor="0x999999" backgroundAlpha=".5" />

</mx:Canvas>

 

Reply via email to