Is this a stage listener?

Out of context: Reply #8

  • Started
  • Last post
  • 26 Responses
  • Buckyball20

    Alright. Getting close. I searched through a couple Flash forums and came across some code. Here it is. "mauiflowers" being my mc.

    function onResize ():Void
    {
    mauiflower._width = Stage.width;
    mauiflower._height = Stage.height;
    }
    Stage.addListener(this);

    I applied it to the first frame of my timeline and exported out at 100%/no scale. Here is the result. The image seems to move with the browser as I resize it but the image stays the same size. Want it to shrink like the previous example I posted.

    Is this code wrong? Or do I need to tweak it a bit?

    thanks.

View thread