<?xml version="1.0" encoding="utf-8"?> <!-- Copyright 2008 Christopher Olsen <cwolsen@domainatlantic.com> $Id$ --> <tvWindow xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="absolute" cornerRadius="7" title="Quick Tips" width="480" height="156" creationComplete="doInit()" borderThicknessLeft="0" borderThicknessRight="0" borderThicknessTop="0" borderThicknessBottom="0"> <mx:Script> <![CDATA[ public var tvMaster:Master; private var tips:Array = new Array( "/nick NewNick Will change your nickname.", "/list Will show you all the current channels and current videos.", "If you know any Unicorns, send them our way.", "Double clicking on someone or /msg someone msg, Will start an IM with them.", "Pop-up windows can be moved or closed via the title bar.", "When girls are around, always have an altoid.", "Clicking on the bracketed text in the chat window will bring up more info about the artist.", "You can change your nick by doing /nick YourNewNick", "/tips will bring this window up again." ); private var curTip:Number; private function doInit():void { if (tvMaster.tvSO.data.quickTips == 1) dns.selected = true; if (tvMaster.tvSO.data.quickTipsCur != null) { curTip = Number(tvMaster.tvSO.data.quickTipsCur); } else curTip = 0; cTip.text = "Tip " + (curTip + 1)+ ": " + tips[curTip]; } private function doNext():void { curTip++; if (curTip < tips.length) { tvMaster.tvSO.data.quickTipsCur = curTip; } else { curTip = 0; tvMaster.tvSO.data.quickTipsCur = curTip; } cTip.text = "Tip " + (curTip + 1) + ": " + tips[curTip]; } private function doPrev():void { curTip--; if (curTip >= 0) { tvMaster.tvSO.data.quickTipsCur = curTip; } else { curTip = tips.length - 1; tvMaster.tvSO.data.quickTipsCur = curTip; } cTip.text = "Tip " + (curTip + 1) + ": " + tips[curTip]; } private function doClick():void { if (dns.selected == true) tvMaster.tvSO.data.quickTips = "1"; else tvMaster.tvSO.data.quickTips = "0"; } ]]> </mx:Script> <mx:TextArea id="cTip" x="10" y="10" width="460" fontSize="14" editable="false" wordWrap="true" borderThickness="0"/> <mx:CheckBox id="dns" y="96" x="10" label="Don't Display In The Future" click="doClick()" /> <mx:Button x="149.5" y="66" label="<- Previous" width="100" labelPlacement="left" paddingRight="0" paddingLeft="0" click="doPrev()" /> <mx:Button x="250.5" y="66" label="Next ->" width="100" paddingRight="0" paddingLeft="0" click="doNext()" /> </tvWindow>