Hi, I have a page with a flash chart to display. First, I make a separate AJAX call to grab the chart data, and then process it in javascript and call the flash object functions like this:
var flashObj = YAHOO.util.Dom.get(chartContainer);
if (!YAHOO.env.ua.ie) {
flashObj = flashObj.getElementsByTagName("embed")[0];
}
flashObj.SetSettingOption(dataXml.xml);
flashObj.SetAndParseData(dataXml.xml);
flashObj.Draw();
However, in Firefox I get the error "flashObj.SetSettingOption is not a function". I do not encounter this in IE8. Is this because the flash object is not fully loaded? But then on subsequent visits to the page, the flash object should be cached, but the same error appears.
Edit: Also here part of the html
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="MyChart" width="760"
height="455" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
<param name="movie" value="../flash/MyChart.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="allowScriptAccess" value="sameDomain" />
<param name="wmode" value="transparent" />
<embed src="../flash/MyChart.swf" quality="high" bgcolor="#ffffff" width="760"
wmode="transparent" height="455" align="middle" play="true" loop="false"
allowscriptaccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer">
</embed>
</object>
Thanks in advance for any help!