topical media & game development

talk show tell print

lib-flex-ximpel-editor-net-ximpel-components-TreePanel.mx

lib-flex-ximpel-editor-net-ximpel-components-TreePanel.mx (swf ) [ flash ] flex


  <?xml version="1.0" encoding="utf-8"?>
  <!-- 
      This program is free software: you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published by
      the Free Software Foundation, either version 3 of the License.
  
      This program is distributed in the hope that it will be useful,
      but WITHOUT ANY WARRANTY; without even the implied warranty of
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      GNU General Public License for more details.
  
      You should have received a copy of the GNU General Public License
      along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
          Javier Quevedo Fernández 05-2009.
  -->
  <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" 
          width="200" 
          height="300"
          showCloseButton="true"
          creationComplete="init();"
           title="Tree View">
   <mx:XMLList id="treeData">
          <node label="Interactive Video">
              <node label="Subject 1">
                  <node label="Video 1"/>
              </node>
              <node label="Subject 2"/>
              <node label="Subject 3"/>
          </node>    
      </mx:XMLList>
  <mx:VBox width="100%" height="100%">
          <mx:Tree id="myTree" width="100%" height="100%" labelField="@label"
                  showRoot="false" dataProvider="{treeData}"/>
  </mx:VBox>        
          
          <mx:Script>
                  <![CDATA[
                          [bindable]
                          
                          public function init():void
                          {
                          
                          }
                  ]]>
          </mx:Script>
  </mx:TitleWindow>
  


(C) Æliens 18/6/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.