|
|
|||
Flash Player 6
listenerObject = new Object();
listenerObject.browse = function( eventObject ){
// insert your code here
eventObject.path = "path/to/the/image.jpg"
}
myTextEditor.addEventListener("browse", listenerObject )
Event; broadcast to all registered listeners when user clicks on "Browse" button in "image" window. Works only when the built in FileBrowser is not enabled.
Use this event to set the path to the image to display inside the currently edited text field.
The following code handles the browse event:
myBrowseListener = new Object();
myBrowseListener.browse = function( eo:Object ){
trace("Browse button clicked!"); eo.path = "path/to/the/image.jpg"
}
myTextEditor.addEventListener("browse", myBrowseListener);
|
|
|
|