在一个项目中,我有几个类似的应用程序,它们在这里和那里略有不同。像一些包含的图标/图像。为了帮助组织,我看到自己以下面的样式嵌入图标,但在[Embed]元标记中使用变量不起作用。 下面的代码包含在一个自定义组件中,所以我很容易应该能够为每个应用程序(包括组件)设置不同的图标。我如何解决这个问题?Flex动态嵌入
public var iconBase:String = "/icons/red/";
[Embed(iconBase + "play.png")] [Bindable] public var icon_play:Class;
[Embed(iconBase + "stop.png")] [Bindable] public var icon_stop:Class;