首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > flex >

Flex中应用Embed嵌入元素

2012-09-06 
Flex中使用Embed嵌入元素可以在Flex应用程序中嵌入各种元素。被嵌入的元素将编译进SWF文件。它们不是在运行

Flex中使用Embed嵌入元素

可以在Flex应用程序中嵌入各种元素。被嵌入的元素将编译进SWF文件。它们不是在运行时载入的,所以不必为应用程序部署原元素。

?

可以嵌入的图像格式有PNG、JPEG、GIF。嵌入后可以同时使用它的多个实例。

下面的例子使用[Embed]原标签经image嵌入应用程序,并且采用绑定ActionScript类的形式。这就可以绑定Image控件的source属性到Logo类。可以绑定Logo类到任何可以使用image的组件属性上,比如Button控件的icon属性。

例子:
http://yecon.blog.hexun.com/29628260_d.html -->http://yecon.blog.hexun.com/29628260_d.html --><!-- http://yecon.blog.hexun.com/29628260_d.html -->http://yecon.blog.hexun.com/29628260_d.html -->http://yecon.blog.hexun.com/29628260_d.html -->http://yecon.blog.hexun.com/29628260_d.html -->100%"/>    </mx:Application>

?

热点排行