FlashTextEditor.insertImage
Availability
Flash Player 8
Flash Player 9(AS3 version)
Usage
myTextEditor.insertImage( imageObj:Object )
Parameters
imageObj - Object with the following (optional)properties:
- src - String. Path of the image file (JPEG, GIF, PNG or SWF)
- width - Number. Width of the image
- height - Number. Height of the image
- id - String. Unique identifier if the image (created automatically if omited)
- align - String. Image alignment.
- hspace - Number. Horizontal spacing of the image
- vspace - Number. Vertical spacing of the image
- url - String. Hyperlink of the image
- target - String. Hyperlink target
- index - Number. Optional. If exists image will be updated
Returns
Nothing.
Description
Method; Inserts image inside targeted text field at caret location.
Example
The following code will insert image inside targeted text field:
myTextEditor.insertImage({
src:"http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif",
width:88,
height:31
});