Shan’s Simple Examples: Extending an object in Actionscript
The other day, someone asked me how they could re-use the code sample from Igor Costa’s post about getting the Rich Text Editor to output XHTML. Whenever you want to add functionality to an existing control, you just need to extend it. Here’s how:
Here’s the top bit of code from my XHtmlEditor.as file:
::CODECOLORER_BLOCK_1::
The actual code [...]
