Welcome, Guest
  • Author Topic: Help!How to retain background picture in full dimension while minimizing window?  (Read 1218 times)

    lebo

    • Server what's that
    • *
    • Posts: 2
      • View Profile
      • Email
    Hi all, i need some help, i want to minimize window to not-fullscreen and retain background picture full size(i need to picture proportionally follows screen minimizing).
    The site is http://www.consulteam.rs/flash/crusch.html and i`m new into flash stuff, so please tell me if it is the code or what, and if you know part of code that will do the job, write me down!

    Thanks!

    lebo

    • Server what's that
    • *
    • Posts: 2
      • View Profile
      • Email
    When i said minimize, i ment restore down (icon in the top right corner betwen - and x) browser window and ajusting size of window manually over arrows in the corners of the window

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Basically you need to listen to resize events:

    Code: [Select]
    sizeListener = new Object();
    sizeListener.onResize = function() {
      trace (Stage.width)
      trace (Stage.height)
      //do your stuff based on size
    };
    Stage.addListener(sizeListener);

    So adding this to the first frame, you can resize your image based on stage size.
    here a more in depth explanation about liquid layout: http://www.tutorio.com/tutorial/liquid-flash-layout

    Jorge