Hello guys, I added a test here: http://www.unfocus.com/projects/PatentMagic/sound.html
The good news is that the sound doesn't play in if the object is hidden with display:block. So this at least appears to work. I will add some more thorough tests using other ActiveX types and some that ping the server to see what's really happening.
It has been quite fun working with you guys on this. :-) Thanks, Kevin N. elibol wrote:
I'm no expert on this, there are many others here that should know the answer but my guess is that the object is downloaded but not rendered. You can test this by calling a javascript function from within your flash movie. try getURL('javascript:alert("movie running");'); from within your movie. I just tested this, http://anticipatechange.com/huseyin/patentMagic/ I added a link that runs the disable css code and only when it is clicked the movie object renders. I think there is a distinct delineation that must be made between whether objects are downloaded and whether they are active/rendered/running. I think that if the objects are just downloaded, it makes no difference. My only concern was hit counting scripts like hit box that would make calls from within flash, but if the flash movie is never activated, it should not double hits. Nice work Karina, M. On 4/21/06, Karina Steffens <[EMAIL PROTECTED]> wrote: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.
_______________________________________________ [email protected] 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

