■ 転送ファイルの情報を調べるには
//メインタイムラインのフレームアクション
fileRef
= new flash.net.FileReference();
listener
= new Object();
listener.onSelect = function(file)
{
info_txt.text = "名前:" +
file.name + "\n";
info_txt.text += "サイズ:" +
file.size + "バイト\n";
info_txt.text += "作成日:" +
file.creationDate + "\n";
info_txt.text += "変更日:" +
file.modificationDate
+ "\n";
info_txt.text += "タイプ:" +
file.type + "\n";
info_txt.text += "クリエータ:" +
file.creator;
};
fileRef.addListener(listener);
select_btn.onRelease
= function() {
if(!fileRef.browse())
{
info_txt.text = "ダイアログを開けませんでした";
}
};

