开发者

Embed sound in flex with variable String

开发者 https://www.devze.com 2023-01-20 13:00 出处:网络
I\'m looking to do something like: private static const fooDir : String = \"foo\"; [Embed(source = foo + \"/foobar.mp3\")]

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

精彩评论

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