A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Full Screen layout with swing menu

  1. #1
    Junior Member
    Join Date
    Nov 2008
    Location
    Gold Coast, Australia
    Posts
    4

    Full Screen layout with swing menu

    I don't have a great deal of experience with Flash and I'm trying to create a simple site that has logos rotating in the center of the screen and a swing menu that comes out from the left on rollover.

    I have it all functioning correctly it's just the layout I'm having issues with.

    I need the logos to remain in the center and not scale, and the swing menu to remain hidden on the far left no matter what size the browser window.

    My .fla can be found here:

    http://dl.getdropbox.com/u/336762/hardcore_splash.fla

    It's probably something super simple and I'd really appreciate a little help with it.

    Thanks

  2. #2
    RockYourFlash
    Join Date
    Jan 2009
    Posts
    14
    Hey,

    Try using:

    // ***Stage aligned top left
    Stage.align = "TL";
    // *** Stop the stage from scaling with the browser window.
    Stage.scaleMode = "noScale";

    //reposition the movie clip to the center of the stage
    myWicked_mc._x = (Stage.width/2) - (myWicked_mc._width/2);
    myWicked_mc._y = (Stage.height/2) - (myWicked_mc._height/2);
    //Lock other MC to the top left:
    myOtherWicked_mc._x = 0;
    myOtherWicked_mc._y = 0;

    //this is called when the stage gets resized
    sizeListener = new Object();
    sizeListener.onResize = function() {

    //reposition the movie clip to the center of the stage
    myWicked_mc._x = (Stage.width/2) - (myWicked_mc._width/2);
    myWicked_mc._y = (Stage.height/2) - (myWicked_mc._height/2);
    //Lock other MC to the top left:
    myOtherWicked_mc._x = 0;
    myOtherWicked_mc._y = 0;
    }

Tags for this Thread

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