반응형
Cool, How Do I Do It?
First you’re going to need to put your javascript function between the head tags of your document. For this example, I’ve used the following function:
1 2 3 4 5 |
<script language="javascript"> function myfunction() { alert("This function was successfully triggered via the flash movie."); } </script> |
Moving on, you’re going to need to make a small Flash video that contains either a button, or something else that can trigger events. If you’ve already previously built something, and you want to make javascript calls from your project, that is fine too. Within the Flash event in which you wish to trigger your javascript function, you’re going to be using the getURL command, to issue the call. Mine looks something like this:
반응형
'IT News > PHP' 카테고리의 다른 글
mysql 명령어로 데이터 내용중 일부분만 수정하기 : php 프로그래밍 없이 쉽게 mysql 명령어 하나로 간단히 해결 (0) | 2012.04.12 |
---|---|
특수문자를 < > & 등으로 바꾸기 (0) | 2011.09.22 |
PHP에서 특수문자 없애는 정규표현식 (0) | 2011.09.07 |