|
|
 |
Re: FN-FORUM: flash swf/passing variable caching issue
date posted 19th August 2003 14:25
Chris Dawson wrote:
> i've been searching in vain for a recent post regarding swf caching.
>
> if i embed a swf as follows:
> flash.swf?var=whatever
>
> it caches the whole swf separately for each occurance with a different
> variable value. a bit wasteful if you use the same swf with different values
> within a site...
>
> how can i do this but make the browser just cache the swf once? i can't find
> the post about doing this...
Ah, I mentioned this one a few days ago in a Flash/CMS post.
Use the "flashvars" attribute of your element (and a
element named "flashvars" for the object), and shove your variables into
the values of the attribute or element.
e.g.
With this, the movie.swf is cached separately, and the variables are
only cached with the HTML.
HTH
Matt
--
Matt Burns [EMAIL REMOVED]
Freelance Web/New Media Consultant
Member of the Professional Contractors Group
|
 |
|