FLEX no.3
--------------ex3_01_solution -----------------------Using text controls
ÔÚǶÌ×µÄEmployeeOfTheMonthÖÐ
<s:Scroller width="100%">
<!-- Use a RichEditableText control -->
<s:RichEditableText text="Congratulations to Brad our Employee of the Month. Brad has been instrumental in planning and overseeing our new wind power unit development. His dedication and infectious enthusiasm has helped to increase our wind-powered sales by 8% throughout the nation and as high as 22% in the Central region."
height="57" width="240"/>
</s:Scroller>
<s:RichEditableTest>¶¨Ò壺RichEditableText is a low-level UIComponent for displaying, scrolling, selecting, and editing richly-formatted text.
<s:TextInput width="250" height="80"
textAlign="left"/>
--------------ex3_02_solution -----------------------Using text layout features
ÔÚǶÌ×µÄCafeteriaÖÐ
<s:Label text="Calorie Information"
fontWeight="bold"
rotation="270"/> <!--ÄæÊ±Õëת270¶È·½Ïò-->
<s:RichText> ¶¨Ò壺RichText is a low-level UIComponent that can display one or more lines of richly-formatted text and embedded images.
È磺
<s:RichText width="100%"
lineHeight="20">
<s:span font
Ïà¹ØÎĵµ£º
package org.openscales.core.format
{
import flash.utils.getQualifiedClassName;
import flash.xml.XMLNode;
import org.openscales.core.Util;
import org.openscales.core.feature.Feature;
import org.openscales.core.geometry.Collection;
import org.openscales.core. ......
FlexÓëJavascript»¥ÏàͨÐÅ¡£
ÔÚFlexÖÐÓÐÕâôһ¸öÀࣺExternalInterface.ÔÚÕâ¸öÀàÖÐËü¸øÎÒÃÇ£ºcallºÍaddCallback
FlexÖÐAsµ÷ÓÃJsµÄ·½·¨ÊÇ£º
1¡¢µ¼Èë°ü £¨import flash.external.ExternalInterface;£©
2¡¢Ê¹ÓÃExternalInterface.call("Jsº¯ÊýÃû³Æ",²ÎÊý)½øÐе÷Óã¬Æä· ......
1£¬Ö±½ÓÉèÖÃÊôÐÔ£º
Ô´´úÂëÈçÏ£º
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns:ri="AAA.test.*" >
<mx:DateChooser dayNames="[ÈÕ,Ò»,¶þ,Èý,ËÄ,Îå,Áù]"
monthNames="[Ò»ÔÂ,¶þÔÂ,ÈýÔÂ,ËÄÔÂ,ÎåÔÂ,ÁùÔÂ,ÆßÔÂ,°ËÔÂ,¾ÅÔÂ,Ê®ÔÂ,ʮһÔÂ,Ê®¶þÔÂ]" />
......
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
......