PHP Code:
inputText.onKillFocus = function() {
_root.onEnterFrame = null;
trace(this.text.substr(this.selected_text.split(",")[0], this.selected_text.split(",")[1]));
inputText.setTextFormat(this.selected_text.split(",")[0], this.selected_text.split(",")[1], myTextFormat);
};
var newTextFormat = new TextFormat();
newTextFormat.bold = true;
inputText.onSetFocus = function() {
setBold.onRelease = function() {
begin = Selection.getBeginIndex();
end = Selection.getEndIndex();
inputText.setTextFormat(begin,end,newTextFormat);
trace(begin);
trace(end);
};
};
I have something of a test here to see if i could add Bold to the selected text. But cant even get that working