A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: [CS3][AS2] Hello with this 100% flash website code

Threaded View

  1. #1
    Senior Member
    Join Date
    Dec 2007
    Posts
    121

    [CS3][AS2] Hello with this 100% flash website code

    Hi all,

    this has always been haunting me for a while, I mean doing a 100% Flash website, which takes the browser.

    I've been able to make the Background take the browsers width and height at 100% using this code

    Code:
    Stage.align = "TL";
    Stage.scaleMode = "noScale";
    
    setProperty(bg_mc, _width, Stage.width);
    setProperty(bg_mc, _height, Stage.height);
    
    var resizeListener:Object = new Object();
    Stage.addListener(resizeListener);
    
    resizeListener.onResize = function () {
         setProperty(bg_mc, _width, Stage.width);
         setProperty(bg_mc, _height, Stage.height);
    };

    For the Bground its ok, but on a layer above the background layer, I have a movieclip (cover_mc) which contains some graphics for a website. What i want to do is

    When I resize the broswer, also resize the movieclip cover_mc to fit the users screen and to keep it centered.

    I have the Fla Attached as a zip file, can someone please help me wiz it? I going mad with this since i've never made a 100% flash !
    Attached Files Attached Files

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