Following my previous email, I thought of a better way to test display:none
with flash.

http://www.neo-archaic.net/display.htm has a page similar to the index page,
but instead of the replaceFlash.js script, it has a link to a script called
display.js with the following code:

// JavaScript Document
document.write ("<style id='hide'> object{display:none;} </style>")

function show(){
        document.getElementById("hide").disabled = true;
}
function hide(){
        document.getElementById("hide").disabled = false;
}

Two links, show and hide, call the functions that control the display of a
growing tree animation.
 
What happens is that although the tree has had enough time to grow (you can
wait all you want), it only starts growing after show() has been called, so
that means it hasn't had the chance to load before, however long you wait
before clicking.  When hide() is called, however, the animation stays
loaded, and does not reload again.

I think this proves that display:none prevents the flash from loading,
unless there's a better explanation?

Karina 

PS: The homepage www.neo-archaic.net has the display.js script enabled, so
you can see it in action there.

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to