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,

  1. set callback in flash

    externalinterface.add_addcallback("the_external_name",a_flash_function);

  2. call function javascript

    document.getelementbyid('flashobjectid').the_external_name(param1, param2, etc)


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -