TextLine 与 buttonMode
来源:互联网 发布:foxit pdf editor mac 编辑:程序博客网 时间:2024/06/07 21:50
执行下面代码,你会发现当鼠标移入TextLine区域时,光标变成手型。这与预期相反。
怀疑这是AS的Bug。
当把 s.mouseChildren=false; 有效后,光标不再变成手型。
package {import flash.display.Sprite;import flash.text.engine.ElementFormat;import flash.text.engine.FontDescription;import flash.text.engine.TextBlock;import flash.text.engine.TextElement;import flash.text.engine.TextLine;public class aaa extends Sprite {public function aaa():void {this.buttonMode = true; this.useHandCursor = false; //不显示手型光标var str:String = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, ";var fontDescription:FontDescription = new FontDescription();var textBlock:TextBlock = new TextBlock();var format:ElementFormat = new ElementFormat(fontDescription, 12);var textElement:TextElement = new TextElement(str, format);textBlock.content = textElement;var textLine:TextLine = textBlock.createTextLine(null, 500);textLine.y = 20;var s:Sprite = new Sprite();s.buttonMode = false; s.useHandCursor = false; //不显示手型光标//s.mouseChildren=false;s.x=s.y=30 ;addChild(s);s.addChild(textLine);}} }
0 0
- TextLine 与 buttonMode
- 获得Focus与buttonMode
- [学习笔记]关于buttonMode
- 让Label支持buttonMode
- Android内存泄露检测之TextLine
- buttonMode以及鼠标监听失效的原因
- error: 'xxx函数' is inaccessible,'Text' is not an accessible base of 'TextLine'
- 给Loader添加buttonMode(类似两个重叠按钮,如何激活底层的按钮?)属性
- Flex中如何利用useHandCursor和buttonMode属性在鼠标移到图片上显示手型光标的例子
- ActionScript 3.0 学习(四) AS3显示对象的几个基本属性,ButtonMode,DropTarget,hitArea以及ScaleX,ScaleY,ScrollRect
- 与
- 与
- “” 与 “”
- ##与#
- >> 与 > >
- :与::
- &与&&
- && 与 &
- Java中获取当前系统时间
- MVC框架设计(三)
- 漫画:什么是大数据?
- PHP中spl_autoload_register函数的用法
- Using Redis with Node.js
- TextLine 与 buttonMode
- Windows环境下搭建机器学习玩flappy bird(1)
- js 自动缩放图片居中
- 解决Mybatis--java.lang.IllegalArgumentException: Result Maps collection already contains value for XXX
- 归并排序
- Android圆形头像(1)
- Swift3.0 单例模式实现的几种方法-Dispatch_Once
- linux usleep函数参数溢出
- GitHub上完整的iOS-App源码