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

Flex ¼ÆËãStringµÄ¿í¶È

ӦΪÉè¼ÆÒªÇó, ÎÒÐèÒª¼ÆËãStringµÄ¿í¶È,
ËÑË÷ÁËÏÂÍøÉϵÄÎÄÕÂ, ¿´µ½ÓÐÓÃmeasureText(string)µÄ,
¿ÉÊÇÓÃÁËÏ·¢ÏÖ, Õâ¸öfunctionµÃµ½µÄstring´óС, ²»»á¸ù¾Ý×ÖÌåµÄ´óС, ´ÖºÚµÄ±ä»¯,
ʼÖÕ·µ»Øͬһ¸öÖµ, Ò²ÐíÊÇÎÒµÄÓ÷¨²»¶Ô, ×îºóÎÒûÓÐÕâ¸ö·½·¨,
¸ÄÓÃÁËÁíÍâÒ»¸ö·½·¨:
private function getTextWidth():int
{
     var lb:Label = new Label();
     lb.regenerateStyleCache( false );
     var textMetrics:TextLineMetrics = lb.measureText( label );
     var textWidth:int = textMetrics.width;
     return textWidth;
}
Èç¹û²»ÐÐ, È·¶¨ maxDisplayedLines="1"


Ïà¹ØÎĵµ£º

ÓÃFlexµ÷ÓÃSWF²é¿´PDF

  ÓÐʱºòһЩ×ÊÁÏÖ»Äܸø±ðÈË¿´£¬Èç¿É´òÓ¡µÄÎĵµÈçDOC£¬PDF£¬µ«²»ÄÜÈÃÆäËûÎÞȨÏÞµÄÈËÁí´æ»òÕß´òÓ¡£¬ÌرðÊÇweb°æµÄÎļþ¹ÜÀíÀàµÄϵͳ£¬×ܻῼÂǵ½Õâ¸öÎÊÌâ¡£µ±ÓÃIEÖ±½Ó´ò¿ªpdfµÄʱºò£¬¾¡¹Ü¿ÉÒÔÆ£±ÖIEµÄÁí´æΪ£¬µ«Êǵã»÷PDFÎļþµÄʱºò£¬ÔÙ°´F8µÄʱºò£¬PDFµÄÔĶÁÆ÷È磨adobereader£©»áÏÔʾToolsBar£¬ËùÒÔÖ±½Ó´ò¿ªpdfòËÆÐв ......

Flex Accordion headerRendererʵÏÖchildÊÕËõ

 ÓÃAccordion×é¼þµÄʱºò·¢ÏÖ,childÕ¹¿ªÖ®ºóÔÙµã»÷µÄʱºòûÓÐÏàÓ¦.
È»ºóÏ°¹ßÐÔµÄGoogle·¢ÏÖ½â¾ö·½·¨´óÖÂÊÇ×Ô¶¨ÒåÒ»¸ö×é¼þ...
¸Ð¾õΪÁËÒ»¸öС¹¦ÄÜÖØдÓеã ɱ¼¦ÓÃÅ£µ¶µÄ¸Ð¾õ.
ÓÚÊÇ×ÐϸÏëÁËÏÂ,·¢ÏÖÆäʵֻÐèÒªÖ¸¶¨headerµÄitemRenderer¼´¿É:
ÉÏ´úÂë headerRenderer="com.MyAccHeader"
MyAccHeader:
package com
{ ......

ÈçºÎÔÚFlex »ò ActionScriptÖдò¿ªWORD Doc

Adobe Flash Builder 4 ¼òÌåÖÐÎÄÕýʽ°æ ÏÂÔØ:
http://subject.csdn.net/adobedownload/index.html
ʹÓÃÏà¹ØµÄÓò£¬ÀûÓÃAdobe Livecycle Designer´´½¨Ò»¸öPDFÄ£×飬ÒÔXML½ÚµÄÃû³Æ£¨ÓëPDFÄ£×éÖеÄÓòµÄÃû³ÆÆ¥Å䣩ÏòPDFÔ¶³Ì¶ÔÏó·¢ËÍXMLÊý¾Ý£¬È»ºóÄúµÄFlexÓ¦ÓóÌÐò¾Í»á´ò¿ªPDF, »ò½«PDFÎļþ·ÅÈëÄúµÄwebserv ......

Flex Óë java ͨѶ ¡¾×ª¡¿

    2.2 ´úÂëʵÏÖ
      ÏÂÃæ¸ø³öÁËFlexBuilder¹¤³ÌµÄÒ»¸öÎļþ£¬ÉèÖÃÁËFlashµÄ²¼¾Ö¡£
     view plaincopy to clipboardprint?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
......

Flex Óë servlet ͨÐÅ ¡¾xml¡¿

String userId = request.getParameter("userId");
System.out.println(userId);
response.setCharacterEncoding("UTF-8");
//response.getWriter().println("hello world -- ÎÒ°®Äã¡£¡£¡£");
String xml = "<user>" +
"<username>Ìθç</username>" +
"</user>";
respon ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ