!!blue Posted August 27, 2003 Posted August 27, 2003 Hi all, Using a DHTML layers code I found on the web (dyn-web), I created a page with a swf in each layer. A quirk I get on IE5 on the Mac OSX is that each swf is visible in each layer and plays (which gives it a cool effect, but not what I'm going for). Anyhow, I wanted to know if this is an IE/Mac issue or is there better code out there I could use or do I need to just edit the code slightly? Sorry I can't post the example I created, it's at my job. thanks, !!blue Quote
borfast Posted August 27, 2003 Posted August 27, 2003 I'm not sure I understood the problem. You have two layers, with an SWF in each of them but you don't want them both to show, is that it? I can't tell what the problem could be without looking at the code but my first advice would be to drop the "DHTML" stuff, since it usually makes use of non-standard CSS. But then again, I can only be sure about what I'm saying if I take a look at the code. Quote
!!blue Posted August 27, 2003 Author Posted August 27, 2003 Hi, attached is the example I got from the website and all I did was change the div contents to hold swf files instead of the current text and what seems to happen is that the swfs in their individual layers are all visible at the same time. thanks, !!blue dhtmlLayers.html Quote
borfast Posted August 27, 2003 Posted August 27, 2003 (edited) I don't see anything wrong with the code so... I'd say the problem is that the browser isn't capable of hiding objects inside the DIVs. Why? Haven't got a clue... It's a problem I was never faced with before. Try keeping the text in the DIVs and add the Flash animations to both DIVs. If you see the text changing but the SWFs keep showing, you'll know it's not a problem with your code but a problem with the browser not being able to hide the Flash Objects. Edited August 27, 2003 by borfast Quote
!!blue Posted August 27, 2003 Author Posted August 27, 2003 Borfast, I suspected as much, cuz I tried that exact thing! The text changed but the swfs all showed up simultaneously Now I know IE5/Mac OSX can't handle div layers... Back to the drawing board! thanks, !!blue Quote
TCH-JimE Posted August 28, 2003 Posted August 28, 2003 Hi, Hmm just a thought, did you give each div layer a coloured background before you placed the SWF file into it? Jim Quote
!!blue Posted August 28, 2003 Author Posted August 28, 2003 Jim, Yes, using CSS the layers have the same background, plus the embedded swf also had background colors. After much research, turns out the browser has to have the latest version of flash player installed AND the embedded swfs have to be set to be transparent (<param name="wmode" value="transparent"> along with wmode="transparent" inside the EMBED tag). When I did that, the code worked but my boss and I decided against it cuz the user must install the *latest* flash player not just 6. thanks, !!blue Quote
TCH-JimE Posted August 28, 2003 Posted August 28, 2003 Hi, Have you tried saving the flash file down so its compatable with lower flash players? I always now save down to version 4 so its not a problem Jim Quote
!!blue Posted August 29, 2003 Author Posted August 29, 2003 Jim, Thanks! Unfortunately, the source files weren't available to me @ work since I didn't create them; but I would've if I could've But, yes, I do try to publish down to version 5. Although sometimes I can't cuz I can't make the actionscript backwards compatible or also like having a text field with an instance name won't work in flash 5. laters, !!blue Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.