topical media & game development

talk show tell print

lib-flex-ximpel-editor-XimpelEditor.mx

lib-flex-ximpel-editor-XimpelEditor.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:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" 
          xmlns:xim="net.ximpel.components.*" horizontalScrollPolicy="off" verticalScrollPolicy="off"
           creationComplete="init();" viewSourceURL="srcview/index.html">
  <mx:Style source="net/ximpel/styles/default.css" />
          <mx:Script>
                  <![CDATA[
                          import net.ximpel.classes.InteractiveVideo;
                          import net.ximpel.components.XmlView;
                          import mx.managers.PopUpManager;
                          public function init():void{
                                  editorView.propertiesPanel = propertiesPanel;
                                  menubar.viewXmlButton.addEventListener(MouseEvent.CLICK, viewXmlClickHandler);
                          }
                          
                          private function loadXmlViewer():void{
                                  var xmlView : XmlView = new XmlView();
                                  
                                  // Delete the "none" subject
                                  var _subjects : Array = editorView.interactiveVideo.subjects.concat();
                                  var _interactiveVideo : InteractiveVideo = new InteractiveVideo();
                                  _subjects.shift();
                                  _interactiveVideo.subjects = _subjects;
                                  //this.addChild(xmlView);
                                  xmlView.interactiveVideo = _interactiveVideo;
                                  PopUpManager.addPopUp(xmlView,this, true);
                          PopUpManager.centerPopUp(xmlView);
  
                          }
                          
                          private function viewXmlClickHandler(event:MouseEvent):void{
                                  this.loadXmlViewer();
                          }
                  ]]>
          </mx:Script>
          <xim:AppMenuBar id="menubar" />
          <mx:VBox y="10" left="5">
                  <xim:SubjectToolPanel editorView="{this.editorView}" />
                  <xim:ToolPanel />
                  <xim:PropertiesPanel id="propertiesPanel" />
          
          </mx:VBox>
          
          <xim:EditorView x="242" y="10" id="editorView">
          </xim:EditorView>
  
  </mx:Application>
  


(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.