[SWFObject] Multiple Flash files and images, download issues???
Geoff Stearns
geoff at deconcept.com
Tue Apr 25 05:53:53 PDT 2006
That's basically how it works, but once the browser renders the <img>
tag, it will start loading the image immediately, even if you replace
that tag.
If it's a big image and you don't want to trigger it unless they
don't have flash, you could use Javascript to load it...
set up your embed like:
var so = new SWFObject(...);
if (!so.write('content')) {
// do stuff to load the image
}
then maybe just include a <noscript> tag in there with the image for
people without javascript and for google.
On Apr 25, 2006, at 8:49 AM, Greg Brant wrote:
> What would happen if the SWFObject.write() replaced the DOM object
> that containd the image tag?
>
> and thefore removed the image from the DOM of the page?
>
> From: swfobject-bounces at lists.deconcept.com [mailto:swfobject-
> bounces at lists.deconcept.com] On Behalf Of Geoff Stearns
> Sent: 25 April 2006 13:45
> To: swfobject at lists.deconcept.com
> Subject: Re: [SWFObject] Multiple Flash files and images, download
> issues???
>
> the browser will make 2 requests for the image...
>
> if the image is done loading before the flash movie sends the
> request for it, it should be cached and the user won't have to
> download it again, but if it's a big image, and it's still loading
> in the html page when the flash movie sends the request, it will be
> downloaded twice.
>
> this behavior might vary from browser to browser, though...
>
>
> On Apr 25, 2006, at 6:50 AM, Michael Ypes wrote:
>
>> Say I got ten images on a page but I want them to display in flash
>> so I get some rollover effect or something but the alternate
>> content is just the image. Will the browser download it the image
>> twice. Once for the alternate content and one from the flash file
>> loading in the image. Not sure how caching and so on would work in
>> this situation. Any ideas as I want to do it but I don’t want to
>> cane my bandwidth or the users…
>>
>>
>> Cheers
>>
>> Michael Ypes
>> The 3rd Room
>>
>>
>> e: michael.ypes at the3rdroom.com
>> w: http://www.the3rdroom.com
>>
>>
>>
>>
>> _______________________________________________
>> SWFObject mailing list
>> SWFObject at lists.deconcept.com
>> http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
>
>
> –––
> Inbound email: This email has been scanned for all viruses by
> MessageLabs (CMWN)
>
> –––
> This email has been scanned for all viruses by the MessageLabs Email
> Security System. (CMWN)
> _______________________________________________
> SWFObject mailing list
> SWFObject at lists.deconcept.com
> http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deconcept.com/pipermail/swfobject-deconcept.com/attachments/20060425/f531a8ed/attachment-0005.htm>
More information about the Swfobject
mailing list