[SWFObject] the flash before flash

Greg Brant Greg.Brant at cmwnorth.com
Wed Apr 26 07:04:55 PDT 2006


Ok,


Got a work around.


// begin sudo html

<div id="flashContent">
<script type="text/javascript">
document.getElementById('flashContent').style.display='none';
</script>

<!-- all your alternate content here -->

</div>
<script type="text/javascript">
Var so = new SWFObject(blahh);
So.write("flashContent");
document.getElementById('flashContent').style.display='inline';
</script>


// end sudo html


Not perfect, but saves an unsightly flash of your alternate content
And degrades well because if javascript is not enabled in the client
then the
Site is not hidden in the first place.

Cheers

greg
 

-----Original Message-----
From: swfobject-bounces at lists.deconcept.com
[mailto:swfobject-bounces at lists.deconcept.com] On Behalf Of Geoff
Stearns
Sent: 25 April 2006 19:29
To: swfobject at lists.deconcept.com
Subject: Re: [SWFObject] the flash before flash

another solution that came to mind may be this:

some browsers when rendering tables will not render the content until
the whole table is done loading - in contrast to this, if you are using
divs and whatnot, sometimes the browser will start to render the page
before the closing div.

so you might be able to place all your alternate content into one large
table with a single <td> and it might fix the problem.

obviously it isn't the best answer, and it is a bit hackish, but hey, if
it works for you and your clients, go for it.

if you end up trying it out, let us all know how it goes.


On Apr 25, 2006, at 12:52 PM, Greg Brant wrote:

>  ah, no..
>
> I was aware of FAUC and have all my scripts before my <style> tag
>
> I thin it might be the fact that there is a fair bit of content on the

> page as geoff suggests in his post to the list.
>
>
> I might have to do what I didn't want ot and write it into the dom at 
> runtime...
> Nightmare
>
>
> Thanks chaps
>
> -----Original Message-----
> From: swfobject-bounces at lists.deconcept.com
> [mailto:swfobject-bounces at lists.deconcept.com] On Behalf Of Aaron 
> Clinger
> Sent: 25 April 2006 16:49
> To: swfobject at lists.deconcept.com
> Subject: Re: [SWFObject] the flash before flash
>
> I think the second question in the FAQs will answer that for you:
> http://blog.deconcept.com/swfobject/#faq
>
>
> On 4/25/06, Greg Brant <Greg.Brant at cmwnorth.com> wrote:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Hi all,
>>
>> Iv got a couple of sites on the go that use SWFObject to write the 
>> flash into the page over an accessible site.
>>
>> But for a split second before the SWFObject writes the flash into the

>> DOM, you egt to see the accessible site. Does anybody know of a way
> around this?
>> (apart from writing the accessible site into the DOM in a simialar 
>> way, which i dont really wanna do, but might have too??)?
>>
>> and if applicable, does it soley rely on processing power of the 
>> client PC as to how much of a flash you get... i asume its but i need

>> to be 100% to egt the account managers off my back.
>>
>> cheers
>>
>> greg
>> Greg Brant
>> Junior Developer
>>
>> Clark McKay and Walpole North
>> T: 0113 234 2022
>> F: 0113 247 0265
>>
>> greg.brant at cmwnorth.com
>> www.cmwnorth.com
>>
>> Rank 12: New Media Age Top UK Interactive Marketing Agency 2005
>>
>>
>>
>>
>>
>>
>>
>>  ---
>>  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
> _______________________________________________
> 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

_______________________________________________
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)



More information about the Swfobject mailing list