Vlad
Vlad

Reputation: 2773

JS and Actionscript

I have build a custom flash player which is embeded in web page using html and javascript extjs framework in the background.

The player is embeded into extjs draggable window into the web page. I know that I can send/recieve variables and trigger events from/to flash player and javascript in the web page.

When I drag the window with the player in it if i drag it fast, cursor goes over the player and the dragging stops. This is because dragging event from javascript stops at the moment when I hover over the flash canvas.

So my question is, is there a way to prevent this from happening? Is there a way to tell js to continue dragging the window even if the mouse is over the flash canvas?

thanks

Upvotes: 1

Views: 141

Answers (1)

John Rice
John Rice

Reputation: 1747

You can add the "wmode" param tag nested in the object tag. Set the value of "wmode" to "transparent".

<object ...>
    <param name="wmode" value="transparent">
</object>

Or if you are using JavasScript to create the flash using swfobject or similar

swfobject.embedSWF('theFile.swf',
            "main-pars-flash_0",
            "480",
            "518",
            "9.0.0",
            "",
            {}, //flashvars 
            {wmode: 'transparent'},  //params
            {} //attributes);

more info :http://helpx.adobe.com/flash/kb/transparent-background-swf-file.html

Upvotes: 1

Related Questions