Flex easingFunction
<?xml version="1.0" encoding="utf-8"?>
<Application xmlns="http://www.adobe.com/2006/mxml"
backgroundGradientColors="[0x000000,0x000000]"
themeColor="#222222"
horizontalAlign="left"
paddingLeft="10" paddingRight="10"
creationComplete="genData();"
viewSourceURL="srcview/index.html">
<Metadata>
[SWF(backgroundColor="0x000000")]
</Metadata>
<Style>
.panelStyle
{
color: #cccccc;
}
</Style>
<Script>
<!--[CDATA[
import mx.effects.easing.*;
[Bindable] public var easingFunctions:Array = [
{label: "Bounce", easingClass: Bounce},
{label: "Back", easingClass: Back},
{label: "Circular", easingClass: Circular},
{label: "Cubic", easingClass: Cubic},
{label: "Elastic", easingClass: Elastic},
{label: "Exponential", easingClass: Exponential},
{label: "Linear", easingClass: Linear},
{label: "Quadratic", easingClass: Quadratic},
{label: "Quartic", easingClass: Quartic},
{label: "Quintic", easingClass: Quintic},
{label: "Sine", easingClass: Sine}
];
[Bindable] public var dataSet:Array;
private function genData():void
{
var newData:Array = [];
var A:Number = Math.random()*100 - 50;
var B:Number = A - Math.random() * 10;
var P:Number = Math.random()*100;
for(var i:int = 0; i < 20; i++)
{
A = A + Math.random() * 10 - 5;
B = A - Math.random() * 10;
P = Math.random() * 100;
newData.push(
{
A: A,
B: B,
P: P
}
);
}
dataSet = newData;
}
]]-->
</Script>
<ApplicationControlBar width="100%" dock="true" fillAlphas="[1,1]" fillColors="[0x000000,0x222222]">
<ToggleButtonBar id="easingFunction" dataProvider="{easingFunctions}" width="100%"/>
<RadioButtonGroup id="easeType"/>
<RadioButton groupName="easeType" label="Ease Out" value="easeOut" color="#bbbbbb" textRollOverColor="#eeeeee" textSelectedColor="#bbbbbb" selected="true"/>
<
Ïà¹ØÎĵµ£º
Flex×îÇ¿´óµÄÌØÐÔÖ®Ò»¾ÍÊÇËüÔÚ±êÇ©ºÍ
ActionScriptÀàÖ®¼ä´´½¨ÁËÒ»¸ö¼òµ¥µÄÓ³Éä¡£ÕâÊÇÒ»¸ö¼òµ¥µÄ¸ÅÄµ«ÊÇÎÒ¶à´Î·¢ÏÖ²»¶®FlexµÄÈ˶ÔÕâµãÊÇÈçºÎ¹¤×÷µÄ»òÕß‘ËüΪʲôÓÐÓÃ’Àí½â
ÆðÀ´ÓÐÀ§ÄÑ¡£
¶ÔÄÇЩѧϰFlexµÄÐÂÊÖ£¬ÕâÀïÓÐһЩ¹æÔòÒÔ¼°
һЩ¼òµ¥µÄÀý×ÓÈÃÄãÃÇÒÔ´Ë¿ªÊ¼Ñ§Ï°Õâ¸öÌØÐÔ¡£
Àý×Ó 1 —— ......
µÚÎåÕ FlexʹÓÃÐÐΪ
Adobe FlexÐÐΪʹÄã¿ÉÒÔΪӦÓóÌÐòÌí¼Ó¶¯»ºÍÔ˶¯£¬À´¶ÔÓû§ºÍ±à³Ì»î¶¯×÷³ö·´Ó¦¡£ÐÐΪ£¬ÊÇÓÉÒ»¸ö´¥·¢Æ÷ºÍÒ»ÖÖЧ¹û×éºÏ¶ø³É¡£´¥·¢Æ÷ÊÇÒ»Öֻ£¬ÈçÊó±êÔÚ×é¼þÉϵã»÷£¬×é¼þ»ñµÃ½¹µã£¬»ò×é¼þ¿É¼û¡£Ð§¹ûÊÇÔÚÄ¿±ê×é¼þÉϵĿÉÊÓÐÔ»ò¿ÉÌýÐÔÉϵÄijÖֱ仯£¬ÒÔºÁÃë¼ÆË㡣Ч¹ûµÄÀý×Ó°üÀ¨µ³ö£¬³ß´ç±ä»¯£¬»òÕß×é¼þ· ......
var formatter:DateFormatter = new DateFormatter();
formatter.formatString = "YYYY-MM-DD JJ:NN:SS";
Alert.show(formatter.format(new Date())); ......
1. ¿ª·¢¹¤¾ß £º MyEclipse5.5, FlexBuilder3, Tomcat6.
2. ¿ª·¢¹ý³Ì £º
µÚÒ»²½ £º ÏÂÔØBlazeDS, µØÖ·£ºhttp://opensource.adobe.com/wiki/display/blazeds/Release+Builds, ½âѹËõ¡£
µÚ¶þ²½ £º ÔÚMyEclipseÖÐн¨WEB¹¤³Ì£¬µ¼ÈëÒÀÀµ¿â£º
  ......
ÔÚFlexÖУ¬ÀûÓÃstate½øÐÐ״̬ºÍÒ³ÃæµÄǨÒÆÓë±ä»»£¬ÖмäµÄAddChild IOverrideÓÐÒ»¸öcreationPolicy£¬Õâ¸öÊôÐÔÓÐÈýÖÖÉèÖ㬷ֱðÈçÏ£º
AUTO£ºÄ¬ÈÏÉèÖã¬Ö»ÓÐÔÚ״̬¸Ä±äµÄʱºò£¬¼´Ê±µÄÉú³ÉÐÂÔö×é¼þ£»
ALL£ºÔÚApplication¼ÓÔصÄʱºò£¬¾Í¼ÓÔØÁËÐÂÔöµÄ×é¼þ£¬ÔÚ״̬¸Ä±äµÄʱºòÏÔʾ£»
NONE£ºÐèÒªÊÖ¶¯µÄµ÷ÓøÃaddChild Instance c ......