Flash Stage help
- Started
- Last post
- 14 Responses
- silencer
I'm trying to attach a movie which stretches the length of the stage while the rest of the content stays in the middle. If I am setting my stage to Middle Top using
Stage.align = "MT";
Stage.scaleMode = "noScale";
///Then attaching my clip to the stage using
this.attachMovie("dvHorizontal_l... "dvBottom_mc", this.getNextHighestDepth(), {_x:0, _y:525});
///Then using a listener to re-size on browser resize
Reziser = new Object();
Reziser.onResize = function(){dvBottom_mc._width = (Stage.width/dvBottom_mc._width )*dvBottom_mc._width;}
Stage.addListener(Reziser);
dvBottom_mc._width = (Stage.width/dvBottom_mc._width )*dvBottom_mc._width;
///Anyone have any ideas?
- silencer0
I guess the basic concept is the same where a pixel is stretched across the browser and the content is top middle.
Can you help?
- unfittoprint0
stage align to the left and use an onResize event for alignment.
Stage.align = "LT";
Stage.scaleMode = "noScale";
Reziser = new Object();
Stage.addListener(Reziser);function center():Void {
content._x = (Stage.width-content._width)/2
};Reziser.onResize = function() {
center();
};
- silencer0
You tha man unfit, yes indeed, works like a charm, thanks.
- erokcom0
Could you post an FLA of this somewhere? I have been trying to get this to work forever..
:-)
- silencer0
gimme 2 mins and I'll mail you
- rabattski0
could you mail me a copy as well silencer? that would be dope.
- erokcom0
THANKS MANG!
:-)
- silencer0
Youz have both got mail.
- rabattski0
cool! just got it. cheers!
- erokcom0
Same here!
Would using this work for something kinda like this?
I really want to know how to do this 100% by 100% thing.. I have been trying forever...
Idea's friends?
:-)
- silencer0
juz make your flash 100% by 100% in the HTML and use the file I sent and you'll be able to do that no worries.
- erokcom0
Hmm..
I think it's a bit more than that.. I don't understand how this file is keeping the MC and the center, but tiling it at the same time...
Would I need a sepertae clip in the center?
- lvl_130
don't mean to jump on this train, but would you be so kind as to send that file to me as well silencer? i have been having problems with this for over a month!
that would be real cool : )