RE: [flexcoders] Re: Flex 4 CSS

2011-08-25 Thread Davidson, Jerry
Sent: Wednesday, August 24, 2011 8:10 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex 4 CSS You can always use an image/BitmapImage as one of the children/elements of a container. Doing so affects value of numChildren/numElements and potentially other things in case

Re: [flexcoders] Re: Flex 4 CSS

2011-08-25 Thread Alex Harui
[mailto:flexcoders@yahoogroups.com] On Behalf Of Alex Harui Sent: Wednesday, August 24, 2011 8:10 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex 4 CSS You can always use an image/BitmapImage as one of the children/elements of a container. Doing so affects value

Re: [flexcoders] Re: Flex 4 CSS

2011-08-24 Thread Alex Harui
I explained in the previous reply. Everything has a cost, and we chose not to pack asset loading and positioning into the background of every container. It is pretty straightforward to add it in a custom skin for the few containers that need it. On 8/22/11 10:16 PM, The Real Napster

RE: [flexcoders] Re: Flex 4 CSS

2011-08-24 Thread Davidson, Jerry
To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex 4 CSS Jerry, the spark theme doesn't support backgroundImage. Every capability has a cost, and we chose not to make the container backgrounds as heavy as the Halo theme. It doesn't matter how many lines of code

Re: [flexcoders] Re: Flex 4 CSS

2011-08-24 Thread Alex Harui
Of Alex Harui Sent: Monday, August 22, 2011 11:35 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex 4 CSS Jerry, the spark theme doesn’t support backgroundImage. Every capability has a cost, and we chose not to make the container backgrounds as heavy as the Halo theme

Re: [flexcoders] Re: Flex 4 CSS

2011-08-23 Thread The Real Napster
I too have tried in many ways, but could not resolve the problem. Doing few more tests. BTW one option is to use addChild(); Something like this. var image : Image = new Image(); image.source = FSCalc/images/BannerBackground.jpg; image.scaleContent = true;

Re: [flexcoders] Re: Flex 4 CSS

2011-08-23 Thread The Real Napster
Hello Alex, Thanks for the note. I am wondering why new release build of flex/spark does't have this feature? Its up to user whether to use it or not. Background on components is the basic requirement of many clients now a days. Hope in future adobe will implement/add this feature. Thanks for the

RE: [flexcoders] Re: Flex 4 CSS

2011-08-22 Thread Davidson, Jerry
I tried both BorderContainer and Panel, but neither would display an image. I can get the background color to change, but not add an image. Perhaps a skin will work, but I can't get it to work so far. I've replaced the two lines of CSS with the default class panel skin which is over 300

Re: [flexcoders] Re: Flex 4 CSS

2011-08-22 Thread Alex Harui
Jerry, the spark theme doesn’t support backgroundImage. Every capability has a cost, and we chose not to make the container backgrounds as heavy as the Halo theme. It doesn’t matter how many lines of code are in the skin if it doesn’t include the logic to load and position images. On