mx.managers.DragManager.doDrag(this, ds, event, {name: name, image: image,component: component, mxml: true});
This might help yopu out;
private function onComponentDrag(event:MouseEvent):void
{
// Get the drag initiator component from the event object.
var dragInitiator:* = (event.currentTarget);
// Create a DragSource object.
var ds:DragSource = new DragSource();
// Add the data to the object.
ds.addData({name: name, component: component}, "product");
var canvasProxy:Canvas = new Canvas();
canvasProxy.width=width;
canvasProxy.height=height;
canvasProxy.setStyle('backgroundColor', 0x242424);
DragManager.doDrag(dragInitiator, ds, event, canvasProxy);
}
Peace, Mike
On 5/4/06, vestcomprogrammer <[EMAIL PROTECTED]> wrote:
My code works fine in Flex 1.5 but I get:fff
"Implicit coercion of a value with static type 'Object' to a possibly unrelated type 'mx.core:IFlexDisplayObject"
CODE
var ds = new mx.core.DragSource();
ds.addData({name: name, component: component}, "product");mx.managers.DragManager.doDrag(this, ds, event, {name: name, image: image,component: component, mxml: true});
-Bill
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
--
What goes up, does come down.
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.