- 浏览: 1560356 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (571)
- Flex (301)
- AIR (5)
- ComPiere (8)
- ExtJS (15)
- SAP (0)
- jBPM (3)
- Java-Hibernate (5)
- Java-Spring (10)
- XML (2)
- java-web (30)
- db2 (2)
- websphere (4)
- Google (5)
- 虚拟机 (10)
- eclipse (8)
- Win2003 (11)
- Ubuntu (27)
- VMware (4)
- CentOS (3)
- JSON (1)
- Oracle (15)
- SilverLight (1)
- 大事记 (6)
- VirtualBox (5)
- Solaris (10)
- AIX (6)
- 云计算 (10)
- MacOS (4)
- iOS (1)
- SQLite (1)
- Activiti (1)
- jdk (5)
- hadoop (8)
- Ant (4)
- PhoneGap (2)
- JavaScript (11)
- jQuery (1)
- FireFox (1)
- HBase (2)
- sqoop (0)
- ffmpeg (7)
- mencode (0)
- jdbc (1)
- SQLServer (1)
- 组件平台 (12)
- struts2 (4)
- intellj (4)
- android (1)
- ExtJS4 (1)
- 色卡司 (1)
- Linux (3)
- ExtJS5 (1)
- zookeeper (2)
- maven (1)
- Java (6)
- vpn (0)
- squid (1)
- MySQL (2)
- webpackage (1)
- antd (1)
- lucene (1)
最新评论
-
qq_24800465:
请问这里的库从哪下载啊
ffmpeg所有的编码器(encoders) -
neusoft_jerry:
貌似这里没用到StreamingAMFChannel哦,只是用 ...
Flex BlazeDS 推送技术 -
anyone:
感谢你的博文,看了受益匪浅
记住这个IntelliJ IDEA的编译设置 -
keren:
现在还有什么应用需要用flex来开发的?
flex tree的展开,关闭,添加、删除子节点 -
neusoft_jerry:
简洁明快,好贴好贴!楼主V5!
flex tree的展开,关闭,添加、删除子节点
http://www.flepstudio.com/flash/actionscript3/documentation/html/com_flepstudio_text_ToolTip.html
package com.flepstudio.text { import flash.display.*; import flash.events.*; import flash.text.*; /** * ToolTip is a ValueObject for the FlepStudio API. * This class produces a tooltip advice on mouse rollover * * @author Filippo Lughi * @version Actionscript 3.0 */ public class ToolTip extends MovieClip { private var _bg_color:uint; private var _text_color:uint; private var _text_size:int; private var _font:String; private var _tool_text:String; private var _field_txt:TextField; private var _alpha_color:Number; private var ratio:int=10; private var holder_mc:MovieClip; private var bg_mc:MovieClip; private var father:MovieClip; /** * Construct a new ToolTip instance * * @param .bc uint -- background color * @param .tc uint -- text color * @param .ts int -- text size * @param .f String -- the font to use * @param .tt String -- text of the tooltip * @param .n Number -- alpha of background color */ public function ToolTip(bc:uint,tc:uint,ts:int,f:String,tt:String,n:Number) { bg_color=bc; text_color=tc; text_size=ts; font=f; tool_text=tt; alpha_color=n; addEventListener(Event.ADDED_TO_STAGE,init); mouseEnabled=false; alpha=0; } /** * Background color */ public function get bg_color():uint { return _bg_color; } public function set bg_color(c:uint):void { _bg_color=c; } /** * Text color */ public function get text_color():uint { return _text_color; } public function set text_color(c:uint):void { _text_color=c; } /** * Text size */ public function get text_size():int { return _text_size; } public function set text_size(n:int):void { _text_size=n; } /** * The font */ public function get font():String { return _font; } public function set font(s:String):void { _font=s; } /** * The text */ public function get tool_text():String { return _tool_text; } public function set tool_text(s:String):void { _tool_text=s; } /** * The text */ public function get field_txt():TextField { return _field_txt; } public function set field_txt(t:TextField):void { _field_txt=t; } /** * The alpha color */ public function get alpha_color():Number { return _alpha_color; } public function set alpha_color(n:Number):void { _alpha_color=n; } /** * Init the class * * @param .evt Event */ private function init(evt:Event):void { removeEventListener(Event.ADDED_TO_STAGE,init); father=parent as MovieClip; createHolder(); createTextField(); createBackground(); fixPosition(); fadeIn(); addEventListener(Event.ENTER_FRAME,addMovement); } /** * Container MovieClip creation * */ private function createHolder():void { holder_mc=new MovieClip(); addChild(holder_mc); } /** * TextField tooltip creation * */ private function createTextField():void { field_txt=new TextField(); field_txt.multiline=true; field_txt.selectable=false; field_txt.embedFonts=true; field_txt.antiAliasType=AntiAliasType.ADVANCED; field_txt.autoSize=TextFieldAutoSize.LEFT; field_txt.defaultTextFormat=getFormat(); field_txt.htmlText=tool_text+" "; field_txt.width=field_txt.textWidth+10; field_txt.height=field_txt.textHeight+20; holder_mc.addChild(field_txt); } /** * Get a text format * * @return TextFormat the textfield's format of tooltip */ private function getFormat():TextFormat { var format:TextFormat=new TextFormat(); format.font=font; format.size=text_size; format.color=text_color; return format; } /** * Background MovieClip creation * */ private function createBackground():void { bg_mc=new MovieClip(); bg_mc.graphics.beginFill(bg_color,alpha_color); bg_mc.graphics.drawRoundRect(-ratio,-ratio,field_txt.width+ratio*2,field_txt.height+ratio*2,ratio,ratio); holder_mc.addChild(bg_mc); holder_mc.swapChildren(field_txt,bg_mc); } /** * Position the tooltip * */ private function fixPosition():void { if(father.mouseX < stage.stageWidth/2) x=father.mouseX; else x=father.mouseX-width; if(father.mouseY < stage.stageHeight/2) y=father.mouseY+height-ratio*2; else y=father.mouseY-height; } /** * Init fade-in section of tooltip * */ private function fadeIn():void { bg_mc.addEventListener(Event.ENTER_FRAME,fadeInToolTip); } /** * Fade-in of tooltip * * @param .evt Event */ private function fadeInToolTip(evt:Event):void { var distance:Number=1-alpha; var inertial:Number=distance*.2; alpha+=inertial; if(Math.abs(distance) <= .1) { alpha=1; bg_mc.removeEventListener(Event.ENTER_FRAME,fadeInToolTip); } } /** * Movement of tooltip * * @param .evt Event */ private function addMovement(evt:Event):void { if(father.mouseX < stage.stageWidth/2) x=father.mouseX; else x=father.mouseX-width+ratio*2; if(father.mouseY < stage.stageHeight/2) y=father.mouseY+height-ratio*2; else y=father.mouseY-height; if(x > stage.stageWidth-width) x=stage.stageWidth-width; if(x < ratio*2) x=ratio*2; } /** * Remove this instance * */ public function destroy():void { removeEventListener(Event.ENTER_FRAME,addMovement); bg_mc.removeEventListener(Event.ENTER_FRAME,fadeInToolTip); father.removeChild(this); } } }
发表评论
-
extjs结合flex(flash)的注意事项.
2014-01-02 17:11 2398//for fix bug //flash里使 ... -
flash(flex)crossdomain dtd规范
2013-12-27 13:38 953dtd文件位置: http://www.macromedia. ... -
flash内嵌在html里面的代码
2013-12-27 09:19 1196<!-- 除IE外都可识别 --> < ... -
FlashBuilder4.5 ADT命令详解(官方)
2011-12-16 17:45 1253http://help.adobe.com/en_US/air ... -
FlashBuilder4.5加入ADT插件
2011-12-16 17:24 1809参考: http://renaun.com/blog/2011 ... -
Flex as3commons log的简单使用
2011-11-28 20:26 1594http://www.as3commons.org/ &l ... -
Flex日志工具汇总
2011-11-27 16:29 1247巨兽 monster [能调试 mobile和web air] ... -
【转】[Flex]我经常使用的Flex Tools 和 Resource
2011-11-22 08:36 1308http://www.k-zone.cn/zblog/post ... -
[转]Flex Socket安全策略<policy-file-request/>及应对方法
2011-08-27 16:43 1727http://hi.baidu.com/dobodo/blog ... -
flash 安全策略文件
2011-08-27 16:31 2149<?xml version="1.0&qu ... -
Request请求头的格式
2011-08-27 15:38 2362每次提交http请求时,请求头是什么样的的格式呢? GET方 ... -
flash SQLite包装类
2011-08-27 15:00 2231[转]http://www.flepstudio.com/fl ... -
[转](原创)flex解决跨域问题的策略文件的写法
2011-08-04 09:59 1557http://hi.baidu.com/wosinmaiken ... -
[转](整理)flex常用验证控件
2011-08-04 08:30 1381http://hi.baidu.com/wosinmaiken ... -
Flex4.5 skin组建皮肤的应用
2011-07-28 08:52 2815http://www.iyoya.com/2011/06/04 ... -
如何成为一个合格的iOS开发者?
2011-07-17 14:59 1347转:http://www.adobe.com/cn/devne ... -
flex4.5移动设备开发-添加应用背景图片
2011-07-17 10:50 2293【转】http://spy6.blogspot.com/201 ... -
flex4.5移动设备开发-应用访问权限设置
2011-07-16 14:19 1361在构建flex4.5 mobile application的时 ... -
flex4.5移动设备开发-表格效果
2011-07-15 23:12 1805做了个实验,没想到做出表格的效果 -
flex4.5移动设备开发-注意指导
2011-07-15 22:33 1280Developing AIR applications for ...
相关推荐
flash 的几个tooltip显示 大概 7 8 个 效果可以下来看
Flash Tooltip AS3 气泡提示框的源代码,内含有5个不同风格的Flash气泡提示框,大小不同、颜色不同,动态的效果也不同,作Flash产品展示的话,会用到Tips,本源代码用Flash CS3及以上版本可打开。
[AS3]提示信息类-ToolTip(flash)
一个tooltip例子。里面包含一个tooltip类,表示一个长方形的小弹出窗口,该窗口在用户将指针悬停在一个控件上时显示有关该控件用途的简短说明
As的自定义的ToolTip,可直接使用。对于新手学习了解AsToolTip原理比较好的一个实例
CSS3提示框Tooltip动画是一款利用CSS3实现的提示框Tooltip动画。当鼠标移到图标按钮上时,就会在按钮正上方弹出一个Tooltip提示框,并且伴有淡入淡出的效果。
FLASH日历原文件。AS3.0版本 DateChooser.as DateShape.as SuperCalendar.as ToolTip.as
- multiple properties for the tooltip - optionally you can go to an URL on clicking an image instead of enlarging it You can install our component on several platforms, from simple ...
what happens to the tooltip when two points are in the same position? you can re-size the charts missing data save the chart as an image You can highlight or emphasize one (or many) points PC ...
内容索引:Flash源码,其它应用,flash气泡提示 一个有弹性的Flash悬停提示特效的Fla源文件,当你把鼠标放在按钮上的时候,立即会弹出一个提示框,还有缓冲效果,在允许的范围内,Tooltip会跟随鼠标移动。再此提示,...
支持3级的jquery天蓝色动画菜单下载,适合艺术类、儿童类网站使用 5)对话框 1.jquery仿div透明模态弹出窗插件下载 2.jquery实现多风格消息弹出框插件jGrowl下载 3.jQuery弹出层插件PopupDiv-v1.0下载(支持ajax...
css: bootstrap.min.css... drop-down.js, echarts.min.js, example.js, jquery.dataTables.min.js, jquery-3.3.1.min.js, jszip.min.js, pdfmake.min.js, popper.min.js, style.js, tooltip.js, vfs_fonts.js , vue.js
dataTables.buttons.min.js, dataTables.min.js, drop-down.js, echarts.min.js, example.js, jquery.dataTables.min.js, jquery-3.3.1.min.js, jszip.min.js, pdfmake.min.js, popper.min.js, style.js, tooltip.js...
其中包括HtmlEditor、ImageCropper、Dialog、AutoComplete、 Flash based Chart等。并支持通过Ajax更新页面。 Optimus模块:提供简化JSF开发的解决方案。Optimus提供基于Google Guice IOC容器的注释来代替XML配置。...
tooltip数据提示框 当鼠标划过图形时,Highstock 可以将数据点或数据列的信息展示在提示框中,并且提示框会跟随用户的鼠标;我们做了大量工作,可以智能的显示离鼠标最近的点或被遮盖点的信息。 datetime时间轴 ...
tooltip数据提示框 当鼠标划过图形时,Highstock 可以将数据点或数据列的信息展示在提示框中,并且提示框会跟随用户的鼠标;我们做了大量工作,可以智能的显示离鼠标最近的点或被遮盖点的信息。 datetime时间轴 ...
Custom label enhancements - New to Version 5.0, developers can associate a custom label to an image, a tooltip, an HREF or even an object Improved Data Labeling - Developers now have the opportunity ...
07_ToolTipDemo 使用ToolTip显示即时提示。 第4章(\ Chapter04) 示例描述:本章介绍窗体的使用方法和使用技巧。 01_WindowDemo 演示创建和显示窗体的方法。 02_TopMostWnd 让窗体保持在桌面最顶层。 03_...