border on fullscreen resize

Filed Under mercialleasing.com |

  • Hi everyone,

    how is everybody doing on this beautiful monday (trick question)?
    I know its been asked a million times:

    http://www.milesaldridge.com/

    The border and how it works with the resize. If any one can point me to the thread, thanks a bunch.

    enjoy your monday,
    M.


  • Don't forget to set your Stage properties (align and scaleMode). Something like this will do the trick:
    Stage.align = "TL";
    Stage.scaleMode = "noScale";
    //
    var blackPart:MovieClip = makeBackGround();
    blackPart._x = blackPart._y = 10;
    //
    var layItOut:Object = new Object();
    layItOut.onResize = function() {
    blackPart._width = Stage.width - 20;
    blackPart._height = Stage.height - 20;
    };
    Stage.addListener(layItOut);
    layItOut.onResize();
    //
    //
    function makeBackGround():MovieClip {
    var s:MovieClip = this.createEmptyMovieClip("1a", 1);
    s.beginFill(0x000000, 100);
    s.moveTo(0, 0);
    s.lineTo(100, 0);
    s.lineTo(100, 100);
    s.lineTo(0, 100);
    s.endFill();
    return s;
    }


  • no its not on the layers. its being called in


  • ..can you be a little more specific about the problem. I`m not exactly sure what is happening to the vid once youe scale the browser....

    Ok. What happens when I scale the browser is basicly nothing. And my vid doesnt fit inside it at all. It's just as wide and tall as my stage in flash - so too tiny for the browser.

    But if I just test my movie in flash, my .swf - it works and scales perfectly!
    I assume I need some sort of css to get it to work with my browser!?


  • awesome.... worked perfectly!
    thanks a bunch!
    m.


  • ...in this case....to keep proportions and everything I would ad a black bar to the lower end of the stage. resizing in width and always staying to the lower end.... should be easy with the script that is already there..


  • ...this is what I cam with now. But the resize won`t to the trick after I actionscripted the rectangle... perhaps I should work out the borders instead of the "stage" part?!?!
    m.


  • ..can you be a little more specific about the problem. I`m not exactly sure what is happening to the vid once youe scale the browser....


  • how do i push the black bg to the bottom of the depth


  • ...possible.
    why don`t you surf the tutorials for a full screen website and have a look at the export settings...
    m.


  • how do i set the bg back. Right now the bg is in front of everything. do i have to do something with swapdepths.


  • Hi, I want to add something to this.

    Im trying to create something similar to this, but not with that black rectangle. I want to use a .mov file, but still keep the borders. So my vid becomes scaleable within the browser and it'll work as the bg of my site.

    EDIT:

    If I use the first code Qgeis mentioned, and test my movie in flash, it works. The problem occurs when I publish my files and test it in browsers.


    How do I go about doing that?
    peace.


  • Call it into a movieclip in the bottom layers?
    Or use as to push it to a lower depth.


  • cool.. glad that helped..


  • seems to be working fine with the code provided...but when resizing, the black stage_part looks kinda shaky on the edges... does someone know why and how to fix that glitch?
    thanks,
    m.


  • Just put the bg in the bottom layers?


  • Black movieclip centered on a white background. minus a few pixels from the sides.

    var layItOut:Object = new Object();
    layItOut.onResize = function() {
    blackpart._width = Stage.width-20;
    blackpart._height = Stage.height-20;
    // Code for centering
    // Whatever stuff that needs to be done when the screen resizes
    };
    Stage.addListener(layItOut);


  • I think this will achieve a smoother effect. Use 4 instances white color mc, set their dimensions and thickness and set them to each side, creating a border.


  • Qgeis,

    nice one, thanks!
    I should also be able to animate that one in the begining.
    Thanks a bunch!
    m.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about border on fullscreen resize , Please add it free.

    Comments