flex 嵌入简单的html
<mx:TextArea
width=
"200"
height=
"100"
>
<mx:htmlText>
This is an example of setting a <B>
TextArea</B>
control's <I>
htmlText<I>
property.
</mx:htmlText>
</mx:TextArea>
支持的样式标记
<b> - Bold tag for text
<i> - Italic tag for text
<u> - Underline tag for text
<a> - Anchor tag for links (more information below)
<br> - Break tag for text
<font> - Font tag for text
<img> - Image tag for embedding inline images
<li> - List item tag
<p> - Paragraph tag
<textformat> - Text format tag (more information below)
相关文档:
<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2007/09/04/adding-animations-and-effects-to-flex-tool-tips/ -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertic ......
看了很多Flex的书,关于Flex的生命周期自认为了解的还不错,但是突然上网上看到一个哥们用图表把Flex 的Application启动过程以及自定义组件的生命周期表达的非常清晰,很是佩服,特分享出来,内容如下:
Flex Custom Component LifeCycle
由 jexchan
撰写
http://blog.ityao.com/archives/169
......
Flex应用开发过程中如需要灵活的在不同组件(如A与B,父与子)之间响应事件,传递参数等功能时就会使用自定义事件(Event)机制,下面通过一个事例分七步,通过自定义Event和EventDispatcher两种机制实现事件交互和参数传递;
事例描述: 有一个父亲“parentApp.mxml&rd ......
<?xml version="1.0"?>
<!-- charts/MemoryGraph.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
initialize="initTimer()">
<mx:Script>
<!--[CDATA[
import flash.utils.Timer;
import flash.events.TimerEve ......
<?xml version="1.0"?>
<!-- charts/StandardEffectTriggers.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="init()">
<mx:Script>
<!--[CDATA[
import mx.collections.ArrayCollection;
import mx ......