FLEX no.4
-----------------ex4_01_solution------------------Creating an event and dispatching the event object
<s:Application ...
creationComplete="employeeService.send()">
»á´¥·¢£º
<!-- Declarations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<fx:Declarations>
<s:HTTPService id="employeeService"
url="data/employees.xml"
result="employeeService_resultHandler(event)" />
</fx:Declarations>
protected function employeeService_resultHandler(event:ResultEvent):void
{
employeeData = event.result.employees.employee;
}
UI×é¼þ£º
<s:HGroup gap="30">
<components:Choose id="chooseEmployee"
employeeData="{employeeData}"
x="30" y="90"
showPreview="chooseEmployee_showPreviewHandler(event)"/>
<components:Preview id="previewEmployeeOfTheMonth"
title="Employee of the Month"
&
Ïà¹ØÎĵµ£º
<?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate the DateTimeAxis class. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
import mx.collections.ArrayCollection;
......
Flex Java Object¶ÔÓ¦¹ØÏµ
ĿǰLCDSÖ»ÄÜÓëJ2EEµÄ·þÎñ¶Ë½øÐÐͨÐÅ£¬ËùÒÔĿǰֻÊÇActionScript 3.0Êý¾ÝÀàÐͺÍJavaÊý¾ÝÀàÐ͵Äת»»¡£ActionScript 3.0ÓëJavaÊý¾ÝÀàÐÍת»»ÊDz»¶Ô³ÆµÄ¡£
ActionScript3.0ÏòJavaת»»Ê±Êý¾ÝÀàÐ͵ĶÔÓ¦¹ØÏµ
ActionScriptÊý¾ÝÀàÐÍ -------------------JavaÊý¾ÝÀàÐÍ
null -------------------null ......
--------------ex2_01_solution ѡȡʱ¼ä-----------------------
...
private function dateChangeHandler():void
{
// The Alert.show() message displays a static string plus the selected date in the startDate control
......
MyEclipse6.5ÓëFlex Builder 3ÕûºÏ°²×°·½·¨
×î½üÏëѧϰÏÖÔÚ×îÈÈÃŵĸ»¿Í»§¶Ë¼¼Êõflex£¬ÓÚÊÇÏÂÔØÁËFlex Builder 3.0 For Eclipse plugin(FB3_WWEJ_Plugin.exe)×¼±¸°²×°.µ«Êǰ²×°ºóÆô¶¯Eclipse,ÕÒÁ˰ëÌìҲûÕÒµ½Flex.¶øÇÒFlex Builder»á°ÑJREÒ²°²×°.¾õµÃÕâÑùºÜ²»Êæ·þ. ËùÒÔÎÒ×Ô¼ºÏëÁËÒ»¸ö°ì·¨£¬ÓÃMyEclispe6.5ÓëFlex Builder ......
¸ÅÊö
ÓÎÏ·¿ª·¢ÊǸöºÜ´óµÄ¿ÎÌ⣬¸ÃϵÁÐÖ»¼òµ¥½²ÊöÈçºÎʹÓÃFlex¼¼Êõƽ̨´î½¨Ò»¸ö¼òµ¥µÄÓÎÏ·¿ò¼Ü£¬ÈçºÎÉè¼ÆÄÜÓÅ»¯ÓÎÏ·µÄCPUÕ¼Óã¬ÄÚ´æµÈ£¬×îºóÖÆ×÷Ò»¸öÍêÕûµÄFlexСÓÎÏ·(ÌṩԴÂë)¡£
ÓÎÏ·µÄ³ÊÏÖ
·½Ê½1£ºÔª¼þ·½Ê½
ÕâÖÖ·½Ê½±È½ÏÊʺÏСÐ͵ÄÓÎÏ·£¬ÓÎÏ·Ôª¼þÊýÁ¿ÉÙµÄÇé¿ö¡£µ±ÓÎÏ·Ôª¼þÊýÁ¿´óʱ¾Í²»ºÏÊÊÁË£ºÔª¼þ»á¶ÔÓÎϷͼÐΡ¢ÒôÆ ......