Widget.onDropFile

Availability

Flash Player 7 + TheSpringBox V1

Usage

Widget.onDropFile = function(path:String) : Void {
// your statements here
}

Parameters

path - The path of a file that was dropped on the widget.

Returns

Nothing.

Description

Event handler; an event handling function called when a file path is dropped into a window.

Example

The function below could be used to handle a dropped file:

Widget.onDropFile = function(jpgPath:String) {
  //load the JPG file
  mcPictureFrame.loadMovie(jpgPath);
};