Hi,
Please help!!!

I am running an Air project (mx:Application) under Windows XP. 
I have the following piece of code on one of my components:

DragManager.doDrag(this, dragSource,
event,_dragableImage,-event.localX,-event.localY);  

It works perfectly, but when i initiate in another component a Window
class, i get a runtime exception.
ArgumentError: Error #2004: One of the parameters is invalid.
        at flash.utils::ByteArray/writeObject()
        at flash.desktop::Clipboard/putSerialization()
        at flash.desktop::Clipboard/convertFlashFormat()
        at flash.desktop::Clipboard/setData()
        at
mx.managers::NativeDragManagerImpl/doDrag()[E:\dev\3.0.x\frameworks\projects\airframework\src\mx\managers\NativeDragManagerImpl.as:249]
        at
mx.managers::DragManager$/doDrag()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\DragManager.as:241]
        at
com.mailvision.components::DragableCanvas/doMouseMove()[E:\dev\projects\Maestro\src\com\mailvision\components\DragableCanvas.as:72]

I followed the debugger trail and found out that when i use the Window
class, when the application starts, it initiates the _impl class on
DragManager with the NativeDragManagerImpl and not the DragManagerImpl
as was without the Window class.

Does anyone know what am i doing wrong here or is it a bug? I have
searched for Jira issues but didn't find any.

Thanks,
Josef

Reply via email to