flex toolTipÑùʽÉèÖÃ
ÐèÒª3¸öÎļþ¡£Ò»¸öÊÇÑùʽÀ࣬һ¸öÑùʽÎļþ£¬Ò»¸öÊÇmxmlÎļþ¡£
¡ñMyToolTip.as
package{
import mx.core.UITextField;
import mx.skins.halo.ToolTipBorder;
import mx.controls.ToolTip;
public class MyToolTip extends ToolTipBorder {
override protected function updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number):void{
var toolTip:ToolTip = (this.parent as ToolTip);
var textField:UITextField = toolTip.getChildAt(1) as UITextField;
textField.htmlText = textField.text;
var calHeight:Number = textField.height;
calHeight += textField.y*2;
calHeight += textField.getStyle("paddingTop");
calHeight += textField.getStyle("paddingBottom");
var calWidth:Number = textField.textWidth;
calWidth += textField.x*2;
calWidth += textField.getStyle("paddingLeft");
calWidth += textField.getStyle("paddingRight");
super.updateDisplayList(calWidth, calHeight);
}
}
}
¡ñstyle.css
ToolTip{
font-family: verdana;
font-size: 14px;
color: #000000;
background-color: #FF00FF;
background-alpha: 0.85;
cornerRa
Ïà¹ØÎĵµ£º
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Style>
ScrollBar
{
/*»®¶¯¿éͼƬƤ·ô*/
thumbDownSkin: Embed(source="scrollBar/thumb. ......
±¾ÎÄͨ¹ýΪһ¸öÐé¹¹µÄ¹«Ë¾Éè¼ÆµÄ¾ÖÓòÍøÓ¦ÓÃʵÀý——Spark Intranet Sample App£¨Èçͼ1£©£¬½éÉÜÁËFlex 4 beataºÍFlash Builder 4 betaÖÐеÄһЩÌØÐÔ¡£
±¾ÎÄÄÚÈÝÊʺÏÓÚÓÐFlex 2»òFlex 3֪ʶ£¬×îºÃ»¹¶ÔFlex 4 beta¿ò¼ÜÓÐһЩ»ù±¾½Ó´¥µÄ¿ª·¢Õß¡£Í¨¹ý¾ßÌåÓ¦ÓÃÀí½âFlex 4ÓëÆä¸üÔç°æ±¾Ö®¼ä²îÒ죬ÊÇÒ»¸öºÃ°ì·¨¡£±¾ÎÄÖ÷Ò ......
Top 10 things new Flex developers should know
By Michael Portuesi | Published: November 27, 2009
While helping a coworker get started with Flash and Flex development, I thought it would be a good time to cover the list of things that I have found pretty essential to know about Flex development, co ......
ÔÚFlexÀïÃæ²»ÏñÔÚFlashÀïÃæËæÒâÖÆ×÷¶¯»ÁË£¬Flex¸üÇ÷ÏòÓÚÓ¦ÓóÌÐò£¬¶ø²»ÊǶ¯»ÖÆ×÷ÁË£¬ËùÒÔûÓÐÁËʱ¼äÖáµÄ¸ÅÄî¡£ÔÚFlexÖÐʹÓö¯»Ð§¹û£¬¿ÉÒÔÓÃFlex×Ô´øµÄEffect£¬»òÕß×ÔÒѶ¨ÖÆEffect£¬ÒòΪºÜ¶àÈ˶¼Ïë½èFlashÀïÃæµÄÒ»Ñù²Ù×÷Flex£¬±ÈÈçÔÚFlashÀïÃæ×öÒ»¸ö¶¯Ì¬°´Å¥ºÜÈÝÒ×£¬µ±Êó±êÒƶ¯µ½ÉÏÃæʱ£¬»áÓкܶ෢¹âµÄµãÅܳöÀ´£¨Ó«»ð³æÐ ......