flex ¹ö¶¯ÌõÎÊÌâ
flex¹ö¶¯ÌõËäÈ»ºÜºÃÓ㬵«×ÜÊÇ»á³öÏÖÒâÏë²»µ½µÄÎÊÌ⡣ǰ¼¸Ìì˵ÁË£¬Í϶¯ºó»¨ÆÁµÄÎÊÌ⣬½ñÌìÓÖ·¢ÏÖÁ˸ü¶ñÐĵÄÎÊÌâ¡£µ±Äã°ÑÈÝÆ÷µÄ¿í¶Èµ÷Ϊ100%ºó £¬verticalScrollbarPolicy ÓÃĬÈϵÄauto¡£ÕâÊÇÈç¹ûÄãËõ·Å´°¿Ú»á³öÏÖ¹ö¶¯Ìõ£¬µ«ÎÊÌâÕâÊǾͳöÏÖÁË£¬Ö»Òª³öÏÖÁË´¹Ö±¹ö¶¯Ìõ£¬Ë®Æ½¹ö¶¯Ìõ¾ÍÊDZ»ÆÈ³öÏÖ¡£
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:local="*">
<mx:Canvas width="100%" height="700"/>
</mx:Application>
ÕâÊÇÊÇÓÉÓÚflexÔÚ¼ÆËãÇ°ÃæµÄ°Ù·Ö±Èʱ£¬°Ñ´¹Ö±¹ö¶¯ÌõµÄ¿í¶ÈÒ²ËãÉÏÁË£¬ÎÒÒ»¿ªÊ¼ÒÔΪÊÇflexµÄbug¡£Ê¹ÆäËûµÄ¹Ù·½ÎĵµÖÐдÁËÒ»¾äºÜ»ªÀöµÄ»°¡£
"Flex considers scroll bars in its sizing calculations only if you explicitly set the scroll policy to ScrollPolicy.ON. So, if you use an auto scroll policy (the default), the scroll bar overlaps the buttons. To prevent this behavior, you can set the height property for the HBox container or allow the HBox container to resize by setting a percentage-based width. Remember that changing the height of the HBox container causes other components in your application to move and resize according to their own sizing rules."
-- from Sizing Components in the Flex 3 help, under "Using Scroll bars"
¾ÍÕâÑù»Ø±ÜÁËÕâ¸öÎÊÌâ¡£µ«Óиö°ì·¨Äã¿ÉÒÔ½â¾öÕâ¸öÎÊÌâ£¬ÖØÔØvalidateSize·½·¨
// In your Application £¬module or wherever you need this workaround.
override public function validateSize(recursive:Boolean = false):void {
super.validateSize(recursive);
if (!initialized) return;
if (height < measuredHeight) verticalScrollPolicy = ScrollPolicy.ON;
else verticalScrollPolicy = ScrollPolicy.OFF;
}
Ïà¹ØÎĵµ£º
»¨ÁËÁ½Ììʱ¼äÔÚÍøÉÏÕÒ×ÊÁϽñÌìÖÕÓÚÊÇŪÆðÀ´ÁË£¡£¡
web.xml £º
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j ......
ÔÎĵØÖ·£ºhttp://www.adobe.com/cn/devnet/flex/articles/itemrenderers_pt5.html
Èç¹ûÄúÒªÏÔʾ´óÁ¿ itemRenderer£ÎÞÂÛÔÚ DataGrid »¹ÊÇÔÚ AdvancedDataGrid ÖУÈç¹ûÎÞ·¨ÓÐЧ±àдÕâЩ itemRenderer, ÄúµÄÓ¦ÓóÌÐòÐÔÄÜ¿ÉÄÜÊܵ½¸ºÃæÓ°Ïì¡£ÒÔÏÂÊÇһЩ¿ÉÄÜÓÐËù°ïÖúµÄÌáʾ:
ÏÞÖÆÊ¹Óà itemRenderer µÄÁÐÊý¡£ÊÇ·ñÕæµÄÐèÒª½«Ã ......
FlexÊÇ RIA(rich internet applications,¼´¸»¿Í»§¶Ë)µÄÒ»ÖÖ¼¼ÊõʵÏÖ,ÏÂÃæÎÒÃǰÑËü¼°ÆäÏà¹ØµÄ֪ʶÓëjava×ö¸ö¼òµ¥µÄ¶ÔÕÕ,ÓÉÓÚ¸öÈËˮƽÓÐÏÞ,ÏÂÃæµÄ±È½Ï½ö¹©²Î¿¼:
1.RIA vs ¿çƽ̨µÄ±à³Ì¼¼Êõ
2.Flex vs java
3.flex framework vs jdk
4.flex buil ......
ÏûÏ¢·þÎñ(Message Service )Ìṩ·¢²¼(publish)/¶©ÔÄ(subscribe)»úÖÆÔÊÐíFlex Ó¦ÓóÌÐò·¢²¼ÏûÏ¢¡¢¶©ÔÄÏûÏ¢ÖÕ¶Ë(messaging destination)£¬´Ó¶øÊµÏÖʵʱÊý¾ÝµÄÍÆºÍÐ×÷¡£
¡¡¡¡Ò»¡¢Message Service
¡¡¡¡Message Service Ìṩ·¢²¼(publish)/¶©ÔÄ(subscribe)»úÖÆÔÊÐíFlex Ó¦ÓóÌÐò·¢²¼ÏûÏ¢¡¢¶©ÔÄÏûÏ¢ÖÕ¶Ë(messaging des ......