So as you are using the same swf multiple times, you are loading it from browser cache on the 2nd and subsequent requests. (if you had a querystring tacked on the end to pass the vars, then the browser would make a new request for each file, which would slow things down)
As Sam requested, it would be good to see a link, so that we can see what is actually being written to the page. Also , the code you posted in your CF loop doesn't use any javascript / swfobject specific code, so if you are running into performance issues, then it is not swfoibject related... Aran On Tue, Aug 18, 2009 at 5:37 AM, pixelwiz <[email protected]> wrote: > > I think I get the idea, but can you please be a little more specific? > Like how would I create one object, then reuse it to display different > text for different headers? > > Thanks > > On Aug 17, 1:17 pm, Muhammad Shakeeb Khan <[email protected]> > wrote: > > 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_play...>" > > >> 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 -~----------~----~----~----~------~----~------~--~---
