  | | | Flash displacements | Flash displacements 2006-09-13 - By dennis_binsfeld
Back I'm having a lot of trouble getting several Flash apps to display properly in IE. If the apps are displayed individually in a page they work fine .... but when several are put together in one page, they render from the middle of the <OBJECT> window, not the top left. ..... see attached image (I am using the charts from http://www.maani.us/xml_charts/index.php... note that the code is identical for all 4 charts)
Works fine on firefox..... breaks in IE 5, 6, 7.
There are suggestions that this is an IE cache problem ....however, I have tried placing the following tags in my page, but they have no effect:
<META HTTP-EQUIV="cache-control" CONTENT="no-cache"> <META HTTP- EQUIV="pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Expires" CONTENT="Fri, Jun 12 1981 08:20:00 GMT">
The Flash apps retrieve data from an XML file using a URL .... I have placed a unique ID in that URL to bypass any caching of the XML file, but this also does not work.
I still suspect it is a caching issue, but I cant find a workaround.
Has anyone else had this kind of issue with multiple Flash apps in IE? .... any ideas for a solution?
Thank you Dennis.
PS If you want to see the example picture, please have a look at: http://www.dennisbinsfeld.de/flash_problem.JPG
Just have a look in my source code: <tr> <td> <div id="body2row1datablock1"> <OBJECT ALIGN="" id="gauge" HEIGHT="158" WIDTH="240" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swf lash.cab#version=6,0,0,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8- 444553540000"><PARAM VALUE="/swf/gauge.swf? library_path=/swf/&xml_source=/stylesheets/Flash/data/GaugeAData. xml%3FignoreStaticPage%3Dtrue%26uniqueID%3D1158104199859" NAME="movie"><PARAM VALUE="high" NAME="quality"><PARAM VALUE="white" NAME="bgcolor"> <EMBED PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" TYPE="application/x-shockwave-flash" ALIGN="" NAME="gauge" HEIGHT="158" WIDTH="240" bgcolor="white" quality="high" src="/swf/gauge.swf? library_path=/swf/&xml_source=/stylesheets/Flash/data/GaugeAData. xml%3FignoreStaticPage%3Dtrue%26uniqueID%3D1158104199859" id="myembed2"></EMBED> </OBJECT> </div> </td> </tr>
I use these two templates to create the flash animations:
<xsl:template name="swf-charts-html"> <!-- parameters to pass through to this template --> <xsl:param name="xml_source_url">/templates/stylesheets/FlashDash/data/Availabil ityData.xml</xsl:param> <xsl:param name="width">240</xsl:param> <xsl:param name="SM_ID"/> <xsl:param name="height">158</xsl:param> <xsl:param name="bgcolor">white</xsl:param> <xsl:param name="SM_ID_string" select="/page/HttpRequest/Parameters/@(protected)"/>
<xsl:variable name="SM_ID_appendage"> <xsl:choose> <xsl:when test="$SM_ID_string">%26SM_ID% 3D<xsl:value-of select="$SM_ID_string"/></xsl:when> <xsl:otherwise>%26SM_ID%3D<xsl:value-of select="$SM_ID"/></xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="dataURI"><xsl:value-of select="$root"/><xsl:value-of select="$xml_source_url"/>% 3FignoreStaticPage%3Dtrue<xsl:value-of select="$SM_ID_appendage"/>% 26uniqueID%3D<xsl:call-template name="currentTime"/></xsl:variable> <!-- fascilitate debug --> <xsl:variable name="debugURI"><xsl:value-of select="$root"/><xsl:value-of select="$xml_source_url"/>? ignoreStaticPage=true&showStep=4</xsl:variable> <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/f lash/swflash.cab#version=6,0,0,0" WIDTH="{$width}" HEIGHT="{$height}" id="charts" ALIGN=""> <PARAM NAME="movie" VALUE="{$root}/swf/charts.swf? library_path={$root}/swf/&xml_source={$dataURI}"/> <PARAM NAME="quality" VALUE="high"/> <PARAM NAME="bgcolor" VALUE="{$bgcolor}"/> <EMBED id="myembed" src="{$root}/swf/charts.swf?library_path= {$root}/swf/&xml_source={$dataURI}" scale="noscale" bgcolor="{$bgcolor}" WIDTH="{$width}" HEIGHT="{$height}" NAME="charts" ALIGN="" swLiveConnect="true" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> </EMBED> </OBJECT> <a href="{$debugURI}" style="text- decoration:none;"><img aligh="right" border="1" width="5" height="1"><xsl:attribute name="src"><xsl:value-of select="$root"/>/common/images/blank.gif</xsl:attribute></img></a> </xsl:template>
<xsl:template name="swf-gauge-html"> <xsl:param name="xml_source_url"/> <xsl:param name="width"/> <xsl:param name="height"/> <xsl:param name="bgcolor"/> <xsl:param name="SM_ID_string" select="/page/HttpRequest/Parameters/@(protected)"/> <xsl:variable name="SM_ID_appendage"> <xsl:choose> <xsl:when test="$SM_ID_string">%26SM_ID% 3D<xsl:value-of select="$SM_ID_string"/></xsl:when> <xsl:otherwise/> </xsl:choose> </xsl:variable>
<xsl:variable name="dataURI">xml_source=<xsl:value-of select="$root"/><xsl:value-of select="$xml_source_url"/>% 3FignoreStaticPage%3Dtrue%26uniqueID%3D<xsl:call-template name="currentTime"/><xsl:value-of select="$SM_ID_appendage"/></xsl:variable> <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/f lash/swflash.cab#version=6,0,0,0" WIDTH="{$width}" HEIGHT="{$height}" id="gauge" ALIGN=""> <PARAM NAME="movie" VALUE="{$root}/swf/gauge.swf? library_path={$root}/swf/&{$dataURI}"/> <PARAM NAME="quality" VALUE="high"/> <PARAM NAME="bgcolor" VALUE="{$bgcolor}"/> <EMBED id="myembed2" src="{$root}/swf/gauge.swf?library_path= {$root}/swf/&{$dataURI}" quality="high" bgcolor="{$bgcolor}" WIDTH="{$width}" HEIGHT="{$height}" NAME="gauge" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> </EMBED> </OBJECT> </xsl:template>
========================= Pro_Flash: Professional Web Developers Using Macromedia Flash To subscribe: mailto:pro_flash-subscribe@(protected) To UNSUBSCRIBE: mailto:pro_flash-unsubscribe@(protected) Yahoo! Groups Links
<*> To visit your group on the web, go to: http://groups.yahoo.com/group/pro_flash/
<*> Your email settings: Individual Email | Traditional
<*> To change settings online go to: http://groups.yahoo.com/group/pro_flash/join (Yahoo! ID required)
<*> To change settings via email: mailto:pro_flash-digest@(protected) mailto:pro_flash-fullfeatured@(protected)
<*> To unsubscribe from this group, send an email to: pro_flash-unsubscribe@(protected)
<*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
|
|
 |