Flex 4 DropDownList
Flex 4 DropDownList:
<?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate the Spark DropDownList control -->
<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.collections.ArrayCollection;
import spark.events.IndexChangeEvent;
[Bindable]
public var myDP:ArrayCollection = new ArrayCollection(
[ {product:"Flex", price:100},
{product:"Air", price:200},
{product:"Catalyst", price:300},
{product:"FlashBuilder", price:400} ]);
private function updateSelection(e:IndexChangeEvent):void
{
currSel.text = "Current Product = " + myDDL.selectedItem.product;
currPrc.text = "Price = $" + myDDL.selectedItem.price;
}
]]>
</fx:Script>
<s:Panel width="75%" height="75%" title="My DropDownList Example"
horizontalCenter="0" verticalCenter="0">
<s:VGroup left="10" right="10" top="10" bottom="10">
<!-- Text components used to display current selection and price -->
<s:Label id="currSel" text="Current Product = -"/>
<s:Label id="currPrc" text="Price = $ -"/>
<!-- DropDownList will call the updateSelection function when the
selectionChanged event is dispatched -->
<s:DropDownList id="myDDL" prompt="Select One"
width="200" dataProvider="{myDP}"
labelField="product"
change="updateSelection(event);"/>
</s:VGroup>
</s:Panel>
</s:Application>
DropDownList ¶¯Ì¬¶¨Î»
´ÓremoteÈ¡»ØÊý¾Ýºó£¬¶¯Ì¬¶¨Î»µ½
<?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate the Spark DropDownList control -->
<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"
Ïà¹ØÎĵµ£º
commpent
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="initApp()" backgroundDisabledColor="#EEC6C6"
bord ......
ǰÑÔ
Undo£¬RedoÊDZ༻·¾³Àï³£¼ûµÄ²¢Çҷdz£ÖØÒªµÄ¹¦ÄÜ£¬ÏÂÃæ½éÉÜ¡¾ÃüÁîģʽ¡¿ÔÚFlex/AS3ϵÄʵÏÖ¡£
ICommand½Ó¿Ú
¶¨ÒåICommand½Ó¿Ú£¬ÆäÖÐExecuteºÍUnExecuteÊÇÏà·´µÄ2¸ö²Ù×÷£¬TitleÊôÐÔÓÃÓÚÃüÁîÏÔʾ£¬ÀýÈçÏÔʾÔÚ²Ù×÷ÀúÊ·ÁбíÀï¡£
package cwn.wb.ui.core.command
{
import cwn.core.IDi ......
¶Ôflex datagrid scrollbarλÖÃÉèÖÃÐèÒªÒ»Ð©ÌØÊâ´¦Àí£¬¼ûÈçϽØÍ¼£º
¹Ø¼üµãÔÚÓÚDataGridÓµÓÐprotectedµÄ horizontalScrollBar ºÍ verticalScrollBar ÊôÐÔ£¬¶ÔÆäÉèÖü´¿ÉʵÏÖÈçÉϽØÍ¼µÄЧ¹û¡£´úÂëÈçÏ£º package com.util.component
{
import mx.controls.DataGrid;
import mx.events.DataGridEvent;
import mx ......
ÔÚ×Ö·û´®×ª»»ÎªintÀàÐͱØÐëʹÓà ×îºÃÈçÏ£º
var a:int=int(str);
ÉÏÃæ×ª»»Èç¹û²ÉÓÃÈçÏÂÇ¿ÖÆ×ª»»Ôò
var a:int =str as int;
µÃµ½Êý¾ÝΪ0 Ϊ´íÎóÊý¾Ý¡£
ÔÚÏîÄ¿ÖÐÁ½¸öintÏà¼Ó½á¹û³¬¹ýÒ»¸öintµÄ·¶Î§Ê±³öÏÖ´íÎó£¡
¾¹ý×Ô¼ºbug²éÕÒµ½´íÎóÔÒòÊÇÒòΪintÊý¾ÝÀàÐÍ·¶Î§Ì«Ð¡°Â£¡Ö»ºÃ¸ÄΪNumberÀàÐÍ¡£½á¹û²ÅÕýÈ·£¡ÔÎËÀ£¡
Ô ......
ÔÎĵØÖ·:
http://www.gridlinked.info/how-to-encrypt-flex-rsls/
ÕâÀï½ØÈ¡²¢³¢ÊÔ·ÒëÁËÒ»¶ÎFLEX³ÌÐò³õʼ»¯¼°´Ë½âÃܹý³Ì.
Ó¦ÓÃÆô¶¯¹ý³Ì:
1. Ê×ÏÈ, ΪµÚ1Ö¡¼ÓÔØ×ã¹»µÄÊý¾Ý.
2. Flash Playerͨ¹ý´´½¨SystemManagerʵÀýÖ´ÐмÓÔØÊý¾Ý.
3. SystemManagerÃüÁîFlash PlayerÍ£Ö¹ÔÚµÚÒ»Ö¡.
4. SystemManager´´½¨Preloader,
......