javascript - How to capture click event of Flash Object -
i have div has onclick event... on onclick of 1st div need call onclick of flash object 2nd div..
is there thing in java script captures onclick of flash..
thanks
you'll need use externalinterface flash , javascript communicate 1 another.
it's pretty strait forward.
to send message flash javascript, use call
externalinterface.call("some_js_function",param1,param2, etc);
to call flash function javascript,
set callback in flash
externalinterface.add_addcallback("the_external_name",a_flash_function);
call function javascript
document.getelementbyid('flashobjectid').the_external_name(param1, param2, etc)
Comments
Post a Comment