Hi,

 

I am trying to call a user defined function in a flash file embedded
using qx.ui.embed.Flash object from JavaScript. I face no problems with
this in Mozilla Firefox & Safari but in Internet Explorer 6 & 7, it's
not calling the function in flash and not throwing any script error and
just aborting the rest of the JavaScript function after this call.

 

Please have a look at my sample code:

 

var flashChart = new qx.ui.embed.Flash("chart.swf","Chart1");   // There
is a user defined function "userFunc" in chart.swf.

/* I am using the following function to get handle to the flash file.
*/

function getObject(objectName) 

{

    if (navigator.appName.indexOf ('Microsoft') !=-1) {

        return window[objectName]

    } else {

        return document.embeds[objectName];

    }

}

Var flashObj = getObject("Chart1");

flashObj.userFunc();         //calling the function defined in Flash
file. (Not working in Internet Explorer)

 

 

Please let me know how I can get rid of this problem and any alternate
way to call the user defined functions in flash from JavaScript using
qx.ui.embed.flash object.

 

 

Regards,

Naga Kiran

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to