Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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


Ïà¹ØÎĵµ£º

FlexÓëJavascript»¥ÏàͨÐÅ

FlexÓëJavascript»¥ÏàͨÐÅ¡£
ÔÚFlexÖÐÓÐÕâôһ¸öÀࣺExternalInterface.ÔÚÕâ¸öÀàÖÐËü¸øÎÒÃÇ£ºcallºÍaddCallback
FlexÖÐAsµ÷ÓÃJsµÄ·½·¨ÊÇ£º
     1¡¢µ¼Èë°ü £¨import flash.external.ExternalInterface;£©
     2¡¢Ê¹ÓÃExternalInterface.call("Jsº¯ÊýÃû³Æ",²ÎÊý)½øÐе÷Óã¬Æä· ......

FABridge½Ì³Ì(Flex+Ajax) 2

ʹÓÃjsÀ´²Ù×÷flex
Ê×ÏÈÔÚfademo.mxmlÖÐÉùÃ÷Ò»¸öbutton£¬²¢Ìí¼ÓÒ»¸öbtnClick·½·¨£º
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="l ......

Flex no.2

--------------ex2_01_solution  ѡȡʱ¼ä-----------------------
 ...
   private function dateChangeHandler():void
   {
    // The Alert.show() message displays a static string plus the selected date in the startDate control
   ......

flexÖУ¬´ø×îС»¯£¬×î´ó»¯£¬¹Ø±ÕµÄPanel

package
{
import mx.containers.Panel;
import mx.controls.Button;
import flash.events.Event;
import mx.events.FlexEvent;
import flash.events.MouseEvent;
import mx.controls.Alert;
/**
* This class is used to create a Custom Panel
* with Maximum, Minimum, close
* and also drag p ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ