views:

34

answers:

1

Hi Folks

i need to play a .swf flash file when i mouse over one of my links so

<a href="123.html" onMouseOver=" PLAY MY SWF ONCE  ">123</a>

can you please help me achieve this using javascript

Thanks

+1  A: 

You would need to use ExternalInterface to call an Actionscript function from your HTML page. Have a look at the docs, they have better examples that what I could come up with in a few lines

http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/

But the general setup would be an Actionscript function to play the movie once and this function would be called from javascript via ExternalInterface.

PatrickS