Skip navigation
Currently Being Moderated

How to put pictures in the same size (adjustment) ?

Feb 26, 2013 9:50 AM

Good afternoon everyone

I have a problem.

I did a fla with 3 components images (loader), and a button.
I would like to know what code would use so that when I click on the button I load the 3 images but adjustable, is said to be in the same size.
When I export to swf. everything looks good. the photos are adjusted to your size. but when I upload it to the internet, my hosting, the photos are great and are not adjusted.


problema de imagenes.png


What would be the problem and what solution do?

Wait for a response



Roger García

  • Currently Being Moderated
    Feb 26, 2013 9:56 AM   in reply to BIRKOFF-REGP

    Well, to fit to the entire screen you need to do:


    stage.scaleMode = StageScaleMode.EXACT_FIT however that doesn't preserve aspect ratio so you might want to experiment with stage.scaleMode = StageScaleMode.SHOW_ALL or stage.scaleMode = StageScaleMode.NO_BORDER; to see which one you like better.


    (This is, of course, if I understand your question and goal correctly)


    To do this in non-ActionScript you are looking for this in the HTML file:


    <param name="scale" value="showall" />


    You can change it to:


    <param name="scale" value="noborder" />




    <param name="scale" value="exactfit" />

    Mark as:
  • kglad
    72,235 posts
    Jul 21, 2002
    Currently Being Moderated
    Feb 26, 2013 10:01 AM   in reply to BIRKOFF-REGP

    upload your html file published by flash and open that in your browser.

    Mark as:
  • Currently Being Moderated
    Feb 26, 2013 2:36 PM   in reply to BIRKOFF-REGP

    You only want to set stage.scaleMode once and you want to do it during app startup - not during a button press. I was just giving you all the values it could be.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points