-
1. Re: Flex 4.5.1 SDK & default-background-color Compiler Argument
Simeon Bateman Jun 20, 2011 3:02 PM (in response to mprzybylski)Hey There,
If you are using just and ActionScript Sprite you can use metadata to set the background color.
package { [SWF(backgroundColor="#FFFFFF")] public class Main extends Sprite { } } -
2. Re: Flex 4.5.1 SDK & default-background-color Compiler Argument
mprzybylski Jun 20, 2011 3:49 PM (in response to Simeon Bateman)Simeon,
Thanks for that, I had a brainfart and forgot you can have the properties defined in that manner. I changed it but it still wasn't working which made me realize I had to change the backgroundColor property on the view in Away3D. I realized this after trying the params for the class and then not adding the view (which had a white bg) and then i looked at the docs and bam, there it was. Thanks!
Matt
-
3. Re: Flex 4.5.1 SDK & default-background-color Compiler Argument
COM@MAN limited Aug 15, 2011 7:38 PM (in response to mprzybylski)good to hear! I'm using flex SDK v 4.5.1 too and the compiler arguments (more specifically -default-background-color) work great for me,
but it's wield that the metadata method doesn't work for me, I wonder if it's because I'm using flashdevelop instead of flash IDE or flex.
Jack

