Flash q?

  • Started
  • Last post
  • 3 Responses
  • Parent

    Any idea people?
    Check out http://www.hometownhifi.com/test… it's a thing i down loaded, but what I really want to know is how do you get the bit at the base of the browser to stay on the base, as it is flash and does not resize but the main content stays centred? the new spin site does something similar but has the items stay at the left or right?
    idea ideas appreciated.

  • elkew0

    not tested but its basically what you need to do:

    // this stops full size flash from resizing
    Stage.scaleMode = "noscale";
    getURL("FSCommand:fullscreen", "true");

    // this makes sure its always centred
    Stage.align = "C";
    Stage.addListener(this);

    // create a listener that check for browser changes
    listenerCheckStage = new Object();
    listenerCheckStage.onResize = function() {
    // you then add script here that reacts to browse size changes
    myBottomAlignedMc._y = (Stage.height/2)-myBottomAligned...
    };

    // activate listener
    Stage.addListener(listenerCheckS...

  • Parent0

    thanks man.. still can't get it to work though?? I have a mc called 'myBottomAlignedMc' then i have // this stops full size flash from resizing
    Stage.scaleMode = "noscale";
    getURL("FSCommand:fullscreen", "true");

    // this makes sure its always centred
    Stage.align = "C";
    Stage.addListener(this);

    // create a listener that check for browser changes
    listenerCheckStage = new Object();
    listenerCheckStage.onResize = function() {
    // you then add script here that reacts to browse size changes
    myBottomAlignedMc._y = (Stage.height/2)-myBottomAligned...
    };

    // activate listener
    Stage.addListener(listenerCheckS...

    in a frame action ?

  • Parent0

    bump*