I am a c# asp.net developer and need to implement a number of flash website banners. Previously for static image banners I have implemented on_click code behind or javascript to log the banner has been clicked back to a database and process the re-direction.
I don’t have much knowledge of flash other than I know that a flash program can handle on-click events of the program.
Therefore, can somebody suggest the best solution for capturing and processing on-click events of a flash object on a webpage.
Many thanks,
Adam
You can talk to Flash objects with JavaScript via Mootools’ Swiff component:
http://mootools.net/blog/2008/02/12/whats-new-in-12-swiff/
http://mootools.net/docs/core/Utilities/Swiff
However, for simple things like clickable banners, all you may need is swfobject:
http://code.google.com/p/swfobject/
A decent but simple XML driven Flash banner rotator can be had for free here:
http://www.weberdesignlabs.com/blog/2008/06/open-source-xml-free-flash-banner/
Hope that helps!