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

flex ÅÜÂíµÆÐ§¹û

×Ô¶¨ÒåÀà(BroadCastMarquee.as)£º
package marquee
{
    import flash.events.MouseEvent;
    import flash.events.TimerEvent;
    import flash.geom.Rectangle;
    import flash.text.TextField;
    import flash.text.TextFieldAutoSize;
    import flash.text.TextFormat;
    import flash.utils.Timer;
   
    import mx.core.UIComponent;
   
    /**
    * 
      * ÐÅÏ¢¹ö¶¯ÏÔʾ(ÅÜÂíµÆ¿Ø¼þ)
      * @version
    * <pre>
    * Ð޸İ汾: 1.0.0
    * ÐÞ¸ÄÈÕÆÚ£º2009-1-15
    * ÐÞ¸ÄÈË : zhang
    * ÐÞ¸Ä˵Ã÷£ºÐγɳõʼ°æ±¾
    *</pre> 
       * 
    * * ¹¦ÄÜ£º
    * 1.Ö±½Ó½«Ä³TextFieldת»»ÎªÅÜÂíµÆÎı¾ changeTextFieldToMarqueeText 
    * 2.¶¯Ì¬É趨ÏÔʾ¿í¶È width
    * 3.¶¯Ì¬É趨һ´ÎÒÆ¶¯¼ä¸ôʱ¼ä delay
    * 4.¶¯Ì¬É趨һ´ÎÒÆ¶¯¼ä¸ô¾àÀë step
    * 5.É趨ĬÈÏÎı¾ÏÔʾÑùʽ defaultTextFormat
    * 6.¶¯Ì¬É趨Îı¾ÏÔʾÑùʽ setTextFormat
    * */ 
    public class BroadCastMarquee extends UIComponent 
      { 
        
          [Bindable] 
           private var broadcastText:String="broadcast message"; 
       
           private var m_timer:Timer; 
       
           p


Ïà¹ØÎĵµ£º

Flex TypeError: Error #1034: ÀàÐÍת»»Ê§°Ü

TypeError: Error #1034: 強ÖÆÐÍ変換¤Ëʧ敗¤·¤Þ¤·¤¿¡£jp.co.nec.necst.pi.ap2web::TestEvent@1645ee79 ¤ò jp.co.nec.necst.pi.ap2web.TestEvent ¤Ë変換¤Ç¤­¤Þ¤»¤ó¡£
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispat ......

FlexʹÓõ¯³ö´°¿ÚΪDataGridÌí¼ÓÐÂÊý¾Ý

¾­³£ÔÚDemoÖлῴµ½ÁÐ±í£¬±í¸ñµÈ·½Ê½À´ÏÔʾÊý¾Ý¡£µ±È»ÓÐʱºòÒ²ÐèÒªÌí¼ÓÊý¾Ýµ½ÕâЩÁбí»òÕß±í¸ñÖС£Óкܶ෽ʽÌá½»£¬ÕâÀïչʾһ¸öµ¯³ö´°¿ÚµÄ·½Ê½À´Ìí¼ÓеÄÊý¾Ýµ½DataGridÖС£
Àý×Óչʾ£º

Ê×ÏÈ£¬ÎÒÃÇ¿ªÊ¼½¨ÉèÒ»¸ö»ù±¾µÄ½çÃæ½á¹¹£¬Ò»¸ö´øÓС°Notes"±êÌâµÄPanel,Ò»¸öDataGrid£¬ÒÔ¼°Ò»¸öÓÃÓÚÌá½»Êý¾ÝµÄ°´Å¥¡£
Xml´úÂë
& ......

¹ØÓÚflexµÄcrossdomain.xmlÎļþ´æ·ÅĿ¼

       ×î½üÔÚÏîÄ¿ÖÐÓöµ½flex¿çÓò·ÃÎʵݲȫɳÏäÎÊÌ⣬²é×ÊÁÏÁ˽⵽ÐèÒªÔÚ·þÎñ¶Ë¼ÓÉÏcrossdomain.xmlÎļþ£¬¼´£º
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-do ......

flex traceÎÞ·¨Ê¹ÓÃ


½â¾öʹÓÃFlex  ÎÞ·¨Ê¹ÓÃtraceµÄÎÊÌâ
³öÏÖÁËʹÓÃDebug¹¦ÄܳöÏÖÁËÎÞ·¨Ê¹ÓÃtraceµÄÎÊÌâ
Õâ¸öÎÊÌâ˵Ã÷ÄãµÄFlash Player 10 ²»Êǵ÷ÊÔ°æ±¾
ÌṩһÏÂAdobe Flas Player 10µ÷ÊÔ°æ±¾µÄµØÖ·....
Ï£ÍûÄܶԴó¼ÒÓаïÖú
http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_10_ax_debug.exe
......

FlexÖ÷Ìâ

FlexÖ§³ÖµÄÑùʽÉèÖ÷½Ê½
1.Ö±½ÓʹÓÃCSSÎļþ,ϵͳĬÈÏʹÓÃdefault.css
<mx:Style source=“style.css”/>
2.ʹÓÃ<mx:Style>±êÇ©
3.ʹÓÃstyleÉè¼ÆÆ÷£¨->MXML£©
4.ʹÓöÔÏóµÄgetStyle( )ºÍsetStyle( )
5.ʹÓÃStyleManagerÀà
Ö÷ÌâÊÇÒ»Ì×ÅäÖÃÍê³ÉµÄÑùʽ·ç¸ñ
FlexÌṩµÄ¼¸ÖÖÖ÷Ì⣬ÎļþÀàÐÍ.swc ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ