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)
相关文档:
看了很多Flex的书,关于Flex的生命周期自认为了解的还不错,但是突然上网上看到一个哥们用图表把Flex 的Application启动过程以及自定义组件的生命周期表达的非常清晰,很是佩服,特分享出来,内容如下:
Flex Custom Component LifeCycle
由 jexchan
撰写
http://blog.ityao.com/archives/169
......
/**
* @author:ycccc8202
* @用途:注册事件进行传递参数的代理类
* @date:2007.8.26
* @example:
* import com.ycccc.utils.JEventDelegate
stage.addEventListener(MouseEvent.MOUSE_DOWN,JEventDelegate.create(mouseDownHandler,"a","b"));
function mouseDownHandler(e:MouseEvent,...arg) {
trace(e)
......
<?xml version="1.0"?>
<!-- charts/VerticalLineChart.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<!--[CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var expenses:ArrayCollection=new ......