as i suggest use swfobject.js library and make an object array and remove
those instance after using then it will be better for performance.

On Mon, Aug 17, 2009 at 9:06 PM, Sam Sherlock <[email protected]>wrote:

> have you a link to this?
> - S
>
>
> 2009/8/17 pixelwiz <[email protected]>
>
>
>> Hi All,
>>
>> I had to create a table that had text rotated vertically in the header
>> row.  There are 45 rows, and I didn't want to use Images for the
>> headers cause the text is dynamic.
>>
>> So I created a simple Flash SWF, and I pass the text in as a variable
>> through flashvars.
>>
>> Everything works, BUT in Firefox it's pretty slow loading, you can
>> actually see each heading come on screen, and it takes like 5-10
>> seconds for all 45 to appear with proper text in them.
>>
>> In IE, this seems to be instant.
>>
>> I'm doing this inside a loop, and I'm not sure if there is a better
>> way to somehow just instantiate one SWF object, and then keep reusing
>> the same object and just pass different text to it?
>>
>> Is there a better way to do this with SWFObject?  Like instead of
>> having to pass an ID to it, can I pass a class?
>>
>> <cfoutput query="qry_getSections">
>>                        <td class="td_sections">
>>        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
>> width="20" height="160">
>>                                <param name="movie" value="flash/
>> NameOfSection.swf" />
>>                        <param name="quality" value="high" />
>>                        <param name="wmode" value="opaque" />
>>                        <param name="swfversion" value="6.0.65.0" />
>>        <param name="Flashvars" value="productText=#URLEncodedFormat
>> (qry_getSections.name)#">
>>          <!-- Next object tag is for non-IE browsers. So hide it from
>> IE using IECC. -->
>>          <!--[if !IE]>-->
>>          <object type="application/x-shockwave-flash" data="flash/
>> NameOfSection.swf" width="20" height="160">
>>          <!--<![endif]-->
>>          <param name="quality" value="high" />
>>          <param name="wmode" value="opaque" />
>>          <param name="Flashvars" value="productText=#URLEncodedFormat
>> (qry_getSections.name)#">
>>          <param name="swfversion" value="6.0.65.0" />
>>          <!-- The browser displays the following alternative content
>> for users with Flash Player 6.0 and older. -->
>>          <div>
>>            <h4>Content on this page requires a newer version of Adobe
>> Flash Player.</h4>
>>            <p><a href="http://www.adobe.com/go/getflashplayer";><img
>> src="http://www.adobe.com/images/shared/download_buttons/
>> get_flash_player.gif<http://www.adobe.com/images/shared/download_buttons/%0Aget_flash_player.gif>"
>> alt="Get Adobe Flash player" width="112"
>> height="33" /></a></p>
>>          </div>
>>          <!--[if !IE]>-->
>>          </object>
>>          <!--<![endif]-->
>>        </object>
>>       </td>
>>                </cfoutput>
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to