topical media & game development

talk show tell print

flex-component-receive-porperty.mx

flex-component-receive-porperty.mx [swf] flex


  <?xml version="1.0" encoding="utf-8"?>
  <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()" backgroundGradientColors="[#ffffff, #ffffff]" width="400" height="200">
          <mx:Script>
                  <![CDATA[
                          import flx.external.FlashInterface;
                          import flx.events.FlashInterfaceEvent;
                          
                          private var flaface:FlashInterface;
                          private var swfID:String;
                          private var refID:String;
                          private var swfRefID:String;// = "flash8_subscriber";
  
                          [Embed(source="local/flex/assets/images/flex_icon.png")]
                          [Bindable]
                          public var logo:Class;
                          
                          private function init():void
                          {
                                  FlashInterface.publish(this, true);
                                  FlashInterface.register("output", txtOutput)
                          }
                  ]]>
          </mx:Script>
          <mx:Canvas cornerRadius="8" borderStyle="solid" left="5" right="5" top="5" bottom="5">
                  <mx:TextArea x="10" y="66" width="368" height="112" id="txtOutput" editable="false"/>
                  <mx:Image x="330" y="10" scaleContent="false" source="{logo}" width="48" height="48"/>
                  <mx:Label x="14" y="6" text="Flash 9 - Receive Property" fontWeight="bold" fontStyle="italic" fontSize="16" fontFamily="Arial" color="#cc0000"/>
                  <mx:Label x="14" y="33" text="FlashInterface.register" fontWeight="bold" fontSize="12"/>
          </mx:Canvas>
  </mx:Application>
  


(C) Æliens 27/08/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.