外部ファイルが存在するかどうかを確認しようとしています。存在する場合は、特定のムービー クリップの可視性の値を true に変更します。AS2 でのやり方は知っていますが、AS3 で作業しています。
これは、私が使用していた AS2 コードです。
onClipEvent (load) {
fileExists = new LoadVars();
fileExists._parent = this;
fileExists.onLoad = function(success) {
//success is true if the file exists, false if it doesnt
if (success) {
_root.visiblity = 1;
//the file exists
}
};
fileExists.load('visibility.exe');//initiate the test}
}
AS3 で動作させるにはどうすればよいですか? ありがとう!