<?xml version=”1.0″ encoding=”utf-8″?>
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml” layout=”absolute” backgroundColor=”#EBF9FD” creationComplete=”init()” backgroundImage=”@Embed(source=’images/background_example.jpg’)”>
<mx:Script>
<![CDATA[
import mx.events.EffectEvent;
import mx.effects.Fade;
import mx.effects.Iris;
import mx.effects.WipeUp;
public var status:int=new int();
public var ostatus:int=new int();
public var opstat:Boolean=new Boolean();
import mx.formatters.DateFormatter;
private var ticker:Timer;
[Bindable] private var time:String;
public function showTime():void
{
var timeFormat:DateFormatter = new DateFormatter;
timeFormat.formatString = “HH:NN:SS”
var currentTime:Date = new Date();
time=timeFormat.format(currentTime);
ticker = new Timer(1,1);
ticker.addEventListener(TimerEvent.TIMER_COMPLETE,onTimerComplete);
ticker.start();
}
public function onTimerComplete(event:TimerEvent):void{
showTime();
ti.text=time;
}
private function init():void
{
opstat=false;
resw.visible=false;
posv.visible=false;
hkv.visible=false;
mainv.visible=false;
start.addEventListener(MouseEvent.CLICK,sta);
fov.visible=false;
this.addEventListener(MouseEvent.CLICK,outclick);
fov.addEventListener(MouseEvent.MOUSE_OVER,visib);
fol.addEventListener(MouseEvent.MOUSE_OVER,setstat);
posl.addEventListener(MouseEvent.MOUSE_OVER,setstat);
hkl.addEventListener(MouseEvent.MOUSE_OVER,setstat);
mal.addEventListener(MouseEvent.MOUSE_OVER,setstat);
resl.addEventListener(MouseEvent.CLICK,open);
}
private function open(ev:MouseEvent):void
{
var ir:Iris=new Iris();
ir.duration=1000;
ir.target=resw;
resw.visible=true;
ir.play();
}
private function sta(e:MouseEvent):void
{
e.stopPropagation();
show();
}
private function outclick(ev:MouseEvent):void
{
mainv.visible=false;
fov.visible=false;
hkv.visible=false;
posv.visible=false;
}
private function visib(ev:Event):void
{
ev.currentTarget.visible=true;
}
private function setstat(event:Event):void
{
if(event.currentTarget.id==”fol”)
{
status=1;
show();
}
else if(event.currentTarget.id==”posl”)
{
status=2;
show();
}
else if(event.currentTarget.id==”hkl”)
{
status=3;
show();
}
else if(event.currentTarget.id==”mal”)
{
status=4;
show();
}
}
private function show():void
{
mainv.visible=true;
var wip:WipeUp=new WipeUp();
if(status==0)
{
wip.target=mainv;
}
else if(status==1)
{
fov.visible=true;
posv.visible=false;
hkv.visible=false;
status=0;
wip.target=fov;
}
else if(status==2)
{
fov.visible=false;
posv.visible=true;
hkv.visible=false;
status=0;
wip.target=posv;
}
else if(status==3)
{
fov.visible=false;
posv.visible=false;
hkv.visible=true;
status=0;
wip.target=hkv;
}
wip.play();
}
private function close():void
{
var fa:Fade=new Fade();
fa.alphaTo=0;
fa.duration=1500;
fa.target=resw;
fa.addEventListener(EffectEvent.EFFECT_END,vifal);
fa.play();
}
private function vifal(e:EffectEvent):void
{
resw.visible=false;
resw.alpha=1;
}
]]>
</mx:Script>
<mx:ApplicationControlBar x=”10″ y=”558″ width=”780″ height=”32″>
<mx:Button id=”start” label=”START” borderColor=”#05572D” themeColor=”#A22A2A” fontAntiAliasType=”advanced” focusRoundedCorners=”true”/>
<mx:HBox width=”627″>
</mx:HBox>
<mx:Label color=”#F3EAEA” id=”ti” fontWeight=”bold” creationComplete=”showTime()” width=”60″/>
</mx:ApplicationControlBar>
<mx:ApplicationControlBar x=”10″ y=”10″ width=”780″ height=”120″>
</mx:ApplicationControlBar>
<mx:VBox id=”mainv” x=”10″ y=”343″ height=”178″ width=”131″ visible=”false”>
<mx:ApplicationControlBar width=”128″ color=”#F35C11″ barColor=”#F21C1C”>
<mx:Text text=”start” width=”101″ fontStyle=”italic” fontWeight=”bold” color=”#E8113A” fontThickness=”20″ fontSize=”14″/>
</mx:ApplicationControlBar>
<mx:LinkButton id=”fol” label=”Office >>” width=”125″ textAlign=”center” rollOverColor=”#F17E7E” color=”#E3EEF4″/>
<mx:LinkButton id=”posl” label=”les >>” width=”126″ textAlign=”center” color=”#E3EEF4″/>
<mx:LinkButton id=”hkl” label=”House” textAlign=”center” rollOverColor=”#F17E7E” color=”#E3EEF4″/>
<mx:LinkButton id=”mal” label=”ters” textAlign=”center” color=”#E3EEF4″/>
</mx:VBox>
<mx:VBox id=”fov” x=”136″ y=”287″ height=”152″ width=”121″ visible=”false”>
<mx:ApplicationControlBar width=”119″ height=”30″>
<mx:Text text=”Office” width=”100″ color=”#E8113A” fontWeight=”bold” textAlign=”center”/>
</mx:ApplicationControlBar>
<mx:LinkButton id=”resl” label=”Reservation ” width=”115″ color=”#E3EEF4″/>
<mx:LinkButton label=”tion” width=”114″ color=”#E3EEF4″/>
<mx:LinkButton label=”tings” width=”115″ color=”#E3EEF4″/>
<mx:LinkButton label=”ters” width=”116″ color=”#E3EEF4″/>
</mx:VBox>
<mx:VBox id=”posv” x=”136″ y=”287″ height=”158″ width=”132″ visible=”false”>
<mx:ApplicationControlBar width=”128″ height=”30″>
<mx:Text text=”LES” width=”100″ color=”#E8113A” fontWeight=”bold” textAlign=”center”/>
</mx:ApplicationControlBar>
<mx:LinkButton label=”ING” width=”126″ color=”#F2EBEB” height=”28″/>
<mx:LinkButton label=”RS” width=”128″ color=”#F2EBEB”/>
<mx:LinkButton label=”EM” width=”127″ color=”#F2EBEB”/>
<mx:LinkButton label=”ERS” width=”127″ color=”#F2EBEB”/>
</mx:VBox>
<mx:VBox id=”hkv” x=”136″ y=”287″ height=”158″ width=”132″ visible=”false”>
<mx:ApplicationControlBar width=”128″ height=”30″>
<mx:Text text=”ING” width=”100″ color=”#E8113A” fontWeight=”bold” textAlign=”center”/>
</mx:ApplicationControlBar>
<mx:LinkButton label=”MENT” width=”126″ color=”#F2EBEB” height=”28″/>
<mx:LinkButton label=”ING” width=”128″ color=”#F2EBEB”/>
<mx:LinkButton label=”DRY” width=”127″ color=”#F2EBEB”/>
<mx:LinkButton label=”ERS” width=”127″ color=”#F2EBEB”/>
</mx:VBox>
<mx:VBox id=”resw” x=”381″ y=”138″ height=”412″ width=”391″ visible=”false”>
<mx:Canvas width=”385″ height=”404″>
<mx:Image x=”22″ y=”41″ width=”253″ height=”139″ source=”images/venice_hotel_reservation.jpg” id=”resim”/>
<mx:VBox x=”22″ y=”188″ height=”198″ width=”155″ borderStyle=”inset”>
<mx:LinkButton label=”ION” color=”#F9EFEF”/>
<mx:LinkButton label=”N” width=”146″ color=”#F9EFEF”/>
<mx:LinkButton label=”ODIFY” width=”148″ color=”#F9EFEF”/>
<mx:LinkButton label=”RNCEL” width=”147″ color=”#F9EFEF”/>
<mx:LinkButton label=”RSE” width=”147″ color=”#F9EFEF”/>
<mx:LinkButton label=”R” width=”150″ color=”#F9EFEF”/>
<mx:LinkButton label=”REOWS” color=”#F9EFEF” width=”148″/>
</mx:VBox>
<mx:VBox x=”198″ y=”188″ height=”198″ width=”163″ borderStyle=”inset”>
<mx:LinkButton label=”SHAILS” width=”156″ color=”#F9EFEF”/>
<mx:LinkButton label=”EXTAY” color=”#F9EFEF” width=”156″/>
<mx:LinkButton label=”ROMENT” width=”156″ color=”#F9EFEF”/>
<mx:LinkButton label=”ADAYMENT” width=”157″ color=”#F9EFEF”/>
<mx:LinkButton label=”ADEL” width=”157″ color=”#F9EFEF”/>
<mx:LinkButton label=”REUIRY” width=”159″ color=”#F9EFEF”/>
<mx:LinkButton label=”RELEASE” height=”21″ width=”151″ color=”#F9EFEF”/>
</mx:VBox>
<mx:ApplicationControlBar width=”374″ x=”0″ y=”0″>
<mx:Text text=”RESION” width=”284″ fontWeight=”bold” color=”#281317″/>
<mx:Button label=”[]” width=”26″ textAlign=”left”/>
<mx:Button id=”clo” label=”X” width=”31″ click=”close()”/>
</mx:ApplicationControlBar>
</mx:Canvas>
</mx:VBox>
<mx:VBox x=”361″ y=”138″ height=”373″ width=”300″ visible=”false”>
<mx:ApplicationControlBar width=”299″>
<mx:Label text=”RETION” color=”#520921″ fontWeight=”bold”/>
</mx:ApplicationControlBar>
<mx:Canvas width=”295″ height=”334″>
</mx:Canvas>
</mx:VBox>
</mx:Application>
dont bother about the menus . just lookat the format. and also note the time running in task bar .
for downloading
http://www.box.net/shared/k6×7l07fl8