외부 파일이 있는지 확인하고있는 경우 특정 동영상 클립의 표시 여부를 true로 변경하려고합니다. AS2에서 수행하는 방법을 알고 있지만 AS3에서 작업 중입니다.actionscript 3 : 외부 파일이 있는지 확인하고 동영상 클립 숨김을 확인하십시오.
이것은 내가 작업하는 데 사용되는 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에서 작동하게하는? 감사!
정말 고마워요! 완벽한 작품 :) – nezma
@nezma 멋지다! SO에 오신 것을 환영합니다! 단순화를 위해 – Cherniv