Hi there,
I've got a question.
I'm sort of a scriptdummy and having a problem to make a gaia sit
fully scalable.
To make it clear, i want the full site to scale up or down to the
size of the browserwindow and center it horizontal and vertical.
Hope anyone can help me.
Thanks so far!
Paul
------------------
package
{
import com.gaiaframework.core.GaiaMain;
import flash.display.StageScaleMode;
import flash.display.StageAlign;
import flash.events.Event;
public class Main extends GaiaMain
{
public function Main()
{
super();
siteXML = "xml/site.xml";
}
override protected function onAddedToStage(event:Event):void
{
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
alignSite(1024, 768);
super.onAddedToStage(event);
}
override protected function onResize(event:Event):void
{
view.x = Math.round((stage.stageWidth - __WIDTH) / 2);
view.y = Math.round((stage.stageHeight - __HEIGHT) / 2);
}
}
}
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders