No way to avoid a screen repaint when replacing elements in the DOM. You might be able to make things a little less ugly by setting "visibility:hidden" on the original object (don't use display:none).
--Kyle -------------------------------------------------- From: "Nbd" <[email protected]> Sent: Friday, February 13, 2009 1:36 AM To: "SWFObject" <[email protected]> Subject: Re: Changing arbitrary flash objects wmode to transparent > > Thanks Kyle, > > Indeed it works. But the screen flashes when I do that. Is there any > way to avoid the redraw? > > Thanks again, > Nbd > > On Feb 11, 2:49 pm, "Getify Solutions, Inc." <[email protected]> wrote: >> Seems to me that the best way to handle such a problem-prone situation as >> this would be to just grab the outerHTML of the outer most object >> element, >> then use a string regex replacement to put in the correct wmode, then >> re-write/append that new element to the DOM and replace/remove the >> previous >> one in its place. Basically, do a swap out. >> >> --Kyle >> >> -------------------------------------------------- >> From: "Nbd" <[email protected]> >> Sent: Wednesday, February 11, 2009 3:44 AM >> To: "SWFObject" <[email protected]> >> Subject: Changing arbitrary flash objects wmode to transparent >> >> >> >> > I need to change wmode of arbitrary flash objects to transparent from >> > external js file to make sure they don't hide menus without using >> > Jquery or similar libs. I have no control over the embed code and my >> > javascript runs after swfObject so I cannot touch its initial >> > parameters. >> >> > In FF I use getElementsByTagName("embed") and set attribute. It seems >> > to work well. >> >> > Specifically I'm having trouble with object set by swfObject In IE7. >> >> > swfObject creates the following code in iE7: >> >> > I tried every possible way to set wmode to transparent and make the >> > flash not hide floating objects without success including but not >> > limited to: >> >> > 1. Search for OBJECT and change its PARAM wmode to transparent. >> > 2. Set attribute of OBJECT (wmode=transparent) >> > 3. Call the OBJECTnode.object.SetValue function >> > 4. set OBJECTnode.object.WMode = "Transparent". >> >> > The flash still hides a menu that has z-index 32767 what am I missing >> > here? >> > How can I change arbitrary flash objects that are already loaded when >> > my code runs to not hide a fixed menu? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/swfobject?hl=en -~----------~----~----~----~------~----~------~--~---
