ExternalInterface.addCallback("setFont", this, setFont);
function setFont(font,size,color,selectionOnly,allIfNoSelection)
{
SuspendEvents = true;
var my_fmt:TextFormat = new TextFormat();
my_fmt.font = font;
my_fmt.size = size;
my_fmt.color = color;
my_fmt.kerning = false;
ss = 0;
se = 65535;
if(selectionOnly)
{
ss = Selection.getBeginIndex();
se = Selection.getEndIndex();
}
if(allIfNoSelection && ss == se)
{
ss = 0;
se = 65535;
}
if (ss != se)
{
editorMovie.Editor.activeTxt().setTextFormat(ss, se, my_fmt);