Changeset 12590 for lang/actionscript
- Timestamp:
- 05/28/08 14:03:44 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/actionscript/IRCShower/trunk/src/IRCShower.mxml
r12525 r12590 12 12 private var connection:IRCConnection; 13 13 14 private function onMyButtonClick():void {14 private function connectServer():void { 15 15 host = new IRCHost(sampleCombo.selectedLabel, 6667); 16 16 connection = host.connect(); 17 17 connection.addEventListener(IRCConnection.MESSAGE_EVENT, onMessage); 18 18 connection.addEventListener(IRCConnection.CONNECT_EVENT, onConnect); 19 19 nicoScreen = new NicoScreen(); 20 20 } … … 28 28 { 29 29 nicoScreen.addText(event.message.getText(), event.message.getColor()); 30 } 31 32 private function onConnect(event:IRCEvent):void 33 { 34 channelName.editable = true; 35 channelButton.enabled = true; 36 serverButton.enabled = false; 30 37 } 31 38 … … 43 50 <mx:ComboBox id="sampleCombo" dataProvider="{comboArray}" /> 44 51 </mx:Panel> 45 <mx:Button label="button" click="onMyButtonClick();" />52 <mx:Button id="serverButton" label="Connect" click="connectServer();" /> 46 53 47 54 <mx:Label id="myLavel" text="ChannelName" /> 48 <mx:TextInput id="channelName" />49 <mx:Button label="button" click="joinChannel();" />55 <mx:TextInput id="channelName" editable="false" /> 56 <mx:Button id="channelButton" label="Join" click="joinChannel();" enabled="false" /> 50 57 </mx:VBox> 51 58 </mx:WindowedApplication>
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)