- 浏览: 28734 次
- 性别:
- 来自: 上海
最新评论
-
phx8742:
太有才了~~~~~~
《沁园春·买票》 -
stuhack0303:
有例子可以看一下吗?
有的话麻烦你发给我,谢谢
邮箱:22 ...
Flex 4 and the Text Layout Framework
Posted 七月 20th, 2009 by bill
Flex4
本文翻译自http://blog.flexexamples.com/2009/06/28/styling-hyperlinks-in-a-textflow-object-in-flex-4/ 提供了一个在TextFlow对象中,通过设定 linkNormalFormat, linkHoverFormat, linkActiveFormat 属性,给链接定义样式.
由于这篇文章使用的仍然是Flex4 sdk的beta版本,有可能在以后有细微的变化。
<?xml version="1.0" encoding="utf-8"?>
<!-- <a href="http://blog.flexexamples.com/2009/06/28/styling-hyperlinks-in-a-textflow-object-in-flex-4/" title="http://blog.flexexamples.com/2009/06/28/styling-hyperlinks-in-a-textflow-object-in-flex-4/">http://blog.flexexamples.com/2009/06/28/styling-hyperlinks-in-a-textflow...</a> -->
<s:Application name="Spark_TextArea_textFlow_linkHoverFormat_test"
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo">
<fx:Script>
<![CDATA[
import flashx.textLayout.formats.WhiteSpaceCollapse;
import spark.utils.TextFlowUtil;
XML.ignoreWhitespace = false;
]]>
</fx:Script>
<fx:Declarations>
<fx:String id="markup" source="teaserTextFlow.xml" />
</fx:Declarations>
<s:TextArea id="txtArea"
textFlow="{TextFlowUtil.importFromString(markup, WhiteSpaceCollapse.PRESERVE)}"
editable="false"
width="400"
horizontalCenter="0"
verticalCenter="0" />
</s:Application>
代码中的TextFlow(teaserTextFlow.xml)的定义在这里:
<?xml version="1.0" encoding="utf-8"?>
<!-- <a href="http://blog.flexexamples.com/2009/06/28/styling-hyperlinks-in-a-textflow-object-in-flex-4/" title="http://blog.flexexamples.com/2009/06/28/styling-hyperlinks-in-a-textflow-object-in-flex-4/">http://blog.flexexamples.com/2009/06/28/styling-hyperlinks-in-a-textflow...</a> -->
<TextFlow xmlns="http://ns.adobe.com/textLayout/2008" whiteSpaceCollapse="preserve" fontSize="16" paragraphSpaceAfter="15" paddingTop="4" paddingLeft="4">
<linkNormalFormat color="#0000ff" textDecoration="underline" />
<linkHoverFormat color="#ff0000" textDecoration="underline" />
<linkActiveFormat color="#ff00ff" textDecoration="underline" />
<format id="code" backgroundColor="#000000" backgroundAlpha="0.1" fontFamily="_typewriter" />
<p fontWeight="bold">The following excerpt is from <a href="http://blog.flexexamples.com/" target="_self">Flex Examples</a>:</p>
<p>The following example shows how you can import a TextFlow object from an XML object in Flex 4 by using the static <span format="code">TextFlowUtil.importFromXML()</span> method.</p>
<p>For more information, see <a href="http://blog.flexexamples.com/2009/06/25/importing-a-text-flow-from-an-xml-object-in-flex-4/">"Importing a text flow from an XML object in Flex 4"</a>.</p>
</TextFlow>
转载于
Flex4
本文翻译自http://blog.flexexamples.com/2009/06/28/styling-hyperlinks-in-a-textflow-object-in-flex-4/ 提供了一个在TextFlow对象中,通过设定 linkNormalFormat, linkHoverFormat, linkActiveFormat 属性,给链接定义样式.
由于这篇文章使用的仍然是Flex4 sdk的beta版本,有可能在以后有细微的变化。
<?xml version="1.0" encoding="utf-8"?>
<!-- <a href="http://blog.flexexamples.com/2009/06/28/styling-hyperlinks-in-a-textflow-object-in-flex-4/" title="http://blog.flexexamples.com/2009/06/28/styling-hyperlinks-in-a-textflow-object-in-flex-4/">http://blog.flexexamples.com/2009/06/28/styling-hyperlinks-in-a-textflow...</a> -->
<s:Application name="Spark_TextArea_textFlow_linkHoverFormat_test"
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo">
<fx:Script>
<![CDATA[
import flashx.textLayout.formats.WhiteSpaceCollapse;
import spark.utils.TextFlowUtil;
XML.ignoreWhitespace = false;
]]>
</fx:Script>
<fx:Declarations>
<fx:String id="markup" source="teaserTextFlow.xml" />
</fx:Declarations>
<s:TextArea id="txtArea"
textFlow="{TextFlowUtil.importFromString(markup, WhiteSpaceCollapse.PRESERVE)}"
editable="false"
width="400"
horizontalCenter="0"
verticalCenter="0" />
</s:Application>
代码中的TextFlow(teaserTextFlow.xml)的定义在这里:
<?xml version="1.0" encoding="utf-8"?>
<!-- <a href="http://blog.flexexamples.com/2009/06/28/styling-hyperlinks-in-a-textflow-object-in-flex-4/" title="http://blog.flexexamples.com/2009/06/28/styling-hyperlinks-in-a-textflow-object-in-flex-4/">http://blog.flexexamples.com/2009/06/28/styling-hyperlinks-in-a-textflow...</a> -->
<TextFlow xmlns="http://ns.adobe.com/textLayout/2008" whiteSpaceCollapse="preserve" fontSize="16" paragraphSpaceAfter="15" paddingTop="4" paddingLeft="4">
<linkNormalFormat color="#0000ff" textDecoration="underline" />
<linkHoverFormat color="#ff0000" textDecoration="underline" />
<linkActiveFormat color="#ff00ff" textDecoration="underline" />
<format id="code" backgroundColor="#000000" backgroundAlpha="0.1" fontFamily="_typewriter" />
<p fontWeight="bold">The following excerpt is from <a href="http://blog.flexexamples.com/" target="_self">Flex Examples</a>:</p>
<p>The following example shows how you can import a TextFlow object from an XML object in Flex 4 by using the static <span format="code">TextFlowUtil.importFromXML()</span> method.</p>
<p>For more information, see <a href="http://blog.flexexamples.com/2009/06/25/importing-a-text-flow-from-an-xml-object-in-flex-4/">"Importing a text flow from an XML object in Flex 4"</a>.</p>
</TextFlow>
转载于
发表评论
-
时间标签
2011-10-26 17:48 630[Event(name="imageClick&qu ... -
如何加载一个swf文件中类的方法
2011-10-26 16:04 872为了取某个类而去加载swf资源包。请查flex4 api ... -
加载样式 SWF
2011-10-26 15:37 714loadStyleDeclarations () Flex ... -
flex3 ,flex4 skin
2011-10-26 14:00 753flex3 skin: skin:ClassReferenc ... -
请求服务器数据,解决IIE缓存问题
2011-10-25 17:56 818/** * 加上随机数, 解决ie缓存的问题 * ... -
flex垃圾回收
2011-10-25 15:36 624public static function run():vo ... -
flex 滤镜
2011-10-25 15:33 1123flex常用滤镜: 1.GlowFilter(color, a ... -
事件发送之复合EventDispatcher对象
2010-08-30 23:19 1487EventDispatcher类详解 2010年06月14日 ... -
Event类的实例方法
2010-08-30 21:54 788Event类中包含7个实例方法,可以分为如下3类: 实用程序方 ... -
label/textBase showTruncationTip/isTruncated属性
2010-08-19 16:24 1567showTruncationTip属性 一个控制在截断文本时 ... -
设置dropDownList没有水平、垂直滚动条
2010-08-19 12:41 3005<?xml version="1.0" ... -
使用ItemRenderer处理基于List容器的显示内容 [DataGrid, Tree, List等]
2010-08-12 10:45 1892转载于:http://liguoliang.com/2009/ ... -
使用labelFunction处理DataGrid显示内容(转载)
2010-08-12 10:40 1608转载地址:http://liguoliang.com/2009 ... -
Flex 4 and the Text Layout Framework
2010-08-10 13:15 829site:http://devgirl.wordpress.c ... -
flex 自定义toolTip
2010-08-09 15:02 1298两种方法 1,使用css , 设置css更改tooltip样式 ... -
关于flex 的命名空间及访问控制符问题
2010-05-30 22:49 1012FLEX 命名空间与访问控制符 链接地址:http://98 ... -
深入分析Flex [Bindable] 以及使用方法(转载)
2010-05-30 22:42 733转载地址:http://www.gold98.net/bl ... -
初识Flex Data Services(FDS)(转载)
2010-04-18 22:22 770一 FDS相关概念 FDS全称Flex Data Se ... -
Adobe AIR技术优势(装载)
2010-04-13 22:57 823Adobe AIR被媒体誉为2007年最值得关注的技术,就像当 ... -
Adobe AIR介绍(转载)
2010-04-13 22:42 695AIR就是所谓的网络应用 ...
相关推荐
Flex 4中通过TextFlowUtil.importFromXML()事件从XML对象中载入一个TextFlow对象
在本文中,我们介绍了TextFlow,它是可视化和主题挖掘技术的无缝集成,用于分析多个主题中出现的各种演化模式。我们首先扩展现有的分析技术来提取三层特征:主题演变趋势、关键事件和关键词相关性。然后设计了由三个...
由于egret官方TextField(eui.label)提供的textFlow属性并不支持标签的解析,所以扩展其textFlow属性,使其可以解析img标签并且以图文混排形式显示。
python库,解压后可用。 资源全名:textflow-0.1.8-py3-none-any.whl
TextFlow 是一个面向程序员的文本编辑器。 有了它,您将拥有一个直观的界面,它将通过 TextFlow 中包含的一系列工具提供快速有效的程序版本
在运行中查看它 本地测试 运行MongoDB服务器 sudo docker run -p 27017:27017 mongo:3.0.7 在本地运行服务器 heroku local 执照 版权所有:copyright:2013 Tzach Livyatan 与clojure一样,根据Eclipse Public ...
提华纳日出此回购包含: TextFlow.us营销网站TextFlow Beta Webapp TextFlow alpha Slack集成具有用于访问SMS和Contacts DB的界面的TextFlow Android WebView容器。在新服务器上安装和部署以下内容假定该域为...
文字流TextFlow是一组用于文本处理的Automator工作流,具有基本的技术编辑功能,包括智能标点,文本替换以及在每个OS X应用程序中粘贴未格式化文本的最简单方法。工作流程粘贴和转换文本转换所选文字粘贴为纯文本...
资源分类:Python库 所属语言:Python 资源全名:textflow-0.3.2.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源来自pypi官网。 资源全名:textflow-0.0.6-py3-none-any.whl
* 在文本中插入图片 * @param src 图片的路径或者库里面的MC实例 * @param width 图片的宽,默认是图片宽度 * @param height 图片的高,默认是图片的高度 */ public function insertImg(src:...
文字流 使用和进行自然语言处理的培训管道。 学习任务: Word2vec预培训: 文字分类: 神经机器翻译: