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
Ïà¹ØÎĵµ£º
¹¤³ÌϵÄhistoryÎļþ¼ÐÏ´æ·ÅÈý¸öÎļþ£ºindex.template.html£¬rightClick.js,swfobject.js
srcÎļþ¼ÐÏ´æ·ÅCustomContextMenu.mxmlÎļþ¡£
1.CustomContextMenu.mxml£º
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
applicati ......
<?xml version="1.0" encoding="utf-8"?>
<Application xmlns="http://www.adobe.com/2006/mxml"
backgroundGradientColors="[0x000000,0x000000]"
themeColor="#222222"
horizontalAlign="left"
paddingLeft="10" paddingRight="10"
creationComplete="genData();"
viewSourceURL="srcview/index.ht ......
PureMVCʵÏÖÁ˼òµ¥µÄMVC¿ò¼Ü£¬½«Ó¦Ó÷ÖΪmodel¡¢viewºÍcontrolÈý²¿·Ö¡£
ºÃ´¦ºÜ¶àÁË£¬½µµÍÁËÄ£¿éÖ®¼äµÄñîºÏÐÔ¡¢Ìá¸ßÁ˳ÌÐòµÄ¿Éά»¤ÐԺͿÉÀ©Õ¹ÐÔ¡£
fabricationÔÚPureMVC»ù´¡ÉÏ×öÁËÀ©Õ¹£¬¼ò»¯ÁËpureMVCµÄ¿ª·¢ÄѶȣ¬ÏÂÃæ¼òµ¥½éÉÜÒ»ÏÂfabricationµÄ¿ª·¢¹ý³Ì¡£
Ê×ÏÈ£¬¸ù¾ÝÐèҪʵÏÖorg.puremvc.as3.multicore.utilities.fabric ......
.treeStyte{
selectionColor: #417597;
/* È¥µôĬÈÏͼ±ê */
folderClosedIcon: ClassReference(null);
folderOpenIcon: ClassReference(null);
&nbs ......
±¾ÎÄͨ¹ýΪһ¸öÐé¹¹µÄ¹«Ë¾Éè¼ÆµÄ¾ÖÓòÍøÓ¦ÓÃʵÀý——Spark Intranet Sample App£¨Èçͼ1£©£¬½éÉÜÁËFlex 4 beataºÍFlash Builder 4 betaÖÐеÄÒ»Ð©ÌØÐÔ¡£
±¾ÎÄÄÚÈÝÊʺÏÓÚÓÐFlex 2»òFlex 3֪ʶ£¬×îºÃ»¹¶ÔFlex 4 beta¿ò¼ÜÓÐһЩ»ù±¾½Ó´¥µÄ¿ª·¢Õß¡£Í¨¹ý¾ßÌåÓ¦ÓÃÀí½âFlex 4ÓëÆä¸üÔç°æ±¾Ö®¼ä²îÒ죬ÊÇÒ»¸öºÃ°ì·¨¡£±¾ÎÄÖ÷Ò ......