PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197
Resizing the browser
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Resizing the browser

  1. #1
    Senior Member sirhoff's Avatar
    Join Date
    May 2003
    Location
    OH
    Posts
    245

    Resizing the browser

    I saw this site in another post and I've noticed this becomming the trend in photo galleries.

    http://www.simonladefoged.com

    When you drill down and open up a photo, the photo resizes with the browser while the rest of the movie elements expand without resizing. I'd love to know how this is done.

    On a side note, it used to be impossible to resize a photo cleanly in Flash. Is something being done here or is it just improvements in Flash players?

    Thanks!
    Last edited by sirhoff; 02-10-2010 at 09:43 AM.

  2. #2
    Junior Member
    Join Date
    Jan 2010
    Posts
    9
    A simple way would be to go into flash publish settings, then click the HTML tab. Where it says "dimensions" select "percent" in the dropdown box and enter 100% for both width and height.

    EDIT: I think I may of misunderstood slightly. Do you mean how to make it smaller /if/ the user resizes or how to make the browser resize smaller? I thought the latter, but the site you gave link to does not resize my browser when viewing photos.
    Last edited by jumpinjax; 02-11-2010 at 04:52 PM.

  3. #3
    Senior Member Ray Beez's Avatar
    Join Date
    Jun 2000
    Posts
    2,796
    I HATE sites that do this! It is the user's perogative to maximize the browser if they feel like it! Don't piss off your users!

  4. #4
    Senior Member sirhoff's Avatar
    Join Date
    May 2003
    Location
    OH
    Posts
    245
    When I resize this site it scales the photo to fit the browser and expands the header and footer witout resizing sot that they are always at the very top and bottom.

  5. #5
    Junior Member
    Join Date
    Jan 2010
    Posts
    9
    that would be done using actionscript to anchor certain objects to places. For example:

    For bottom footer:
    Actionscript Code:
    _root.bottomfooter._y = Stage.height
    _root.bottomfooter._x = Stage.width / 2

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