Jump to content
Search Community

galbraith2

Members
  • Posts

    1
  • Joined

  • Last visited

galbraith2's Achievements

0

Reputation

  1. Sorry to dig up an old thread. But since asking starting this thread I have made a few sites with Gaia and Liquidstage. This is how I have been using it without any problems. Main.as ... import com.greensock.layout.*; 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; super.onAddedToStage(event); var ls:LiquidStage = new LiquidStage(this.stage, 1024, 768); } } Then when you need to get a reference to liquidstage just use: HomePage.as ... import com.greensock.layout.*; public class HomePage extends AbstractPage { private var ls:LiquidStage; public function HomePage() { super(); alpha = 0; } override public function transitionIn():void { super.transitionIn(); ls = LiquidStage.getByStage(stage); TweenMax.to(this, 0.3, {alpha:1, delay:1, onComplete:transitionInComplete}); } ... Also note for any gaia users I had some strange problems with liquidstage with one project and having indexFirst="true" but I didn't get around to finding out why. So if you have any problems you might want to try seeing if you have indexFirst set to true.
×
×
  • Create New...