next up previous contents
Next: Events Up: Properties Previous: Properties   Contents


enable

Description

Boolean. Set the property to true to accept file or text dropping.


Syntax

Application.dragdrop.enable


Example

To accept a file or text transferred by dropping it into the main window,
  1. turn the enable property on
    Application.dargdrop.enable = true;
    

  2. write event handlers to accept the files or text
    Application.dragdrop.onDropText
        = function (str)
    {
        trace(str);
    }
    
    Application.dragdrop.onDropFiles =
        function (files)
    {
        trace(files);
    }
    




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