I have two text boxes,
- Instance “myinput”
- Instance “htmltext”
When user types something in “myinput” ( some basic text ) is automaticaly displayed in “htmltext”
function getIndexs() {
if (Selection.getBeginIndex() != -1 && Selection.getEndIndex() != -1) {
startIndex = Selection.getBeginIndex();
endIndex = Selection.getEndIndex();
}
trace(_root.htmltext.text);
_root.htmltext.text = myinput.htmlText;
}
I came a problem, i would like to replace “:(” with “sad.jpg”
Like str replace in php.
i tried with replaceText but wont work
Can any1 help me with this ?
Thank you,
rutin