Newer
Older
SuperTUve / registerWindow.mxml
@reddawg reddawg on 6 Jan 2008 1 KB Added Channel Registration
<?xml version="1.0" encoding="utf-8"?>
<tvWindow xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="absolute" cornerRadius="7" title="Register Channel" width="594" height="384" horizontalScrollPolicy="off" verticalScrollPolicy="off">
  <mx:Script>
  <![CDATA[
	import mx.controls.Alert;

	[Bindable]
	public var tvMaster:Master;
      
    public function registerChan():void {
      var chanInfo:Object = new Object();
      
      chanInfo.channel     = rChannel.text;
      chanInfo.description = rDescription.text;
      chanInfo.username    = tvMaster.userInfo[0].username;
      
      tvMaster.gateway.call("tuve.chanReg",new Responder(null,tvMaster.onFault),chanInfo);
      Alert.show("Your request has been accepted, you will receive notice upon approval.");
      tvMaster.tuveCloseRW(null);
      }
  ]]>
  </mx:Script>
  <mx:Label x="10" y="10" text="Channel:" fontWeight="bold" fontSize="12"/>
  <mx:TextInput id="rChannel" x="113" y="10" width="451" />
  <mx:Button id="sndBtn" x="19" y="312" label="Submit" click="registerChan();" />
  <mx:Label x="10" y="38" text="Description:" fontWeight="bold" fontSize="12"/>
  <mx:TextArea id="rDescription" x="113" y="39" width="451" height="253"/>
</tvWindow>