2009-08-31 3 views

답변

2

ExternalInterface.call을 사용할 수 있습니다.

import flash.external.ExternalInterface; 


ExternalInterface.call('update', id); 
+0

이 결과는 아무 것도 ... CS3 및 단추 처리기를 사용하지만 아무것도 일어나지 않습니다. 그 이유가 뭐야? –

0
<script> 
function displayCurrentTime() 
{ 
var date = new Date(); 
return date.toLocaleTimeString(); 
} 
</script> 
당신은 당신이 항상 것처럼이 함수를 호출하지만, 단순히 당신처럼 호출 할 수 있습니다

것 당신은 몇 가지 변수의 일부로 반환 된 값을 저장 게터 기능의 다른 종류 :

var currentTime:string = ExternalInterface.call("displayCurrentTime()"); 

이 코드가 실행되면 Flash는 displayCurrentTime JavaScript 함수를 호출하고 반환 값을 currentTime 변수에 저장합니다.

관련 문제