<?xml version="1.0" encoding="utf-8"?>
<tvWindow xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" cornerRadius="7" title="Random Damage" width="550" height="300" borderAlpha="1" layout="absolute" creationComplete="doInit()">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
public var tvMaster:Master;
public var fmTimer:Timer;
public var pcDn:uint = 1;
public function doInit():void {
fmTimer = new Timer(200,100);
fmTimer.addEventListener(TimerEvent.TIMER,doTmr);
fmTimer.addEventListener(TimerEvent.TIMER_COMPLETE,doEnd);
fmTimer.start();
}
public function doTmr(event:TimerEvent):void {
fmt.setProgress(pcDn,100);
pcDn++;
}
public function doEnd(event:TimerEvent):void {
lL.text = "We're Just Joking This Time... Please Don't Do It Again";
lL2.text = "You can now close this window";
tvMaster.fwClosable = true;
}
]]>
</mx:Script>
<mx:ProgressBar x="0" y="106" id="fmt" label="Formating" direction="right" mode="manual" labelPlacement="bottom" width="100%" height="25%" minimum="0" maximum="100"/>
<mx:Label x="0" y="33" text="Please wait while we format your harddrive" fontSize="14" width="100%"/>
<mx:Label x="0" y="192" width="100%" id="lL"/>
<mx:Label x="0" y="218" width="100%" id="lL2"/>
</tvWindow>