Tag Archives: Flex

FlashBuilder 代码提示失效解决方法Content Assist did not work

如果是所有的都失效可参照:
http://www.airtightinteractive.com/2010/01/fix-for-flash-builder-content-assist-did-not-complete-normally/ 或:
https://jira.jboss.org/bro

More…

Posted in ActionScript | Tagged , | Leave a comment

Flex4 Spark TextArea 设置自适应大小及派发鼠标滚动事件

记得在使用Flex4之前, 看过一篇介绍TextArea自适应高度的文章, 监听Event, 动态改变高度.  很少用TextArea, 也没用过. 在Flex4, 使用Spark界面时, TextArea可设为自动适应.
设置heightInLines = NaN -  如果

More…

Posted in ActionScript | Tagged , , | Leave a comment

Flex中使用NavigateToURL实现HTML预览

尚未发现Flex中有可以直接渲染HTML代码的组件, 但可通过服务器端配合实现预览.

原理: Flex(尤指AIR环境), 使用URLLoader发送POST请求, 将要预览的HTML代码发送到服务器端Servlet, 服务器端收到请求后创建临时文件, 将HTML存到临时文件中. Flex端收到URLLoader Complete事件后, 使用navigateToURL navigate到Servlet上(使用GET), Servelet 返回文件内容 —- 在上述过程中, Flex端生成UUID作为代码读写的key.

More…

Posted in ActionScript | Tagged , , , , | Leave a comment

[发布] 使用Flex HTTPService与TinyURL API创建的网址缩短小工具

基于TinyURL API制作的Flex版的网址缩短工具, 很小很方便. 热爱学习的同学可参阅HttpService使方法.

Posted in Flex | Tagged , , | Leave a comment

Flex 复制内容到粘贴板 Set System Clipboard

Use:  System.setClipboard(lastShortUrl);
直接Call时, 报错:
Error #2176: Certain actions, such as those that display a pop-up window, may only be invok

More…

Posted in ActionScript | Tagged | Leave a comment