next up previous contents
Next: Application.clipboard Up: Events Previous: onDropFiles   Contents


onDragGetData

Description

This event is triggered when a drag and drop operation is taking place (drag data to another application). The data to be dragged to another application can and can only be provided in this event handler.

The event handler can return a string object or an image object which represents the data to be dragged.


Syntax

Application.dragdrop.onDragGetData = function ()
{
    return data;
}


Parameters

None


Examples

//the following code enables the application
//to capture an image and drag the image to
//an outside application such as Word
Application.dragdrop.enable = true;
image = Image.captureMovie();
Application.dragdrop.onDragGetData = function ()
{
    return image;
}




Copyright ©2000-2007 Shanghai TopCMM Software Technologies. All Rights Reserved.