Another Resize Question

Posted on 2005-04-05
Last Modified: 2010-04-03
In HTML I can define the width of an JPG image to be 100%. If I put that image in a table with a width of 40%, I can resize the window and the table will become wider and smaller, always taking up 40% of the screen space. Resepectively, the JPG image will resize itself to fit 100% of the table, getting bigger and smaller with the screen.

I would like to do this with a flash movie. I'm not very experienced in flash, but I've managed to build a game that I want to resize the same way as a JPG image. So far I have been able to make it resize, but then one of two things happens depending on my Flash publishing settings:

1) When the movie gets smaller, a white frame appears on the top and the bottom.

- or -

2) The movie does not scale properly and becomes squished or stretched.

I just want it to resize like the JPG image does. Here's how I'm getting the JPG to resize correctly in HTML:

<table border="0" cellpadding="0" cellspacing="0" width="40%">
    <td width="100%">
    <img border="0" src="testimage.jpg" width="100%"></td>

I've read a bunch of other answers about flash resizing and I'm not finding anything helpful to my problem.
Question by:cnxmax
    LVL 18

    Accepted Solution

    try this tutorial:

    LVL 18

    Expert Comment

    does this help? Please provide some feedback:)

    LVL 18

    Expert Comment

    If not, please post a comment or a question or some progress on before. Thanks:)

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
    Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
    The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
    The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now