Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Onclick Event handling 2

Status
Not open for further replies.

CodingIsFun

Programmer
Apr 9, 2004
134
US
Hi all experts,

I am new to flash and was wondering how I can add a javascript function to an onclick event/action of an image.

As I mentioned Im new to flash and no idea where to start. If you know of a good site or book that could help please let me know. Or if you could step me through adding one that would be even better.

Thanks in advance....
 
in the html file

<script>
function bill() {
whatever you need from javascript
}
</script>

in flash use getURL to call the function

getURL(javascript:bill())

the above ought to work just fine

 
Thank you, for the both of you. That works just fine for what I need to do..

I gave you both stars for your effort...

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top