`
diding
  • 浏览: 80381 次
  • 性别: Icon_minigender_1
  • 来自: 四川
社区版块
存档分类
最新评论

跟踪Flex4的Text Layout Framework

    博客分类:
  • Flex
阅读更多
Text Layout Framework论坛地址:

http://alist.adobe.co.uk/cfusion/webforums/forum/categories.cfm?forumid=72&catid=669

目前运用作品:
http://diding.iteye.com/blog/341009


[2009-02-21]
flex_sdk_4.0.5030的TextLayout的一些变化,总得来说,对formats变化比较大
//import flashx.textLayout.formats.CharacterFormat;
//import flashx.textLayout.formats.ContainerFormat;
//import flashx.textLayout.formats.ICharacterFormat;
//import flashx.textLayout.formats.IContainerFormat;
//import flashx.textLayout.formats.IParagraphFormat;
//import flashx.textLayout.formats.LeadingDirection;
//import flashx.textLayout.formats.LineOffsetBasis;
//import flashx.textLayout.formats.ParagraphFormat;


可以由如下类进行解决
import flashx.textLayout.formats.ITextLayoutFormat;
import flashx.textLayout.formats.TextLayoutFormat;

还有IEditManager的applyCharacterFormat()不能使用了,可以用applyLeafFormat换掉


[2009-02-28]
昨天把一个FxTextArea的一个问题发到了bug.adobe.com    
http://bugs.adobe.com/jira/browse/SDK-19576


[2009-03-02]
同样的代码:
Flex 4.0.0.5116和Flex 4.0.0.5121居然FxTexteara不能回车Enter,
Flex 4.0.0.5101可以
原因查明:
_textFlow.interactionManager=new EditManager(um);

如果不加上句,则不能执行undo和redo

最终解决办法:textArea.content="";须要初始化!!!!晕

[2009-03-06]
今天FlexSDK到了flex_sdk_4.0.0.5183http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4

到compiler中改成4.0.0.5183,又不能回车了,真有点晕;
最后没办法:侦听来 执行Enter回车
textArea.addEventListener(KeyboardEvent.KEY_DOWN,doWatchKey);
private function doWatchKey(event:KeyboardEvent):void{
   trace(event.keyCode)
  if(event.keyCode==13){
   var em:IEditManager=IEditManager(_textFlow.interactionManager);
   em.splitParagraph();
   }
}



[2009-03-30]
if (_textFlow.interactionManager && _textFlow.interactionManager.hasSelection()){
    _textFlow.flowComposer.hideSelection();
 }  


[2009-04-04]
flex_sdk_4.0.0.5900出来了
FxTextArea--->import spark.components.TextArea;
其它的FxXXX组件全部跑到spark.components下面去了

还有要注意mxml 写FxApplication或Application不行了,

[2009-04-08]
flex_sdk_4.0.0.5931居然不能引入FB,在学校的机器一样,Adobe的开发组真忙于更新啊

不过还好,今天把5952给DOWN下来,移入FB了


[2009-04-11]
flex_sdk_4.0.0.6137
1.开发小组把LinkElement和InlineGraphicElement的getEventMirror()给Kill了,可以变通地通过import spark.components.RichEditableText的来操作
2.textFlow.flowComposer.updateAllContainers()也给Kill了
3.如果想搞掉其默认的cut copy paste clear
可以一句搞定
richEditableText.contextMenu.clipboardMenu=false

分开则是:
richEditableText.contextMenu.clipboardItems.cut=false
richEditableText.contextMenu.clipboardItems.paste=false

也可以自定义menu
var myContextMenu:ContextMenu=richEditableText.contextMenu
addMyMenuItems(myContextMenu)
private function addMyMenuItems(myContextMenu:ContextMenu=null):void
		{
			//var myContextMenu:ContextMenu=new ContextMenu()
			myContextMenu.hideBuiltInItems();
			var MenuList:Array=["添加链接", "编辑链接", "复制链接", "剪切链接"];
			var separatorBeforeArray:Array=[true, false, true, false];

			for (var j:int=0; j < MenuList.length; j++)
			{
				var item:ContextMenuItem=new ContextMenuItem(MenuList[j], separatorBeforeArray[j]);
				//item.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, MenuItemSelectHandler);
				myContextMenu.customItems.push(item);
				
			}
		} 



[2009-08-31]
//FB4 BETA 已出来一段时间了,也开校了,此文就此锁定!
//周末静心研究FB4
  • 大小: 8.8 KB
  • 大小: 7.8 KB
分享到:
评论
1 楼 wuxi15932077655 2009-09-23  
哥们 怎么在flex sdk3.2中构建TLF???

相关推荐

    Flex Text layout Framework(TLF) example

    自己整理的Flex Text Layout Framework 来自网上,很全的例子。包括了bookmarks,editor(simpleEditor,SimpleEditorWithCss),pagination(1,2,3),madlibs等,不能上传图片要不然上传上来给大家看一下。可以直接运行开...

    flex textlayout 滚动条

    flex textlayout 滚动条 flex textlayout 滚动条 flex textlayout 滚动条

    FlexLayout.html

    FlexLayout.html

    微信小程序 FlexLayout布局 (源码)

    微信小程序 FlexLayout布局 (源码)微信小程序 FlexLayout布局 (源码)微信小程序 FlexLayout布局 (源码)微信小程序 FlexLayout布局 (源码)微信小程序 FlexLayout布局 (源码)微信小程序 FlexLayout布局 (源码)微信小...

    小程序源码 FlexLayout布局 (代码+截图)

    小程序源码 FlexLayout布局 (代码+截图)小程序源码 FlexLayout布局 (代码+截图)小程序源码 FlexLayout布局 (代码+截图)小程序源码 FlexLayout布局 (代码+截图)小程序源码 FlexLayout布局 (代码+截图)小程序源码 Flex...

    微信小程序源码 FlexLayout布局(学习版)

    微信小程序源码 FlexLayout布局(学习版)微信小程序源码 FlexLayout布局(学习版)微信小程序源码 FlexLayout布局(学习版)微信小程序源码 FlexLayout布局(学习版)微信小程序源码 FlexLayout布局(学习版)微信小程序源码 ...

    微信小程序 - FlexLayout布局源码.zip

    微信小程序 - FlexLayout布局【源码】.zip 微信小程序 - FlexLayout布局【源码】.zip 微信小程序 - FlexLayout布局【源码】.zip 微信小程序 - FlexLayout布局【源码】.zip 微信小程序 - FlexLayout布局【源码】.zip ...

    重写flex4的textinput控件

    可以设置控件里面显示的小数位数,通过restrict参数和小数位数动态控制,

    Flex图文混排编辑器

    这个是Adobe的官方用Flex4新的Text Layout Framework框架做的demo,demo演示:http://labs.adobe.com/technologies/textlayout/demos/。

    org.springframework.flex-1.0.3.RELEASE.jar.zip

    org.springframework.flex-1.0.3.RELEASE.jar.zip用于JAR包,org.springframework.flex-1.0.3.RELEASE.jar.zip用于JAR包org.springframework.flex-1.0.3.RELEASE.jar.zip用于JAR包org.springframework.flex-1.0.3....

    小程序源码FlexLayout布局.zip

    小程序源码FlexLayout布局.zip

    Flex4-in-a-day

    Text Layout Framework Working with Fonts Working with Flex 3 and 4 components in the same project Migrating Flex 3 projects to Flex 4 New features from Flash Builder 4 (states editor, getter/...

    微信小程序的FlexLayout布局实例.rar

    本源代码将研究学习微信小程序的FlexLayout布局实例,微信小程序界面设计实例,是一种流布局的实现例子,而不是大家熟悉的盒子式布局,据说即使需要深层的嵌套,FlexLayout布局的响应速度也不会超过1ms,可谓是非常...

    微信小程序——FlexLayout布局(截图+源码).zip

    微信小程序——FlexLayout布局(截图+源码).zip 微信小程序——FlexLayout布局(截图+源码).zip 微信小程序——FlexLayout布局(截图+源码).zip 微信小程序——FlexLayout布局(截图+源码).zip 微信小程序——...

    Flex4.5 UI布局与组件应用_Layout

    Flex4.5 UI布局与组件应用_Layout

    FLEX4的皮肤skin

    FLEX4的皮肤skin.教你如何使用皮肤

    FLEX4_Flex4教程 - FLEX4从入门到精通,挺不错的值得一看

    FLEX4_Flex4教程 - FLEX4从入门到精通,挺不错的值得一看

    Flex 4 高级编程 Flex 4 高级编程

    Flex 4 高级编程Flex 4 高级编程Flex 4 高级编程Flex 4 高级编程

    flex 4 学习资料

    基于flex4技术从零开发flex博客系统 : 1 开发环境配置与hello world(1) - 豆豆网 flex+blazeDs与Ext+dwr比较_蓝色幻想_百度空间 基于blazeDS的flex4与spring的程序实例步骤 - dreamming_now的专栏 - CSDN博客 在...

    flex4与Java通信实例

    flex4出来一段时间了,去年看了一段时间flex3,后来由于暂时没有项目需求.所以flex遗忘了很多.这次使用flex4+myeclipse8.5录制了一个视频.以免时间长了遗忘. 软件环境:windows7+flex4+myeclipse8.5+blazeds 功能描述...

Global site tag (gtag.js) - Google Analytics