Results 1 to 4 of 4

Thread: Is there a resizing script for this problem?

  1. #1
    Join Date
    Dec 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Is there a resizing script for this problem?

    Is there a script to make my .swf movie, 1000 x 600 px, reduce to fit a 800 x 600 screen but stay at 1000 x 600 on a larger screen?

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Use percentages for the width/height in your embed code.

  3. #3
    Join Date
    Dec 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you for responding, I think that would work for reducing the size of the movie but if it comes up on a bigger screen than 1000 x 600, wouldn't the movie be distorted?

    I was wondering if there was some scripting to allow reduction but not enlargement.

  4. #4
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    It depends on how you would do it. I'd suggest setting the Flash player to be 100% height and width. Then surround it with a container and style the container flexibly.

    Set a max-width and max-height and the Flash movie won't ever exceed that. I think that'll give you what you're looking for without having to deal with messy scripts.

    You could do it via JavaScript though. At least, I think so (I'm a JS novice).

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
  •