开发者

Opening a new iframe lightbox of .mov movie from within a flash object, possible?

开发者 https://www.devze.com 2023-02-02 05:28 出处:网络
I have a few Flash objects in my html page, and a开发者_开发技巧ll these Flash objects respond to mouseOver and mouseOut.

I have a few Flash objects in my html page, and a开发者_开发技巧ll these Flash objects respond to mouseOver and mouseOut.

On mouseOver, the Flash objects will play a movieclip in place.

On MouseEvent.CLICK, I would like the Flash objects to make the html page create a new iFrame with embedded .mov movie file in a lightbox effect.

I can't seem to get it to work.

I have tried ExternalInterface.call(), navigatetoURL(), I have tried simulating a click event in javascript.

Essentially, I want a mouse-click that is captured in Flash to open a jquery/javascript-lightbox in an iframe.

Thanks for any suggestion.


You should be able to do this using ExternalInterface.call().

However, calls to the external API only work if you set the right value for allowScriptAccess in your HTML object/embed tags. Be sure to set allowScriptAccess="sameDomain" or allowScriptAccess="always".

Try to call a function containing a simple JavaScript alert first, so you know it's working, before you implement your functionality.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号