I'd like to be able to specify the source of an Embed statement using a const rather than a string literal.
At the moment I have to do: public static const MY_ICON_PATH:String = "../assets/my_icon.png"; [Embed(source="../assets/my_icon.png")] private var MY_ICON_CLASS:Class; which is clearly not nice because I have to define the same path twice. However, I would like to do this (but this gives a compile-time error): public static const MY_ICON_PATH:String = "../assets/my_icon.png"; [Embed(source=MY_ICON_PATH)] private var MY_ICON_CLASS:Class; Any ideas? -- View this message in context: http://www.nabble.com/Using-a-const-to-specify-Embed-source-tp17159215p17159215.html Sent from the FlexCoders mailing list archive at Nabble.com.

