zoukankan      html  css  js  c++  java
  • CH03_03.mxml

    Adobe Flash Builder 4.7版本 

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                  xmlns:s="library://ns.adobe.com/flex/spark" 
                  xmlns:mx="library://ns.adobe.com/flex/mx">
             
      <fx:Script>
        <![CDATA[
          import mx.controls.Alert;
          public function displayMe(input1:String):void
          {
            Alert.show(input1);
          }
        ]]>
      </fx:Script>
      
      <s:Group>
        <s:layout>
          <s:VerticalLayout/>
        </s:layout>
        <s:TextInput id="thisTextInput" text="try this"/>
        <s:Button label="Display It" click="displayMe(thisTextInput.text)"/>
      </s:Group>
    </s:Application>

    Amethyst (Visual Studio  For Flex) 

    Application.mxml

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application height="600" width="800"
            xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark"
            xmlns:mx="library://ns.adobe.com/flex/mx">
      <fx:Script source="FlexApplication2.designer.as"/>
        <mx:Panel id="Panel1" height="361" width="291" layout="absolute" x="338" y="80" name="Panel">
        <mx:TextInput id="thisTextInput" height="22" width="160" x="62" y="46" name="TextInput" text="try this"/>
        <mx:Button id="me" height="22" width="156" label="Display It" x="62" y="86" name="Button" labelPlacement="top" click="me_click(event)"/>
        </mx:Panel>
    </s:Application>

    Application.designer.as

    //
    // Amethyst Designer file for FlexApplication2.mxml
    //
    import flash.accessibility.*;
    import flash.debugger.*;
    import flash.display.*;
    import flash.errors.*;
    import flash.events.*;
    import flash.external.*;
    import flash.filters.*;
    import flash.geom.*;
    import flash.media.*;
    import flash.net.*;
    import flash.printing.*;
    import flash.profiler.*;
    import flash.system.*;
    import flash.text.*;
    import flash.ui.*;
    import flash.utils.*;
    import flash.xml.*;
    import mx.events.*;
    import mx.controls.Alert;
    
    
    
    [AmethystDelegate("displayMe")]
    private function displayMe (input1:String):void {
        Alert.show(input1);
    }
    
    [AmethystDelegate("me_click")]
    private function me_click (event:flash.events.MouseEvent):void {
        displayMe(this.thisTextInput.text);
    }
  • 相关阅读:
    程序员的7中武器
    需要强化的知识
    微软中国联合小i推出MSN群Beta 不需任何插件
    XML Notepad 2006 v2.0
    Sandcastle August 2006 Community Technology Preview
    [推荐] TechNet 广播 SQL Server 2000完结篇
    《太空帝国 4》(Space Empires IV)以及 xxMod 英文版 中文版 TDM Mod 英文版 中文版
    IronPython 1.0 RC2 更新 1.0.60816
    Microsoft .NET Framework 3.0 RC1
    《Oracle Developer Suite 10g》(Oracle Developer Suite 10g)V10.1.2.0.2
  • 原文地址:https://www.cnblogs.com/ffmpeg/p/4363682.html
Copyright © 2011-2022 走看看