テキストフィールドのフォーマットの変更。

import flash.text.TextFormat;

var newFormat:TextFormat = new TextFormat();
newFormat.size = 18;
newFormat.color = 0xFF0000;

tf.text = "テキスト";

tf.setTextFormat(newFormat);

↑テキストフィールドに文字が入った状態でフォーマットを適応する事[setTextFormat]

FlashからJavaScriptを制御するフレームワーク

Flash側、HTML側に以下を書くだけで、
flash側からJavascriptをコントロールできるらしい。


AS
var code = "alert('function from flash')"
ExternalInterface.call("jsFunction",code);
 
JS
function jsFunction(code){
var func = new Function(code);
return func();
}
今度試してみよう。
 
こちらに書いてあります。
http://www.fladdict.net/blog-jp/archives/2005/11/flashjavascript_2.php