开发者

Is there a way to import flash swf files into Flex?

I need "loading" animations to import into Flex for a search engine so the person knows something is being searched. I'm not sure how to do this.... I开发者_JAVA百科s it through swc files?


Check out the [Embed] metadata tag.

[Embed(source="assets/Whatever.swf", symbol="Icon")]
public static var Icon:Class;

Which can then be used as an icon for many components that support icons, like buttons, or as the source for an Image component:

<mx:Button icon="{Icon}" />
<mx:Image source="{Icon}" />


You may also wanting to consider making flash based indeterminate progress bar skins, so that your loading animations are implemented as part of the flex framework: http://livedocs.adobe.com/flex/3/langref/mx/controls/ProgressBar.html - the adobe explanation is a bit out of date, but it still works: http://www.adobe.com/devnet/flex/articles/flex_skins.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜