zoukankan      html  css  js  c++  java
  • CH03_02.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 moodCheck():void
          {
            switch(myMood.text)
            {
              case 'happy': 
                Alert.show("Life is good isn't it?");
                break;                                                      
              case 'sad': 
                Alert.show("Some Prozac will cheer you up!");
                break;
              default:                                              
                Alert.show("Neither here nor there eh?");
            }
          }
        ]]>
      </fx:Script>
      
      <s:Group>
        <s:layout>
          <s:VerticalLayout/>
        </s:layout>
        <mx:TextInput id="myMood"/>
        <mx:Button label="Check your mood" click="moodCheck()"/>
      </s:Group>
    </s:Application>
  • 相关阅读:
    本周总结
    本周总结
    第四周自我总结
    结对编程
    第四周自我总结
    第三周自我总结
    本周工作安排及内容
    知识思考
    交作业。。。
    MSF过程模型
  • 原文地址:https://www.cnblogs.com/ffmpeg/p/4363625.html
Copyright © 2011-2022 走看看