开发者

Embed sound in flex with variable String

I'm looking to do something like:

private static const fooDir : String = "foo";
[Embed(source = foo + "/foobar.mp3")]
private开发者_如何学Python var Foo:Class;

Flex is only accepting the string if it's written fully out as [Embed(source = "foo/foobar.mp3")]. Is there a way around this?


Unfortunately you can't place variables in Embed meta data (Flex 4). Possibly in future versions.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜