mWindow.onDropFiles()

Availability

Windows: Flash 8 or 9 AS2.0 SWF + mProjector 3.0; Windows NT Support: Flash 7 SWF + mProjector 2.0;

Macintosh: Flash 8 or 9 AS2.0 SWF + mProjector 2.0 r10;

Usage

mWindow.onDropFiles = function (files:Array) {
   // your statements here
}

Parameters

files - List of files being dropped into the window.

Returns

Nothing.

Description

Event handler; An event handling function called when files are dropped into a window.

Example

The following example sets a new onDropFiles() event handling function.

mWindow.onDropFiles = function (files)
{
    if (files[0].substring(files[0].length-3)=="swf")
    {
        _root.loadMovie(files[0]);
    }
}

See Also

mWindow.onDragFiles()

Code Examples

Drag and Drop Files