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;
}
Ïà¹ØÎĵµ£º
PopUpEffect.as
package
{
import flash.display.DisplayObject;
import mx.core.IFlexDisplayObject;
import mx.effects.Blur;
import mx.events.TweenEvent;
import mx.managers.PopUpManager;
public class PopUpEffect
{
public function PopUpE ......
µÚÒ»ÖÖ£ºÐÞ¸ÄÏÂÔØ½ø¶ÈµÄÎÄ×ÖΪÖÐÎÄ
½¨Á¢À©Õ¹ÖÁ mx.preloaders.DownloadProgressBar µÄÒ»¸öÀࣺ
01.package myDownPro
02.{
03.import mx.preloaders.DownloadProgressBar;
04.
05.public class myDownProBar extends DownloadProgressBar
06.{
07. public function myDownProBar()
08. {
09. //TODO: impl ......
Ìáµ½web¼´Ê±Í¨ÐÅ£¬¿ÉÄÜ´ó¼ÒÁ¢¼´»áÏëµ½ajax¶¨Ê±ÇëÇó¡¢·þÎñÆ÷ÍÆµÈ½â¾ö·½°¸£¬µ«ÕâÀïÎÒҪ˵µÄÊÇÒ»ÖÖ×ۺϵĽâ¾ö·½°¸£¬Ê¹ÓÃAdobeµÄFlex XmlSocket¡¢javascriptÒÔ¼°·þÎñÆ÷¶Ë¼¼Êõ£¬½¨Á¢ÕæÕýµÄweb¼´Ê±Í¨ÐÅ¡£µ±È»Õ⻹ÊÜÒæÓÚflashµÄÆÕ¼°£¬´ó²¿·ÖÓû§µÄä¯ÀÀÆ÷¶¼°²×°ÁËFlash player²å¼þ£¬´Ó¶ø±£Ö¤´Ë·½°¸Î ......