Rework TownBarn onRevelation.
[18plus-7leafadventure.git] / src / Main.mxml
blob0be0a521ccb7871413c4f440b391d2177db3ce51
1 <?xml version="1.0" encoding="utf-8"?>
2 <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
3 xmlns:s="library://ns.adobe.com/flex/spark"
4 xmlns:dongs="org.sevenchan.dongs.*"
5 creationComplete="dicks(this)">
6 <fx:Script>
7 <![CDATA[
8 import spark.components.Application;
9 import org.sevenchan.AdventureController;
11 public function dicks(hurf:Application):void {
12 dongs.addChild(new AdventureController(Main(hurf)));
15 public function showBodyParts(show:Boolean):void {
16 trace(show);
17 bodyparts.visible = show;
18 dongs.visible = !show;
19 dongs.alpha = show ? 0 : 1;
20 dongs.percentHeight = dongs.percentWidth = show ? 0 : 100;
22 ]]>
23 </fx:Script>
24 <dongs:frmBodyPartsPool id="bodyparts" visible="false" width="90%" height="90%" horizontalCenter="true" verticalCenter="true" />
25 <s:SpriteVisualElement id="dongs" />
26 </s:Application>