03-29-2012 12:27 PM
hi!
i was wondering if it is possible to dispatch events in my custom swfloader and then catch it in the javascript api.
something like this:
//this function is inside my swfloader
private function onMouseLeave(evt:Event)
{
dispatchEvent(new Event("elementRollOut"));
}
//this function is inside my html javascript code:
function onTemplateReady_FLASH(event) {
modExp.removeEventListener(brightcove.api.events.E
mouseHandler = modExp.getElementByID("mouseHandler");
mouseHandler .addEventListener('elementRollOver', onOverlayRollOver);
mouseHandler .addEventListener('elementRollOut', onOverlayRollOut);
thanks, philipp
Solved! Go to Solution.
03-30-2012 01:46 PM
There is no native support in the BC API for this but you can use the native ExternalInterface Flash Player API to call a JS function in your page from your SWF plugin
Brightcove Inc., a leading global provider of cloud content services, provides a family of products used to publish and distribute the world's professional digital media. The company's products include Brightcove Video Cloud, the market-leading online video platform, and Brightcove App Cloud, the pioneering content app platform. Together, more than 4,200 customers in 50 countries rely on Brightcove's cloud content services to build and operate exceptional media experiences across PCs, smartphones, tablets and connected TVs.
Brightcove Inc.
© 2012 Brightcove Inc.
