Sunday, April 4, 2010

setting a background image for headers?

I am currently working on a flex app and have come across
some design changes I would like to make. I would like to take an
accordion and make each header for each section a different image.
so Section 1 would be image 'A', section 2 would be image 'B' and
so on. These images would stay the same for each section no matter
what event occurs. Can this be done through css, or skinning, or
maybe a combination of the two. If so, are there any tutorials on
this?

Thanks

-Richsetting a background image for headers?
If the sections of your accordion are VBox components (or
some other component with an ''icon'' property), you just have to set
those icon properties, and you will get icons on your headers.



i.e...



%26lt;mx:Accordion%26gt;

%26lt;mx:VBox
label=''Nodes''icon=''@Embed('assets/image/mail_24.png')''%26gt;

%26lt;/mx:VBox%26gt;

%26lt;/mx:Accordion%26gt;

No comments:

Post a Comment