border on fullscreen resize
Filed Under mercialleasing.com |
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.
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;
}
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!?
thanks a bunch!
m.
m.
why don`t you surf the tutorials for a full screen website and have a look at the export settings...
m.
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.
Or use as to push it to a lower depth.
thanks,
m.
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);
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.# |