flash HTML editor API documentation: [ overview ]
all functionality is available via Object.HTML object. you can download the editor control example FLA here.
| function | description |
| Object.HTML.setSelection |
textfield: end:being the end index, usually from Selection.getEndIndex() setSelection will navigate the HTML engine to the proper text location, afterwards you may call functions to change the formatting, eg. setBold() which is then applied to the selected range. example: |
| Object.HTML.restoreSelection |
restoreSelection will force flash to put the focus on
the textfield previously selected by "setSelection" and restore
the selection range, for example after a user has clicked a button. |
| Object.HTML.getState |
getting the state of the textfield/range previously selected by "Object.HTML.setSelection" state being an object with the following fields, or null if invalid arguments: state.bold, where 1 = bold, 2 = unbold, 3 = mixed state.left, where 1 = left aligned, 2 = not left aligned state.url, string, if the current selection holds a
link |
| Object.HTML.setColor |
applies the desired color to the textfield/range previously
chosen by Object.HTML.setSelection(...) |
| Object.HTML.setFont |
applies the desired font face to the textfield/range previously chosen by Object.HTML.setSelection(...) valid font names are: _sans, _serif and _typewriter ...
for using device fonts |
| Object.HTML.setFontSize | usage: Object.HTML.setFontSize( 20 ); applies the desired font size to the textfield/range previously chosen by Object.HTML.setSelection(...) |
| Object.HTML.setTarget |
applies the desired target to the textfield/range previously
chosen by Object.HTML.setSelection(...) |
| Object.HTML.setLink |
applies the desired link to the textfield/range previously
chosen by Object.HTML.setSelection(...) if the argument was "", an eventually existing
link will be removed |
| Object.HTML.removeLink | same as Object.HTML.setLink( "" ); |
| Object.HTML.setBold |
applies the desired format option to the textfield/range
previously chosen by Object.HTML.setSelection(...) |
Object.HTML.removeBold |
applies the desired format option to the textfield/range
previously chosen by Object.HTML.setSelection(...) |
| Object.HTML.setItalic |
applies the desired format option to the textfield/range
previously chosen by Object.HTML.setSelection(...) |
| Object.HTML.removeItalic |
applies the desired format option to the textfield/range
previously chosen by Object.HTML.setSelection(...) |
Object.HTML.setUnderline |
applies the desired format option to the textfield/range
previously chosen by Object.HTML.setSelection(...) |
| Object.HTML.removeUnderline |
applies the desired format option to the textfield/range
previously chosen by Object.HTML.setSelection(...) |
| Object.HTML.alignLeft |
applies the desired format option to the textfield/range
previously chosen by Object.HTML.setSelection(...) |
| Object.HTML.alignCenter |
applies the desired format option to the textfield/range
previously chosen by Object.HTML.setSelection(...) |
| Object.HTML.alignRight |
applies the desired format option to the textfield/range
previously chosen by Object.HTML.setSelection(...) |
if you have got any problems, wishes or questions please contact us vie e-mail under baumgartner@active-web.cc
[ close
this window ] [ www.active-web.cc
]