...

Help with gaps in Flash

AndyHP
02-19-2005, 08:21 AM
I'm putting a simple flash animation into my new layout, and have the width and height set correctly. The problem is, the flash file puts a 1px border at the top and left sides of the animation, so it is obvious that it is a .swf file. I'd like to be able to have it sit there, so it blends in with the rest of the design.

My second question is: What will show up if someone doesn't have flash installed? I have a background of a non-animated version set underneath the flash file, so I'd like it if someone didn't have flash installed, that the .swf file wouldn't show up, and they'd just see the background image underneath, not a message saying "You don't have flash" etc...

Is there a code to just not display the file if flash isn't installed? And does anyone know how to remove the gap/spacing?

Thanks!
:)

rmedek
02-19-2005, 09:16 AM
About the border: it's very possible that it's an easy fix through your CSS, but we have to see some code, or a link, or something. Anything. :)

About the alternate image: This article explains it better than I ever could. It's a great intro to using Flash and still maintaining a relatively accessible webpage...

http://alistapart.com/articles/flashsatay/

Hope this helps,

AndyHP
02-19-2005, 09:20 AM
Thanks, Rmedek!

Thanks for all the help, problem solved!

It's a BETA area, so it'll be up once I fix the flash (top right).

rmedek
02-19-2005, 09:36 AM
um, are you sure you want your password up for all to see?

Anyhoo. I didn't see any gaps or spacing (using FF on OSX). The only thing I noticed was that the flash is designed one pixel lower, so I hacked it into place like so:

object {
position: relative;
top: -1px;
}


Any gaps are probably an IE thing (guessing here...); I'd try maybe "table { border-collapse: collapse; }" or something similar to see if that fixes it.

Hopefully a PC guy steps in, unless that positioning did the trick. :)

AndyHP
02-19-2005, 09:41 AM
Thanks! I specifically put a password that I'll only use to protect that directory, so I don't mind who goes in to help out.

EDIT: The fix got rid of the top line, but there is still a 1px line to the left

rmedek
02-19-2005, 11:07 AM
well, as long as we're using the hacks... :)

object {
position: relative;
top: -1px;
left: -1px;
}

AndyHP
02-19-2005, 11:14 AM
Thanks for all the help, problem solved!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum