A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: How do I make my flash game keep picture quality when browser resized

  1. #1
    Registered User
    Join Date
    Sep 2011
    Posts
    1

    Question How do I make my flash game keep picture quality when browser resized

    How do I make my flash game keep picture quality when browser is resized.
    I built a flash game combining using actionscript and whenever the player or browser is resized it loses quality. This really annoys me...
    Is there a way so, if the browser for example is made smaller the game's picture still keeps its display quality

    If you can help plz do. Thanks

  2. #2
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,755
    why is your project stretchign with the browser? on purpose?

    if so.. you would need to SMOOTH your images in FLASH so they do not pixelate.. however it made TOO big they will still not look good.

  3. #3
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    Click on your image in the library, right-click it, click on Properties, and check Allow Smoothing, and also, if you want to, uncheck use imported JPEG quality or default quality, and set the number to 100, and press OK
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  4. #4
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,755
    if they are dynamically loaded.. you will need to use bitmap filter to 'draw' and add smoothing.

  5. #5
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Code:
    myPictureClip.smoothing = true;
    myPictureClip.forceSmoothing = true;
    or with a function when browser/movie size changes

    Code:
    function doResize()
    {
    myPictureClip.smoothing = true;
    myPictureClip.forceSmoothing = true;
    }
    
    Stage.addListener({onResize:doResize});
    This should give you the desired resluts

    I just use both smoothing techniques to make sure of it

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center