Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Feb 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help with gaps in Flash

    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!

  • #2
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    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,

  • #3
    New to the CF scene
    Join Date
    Feb 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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).
    Last edited by AndyHP; 02-20-2005 at 12:13 PM.

  • #4
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    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:
    Code:
    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.

  • #5
    New to the CF scene
    Join Date
    Feb 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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
    Last edited by AndyHP; 02-19-2005 at 10:53 AM.

  • #6
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    well, as long as we're using the hacks...
    Code:
    object {
     position: relative;
     top: -1px;
     left: -1px;
     }

  • #7
    New to the CF scene
    Join Date
    Feb 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for all the help, problem solved!
    Last edited by AndyHP; 02-20-2005 at 12:13 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •