SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Oct 2012
    Location
    San Marcos, California, United States
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Flash is resizing width ok but not height...?

    I am trying to embed a flash slideshow on a site and I cannot seem to get the height to change. It stays relative to the width. I went into the FLA file and changed it in there and made a new SWF file but it's still not changing on my web page. www.hoghedz.com/buy-the-music.html

    Here is my object code:

    <div align="center">
    <object width="300" height="500">
    <param name="movie" value="slideshow.swf?xml_path=images.xml">
    <embed src="slideshow.swf?xml_path=images.xml" width="300" height="500">

    </embed>
    </object>
    </div>

    300x500 is what I am trying to get the flash movie to display at but it looks to be more like 300x200. And if I adjust the width, that changes with no problem (up to the width of the column - it wont go wider than that, which is fine). But, if I try to change the height it wont show the change on my page. I previously had content going down the entire length of the column so it's not a setting restricting that and put in some text to show that.

    I'm hoping someone can help... Thanks in advance!

  2. #2
    Keep Moving Forward gold trophysilver trophybronze trophy
    Shaun(OfTheDead)'s Avatar
    Join Date
    Nov 2005
    Location
    Trinidad
    Posts
    3,746
    Mentioned
    45 Post(s)
    Tagged
    0 Thread(s)
    Hi.

    If the SWF is correctly made, then you probably need to add a <param> for scaling. Honestly I can't remember which one off hand, but I think it's;
    <param name="scale" value="exactfit">

    Give it a try.
    Trying to fill the unforgiving minute
    with sixty seconds' worth of distance run.

    Update on Sitepoint's Migration to Discourse

  3. #3
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,171
    Mentioned
    454 Post(s)
    Tagged
    8 Thread(s)
    I think perhaps why it's not working is that the CSS applying to that element is overriding the inline settings. So try removing this line from your CSS:

    Code:
    img, object, embed {
    max-width: 100%;
    height: auto;
    }

  4. #4
    SitePoint Member
    Join Date
    Oct 2012
    Location
    San Marcos, California, United States
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ralph.m View Post
    I think perhaps why it's not working is that the CSS applying to that element is overriding the inline settings. So try removing this line from your CSS:

    Code:
    img, object, embed {
    max-width: 100%;
    height: auto;
    }
    That was it! Thanks so much!!!


Bookmarks

Posting Permissions

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