積少成多Flash(12)

來源:互聯網
上載者:User

介紹

示範 Flex 3.0 中的驗證控制項的應用,以及各種緩動效果(easing)的 應用

Validator - 各種驗證控制項的基類,其可用於必填驗證

DateValidator - 日期驗證控制項

EmailValidator - Email 驗證控制項

RegExpValidator - Regex驗證控制項

緩動(easing) - 系統內建的動 畫緩動效果,以及自訂緩動效果

加密/解密 - 常用密碼編譯演算法的 AS3 庫的應 用

其他 - 其他一些常用的東西

線上DEMO

http://www.cnblogs.com/webabcd/archive/2009/11/09/1598980.html

1、Validator.mxml

<?xml version="1.0" encoding="utf-8"?><!--    各種驗證控制項的基類 Validator 的 Demo,其可用於必填驗證--><mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="400" height="300"    title="Validator - Validator (其他驗證器的基類,可用於必填驗證)">    <mx:Validator id="validator"        source="{txtInput}" property="text"        required="true" requiredFieldError="請輸入必要欄位"        trigger="{btnSubmit}" triggerEvent="click"    />    <mx:Form>        <mx:FormItem label="必要欄位: ">            <mx:TextInput id="txtInput"/>        </mx:FormItem>        <mx:FormItem >            <mx:Button id="btnSubmit" label="驗證" />        </mx:FormItem>    </mx:Form></mx:Panel>

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.