PDA

View Full Version : FireFox VS Liquid Layout


monkeyhead
05-06-2007, 02:20 AM
I'm working with a Liquid Layout right now but when i upload the file and open it in FF everything is centered. its not until i adjust the window size that everything snaps into place and it works the way it should.

Please check it out to get an idea...
Monkeyhead Graphics dot com (http://monkeyheadgraphics.com)

here are me publish settings:

http://monkeyheadgraphics.com/art/publish.jpg


Safari works a little better but not everyone is running Mac's.
any ideas?

thanks for listening,
Andre

Fl4SH'ER
05-06-2007, 05:16 AM
Ok, so what is the problem because i really didn't get it... I see that your .swf file in stretched 100%w 100%h ( except for that aprox 5px margin i mean ). So what is the problem ?

monkeyhead
05-06-2007, 08:39 AM
the problem is, when i open the website the swf is centered...when i adjust the browser size, the swf then snaps to the edges like a liquid layout should.

does that make sense?
thanks again,
Andre

monkeyhead
05-06-2007, 12:55 PM
Ahhh!!! why is my Liquid Layout all pushed to the right? it's so strange! what do i need to do to get my page to load correctly?

monkeyheadgraphics.com (http://monkeyheadgraphics.com)

Please help...my brain is gonna fall off!
thanks again,
Andre

Templarian
05-06-2007, 01:15 PM
The minute i resize it works the way it should. Whats your AS exactly for making it fluid? (my guess is that your not telling it to reposition on load rather your only repositioning on resize).

monkeyhead
05-06-2007, 01:35 PM
This is my AS ( it suck because i got this source file from a developer that seems to speak 2 languages, so the instruction is only 1/2 in english...cruel joke! )

// initial
Lebar = Stage.width;
Xtxt1 = txt1._x;
Ytxt2 = Stage.height-txt2._y;
Ymonkey01 = Stage.height-monkey01._y;
Xmonkey01 = Stage.height-monkey01._x;
// set ukuran box1 dan box2
box1._width = Stage.width;
box2._height = Stage.height;

// set untuk stage
Stage.align ='TR'; // TR = topRight, TL = topLeft, T = topcenter, B = bottomCenter, dst
Stage.scaleMode = "noScale";

// buat Listener object
myListener = {}; //
myListener.onResize = function() {
var tepikiri = -(Stage.width-Lebar);
with(box1){
_x = tepikiri;
_width = Stage.width;
}
with(box2){
_y = Stage.height;
_height = Stage.height;
}
txt1._x = tepikiri+Xtxt1;
txt2._y = Stage.height-Ytxt2;
monkey01._y = Stage.height-Ymonkey01;
center1._x = ((tepikiri/2)+(Lebar/2))-(center1._width/2);

}
Stage.addListener(myListener);
stop();

Templarian
05-06-2007, 01:43 PM
Remove stage align?

monkeyhead
05-06-2007, 02:11 PM
removing stage align only makes it expand in all directions on resize...Changing to TL gives me some strange scaling issue...Damn you, LIQUID LAYOUT!!!!!

monkeyhead
05-07-2007, 09:56 AM
Here is the source file...maybe it'll give you an idea of why i'm having these issues...

>>>index.fla<<< (http://monkeyheadgraphics.com/index.fla)

thanks for helping,
Andre

Krilnon
05-07-2007, 12:51 PM
Call onResize sometime after you define it.