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嵌入到html:
用swfobject,下载的.js地址:http://www.adobe.com/devnet/activecontent/articles/devletter.html
在你的 HTML 页面头部<head>区嵌入这个脚本文件:<script type="text/javascript" src="swfobject.js"></script>
在你的 HTML 中写一个用来放 Flash 的容器,比如<div> ......
<?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 ......
这里面有许多特效很酷,希望对大家有帮助。 1.旋转 效果:http://www.alex-uhlmann.de/flash/adobe/blog/distortionEffects/effectCube/ 代码:http://weblogs.macromedia.com/auhlmann/archives/DistortionEffects.zip
2.画布按钮 http://dougmccune.com/blog/2007/06/01/new-component-canvasbutton-added-to-flexlib/ ......