Newer
Older
ubChattin / src / infoWindow.mxml
@reddawg reddawg on 7 Feb 2008 2 KB Completely Restyled
<?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="Information:" width="450" height="450" creationComplete="focusManager.setFocus(npBio);" borderThicknessBottom="0" borderThicknessLeft="0" borderThicknessRight="0" borderThicknessTop="0" horizontalScrollPolicy="off" verticalScrollPolicy="off">
  <mx:Script>
  <![CDATA[
    import mx.collections.ArrayCollection;
    
    public var tvMaster:Master;
    
    public function getInfo(vid:Number):void {
      tvMaster.gateway.call("tuve.getFullInfo",new Responder(getInfoRes,tvMaster.onFault),vid);
      }

     public function getInfoRes(result:Array):void {
      var tmpCollection:ArrayCollection;
      if (result != null) {
      	tmpCollection = new ArrayCollection(result);
      	npThumb.source = "http://www.ubixonline.com/images/" + tmpCollection[0].thumb;
      	npArtist.text = tmpCollection[0].artist;
      	npTitle.text = tmpCollection[0].title;
      	npDescription.htmlText = tmpCollection[0].description;
      	if (tmpCollection[0].bio != null)
      	  npBio.htmlText = tmpCollection[0].bio;
        }
      } 
  ]]>
  </mx:Script>

  <mx:Image id="npThumb" source="http://www.ubixonline.com/images/none.gif" width="65" height="65" scaleContent="true" x="10" y="10"/>
  <mx:Label text="Artist: "  x="118" y="10" fontWeight="bold" color="#000000"/>
  <mx:Label id="npArtist"  x="168" y="10" width="350" text="NA" />
  <mx:Label text="Title:"  x="118" y="36" color="#000000" fontWeight="bold"/>
  <mx:Label id="npTitle"  x="168" y="36" width="350" text="NA"/>
  <mx:HRule x="10" y="83" width="430"/>
  <mx:Label x="10" y="85" text="Biography:" fontWeight="bold" fontSize="10"/>
  <mx:TextArea x="10" y="100" width="430" height="150" id="npBio" focusAlpha="0"  editable="false" wordWrap="true" borderThickness="0"/>
  <mx:HRule x="10" y="252" width="430"/>
  <mx:Label x="10" y="254" text="Description:" fontWeight="bold" fontSize="10"/>
  <mx:TextArea x="10" y="270" id="npDescription"  width="430" height="150" focusAlpha="0" wordWrap="true" editable="false" borderThickness="0"/>
</tvWindow>