Actionscript 3 css上定义的Flex 3 swf资产

Actionscript 3 css上定义的Flex 3 swf资产,actionscript-3,apache-flex,flex3,Actionscript 3,Apache Flex,Flex3,我想在css上定义一个swf。我不想使用getStyle加载此swf。我需要这样的东西: CSS MXML 可能吗?如果SWFLoader无法使用,是否还有其他组件可以使用?可以通过调用StyleManager类的loadStyleDeclarations()方法来实现 StyleManager.loadStyleDeclarations("../assets/loading_bar.swf"); 以下是关于它的更多信息: <mx:SWFLoader styleName="loa

我想在css上定义一个swf。我不想使用getStyle加载此swf。我需要这样的东西:

CSS

MXML



可能吗?如果SWFLoader无法使用,是否还有其他组件可以使用?

可以通过调用StyleManager类的loadStyleDeclarations()方法来实现

StyleManager.loadStyleDeclarations("../assets/loading_bar.swf"); 
以下是关于它的更多信息:

<mx:SWFLoader styleName="loading" horizontalCenter="0" verticalCenter="0"/>
StyleManager.loadStyleDeclarations("../assets/loading_bar.swf");