Hi, in my application, is it possible to combine programmatic skinning,
with graphical skinning and css styling? For instance, I would like to
be able to change between a selection of skins, but I would like them to
be compromised of the 3 different types of skins.

 

e.g. At the moment I have a tiled background skin which gets applied to
a canvas for the header of my application. The header contains an image
box which will contain the image of the application. So I would like to
be able to change the tiled background and the image of the application
name on the fly (at runtime).

 

Is this possible? And if it is, how? If not, what is the best way of
grouping specific styles together?

 

This is my code so far, what I want to avoid is having to change several
lines of code when I change the skin.

 

<?xml version="1.0" encoding="utf-8"?>

<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"; height="63"
width="100%"

             backgroundColor="#FFFFFF"

             borderSkin=" skins. titlePanel.TitlePanelBackground"

             >

             <!-- TODO: Put this into a skin!!! -->

            <mx:Image x="10" y="10" height="43" width="322">

                        <mx:source>@Embed(source='/skins/
titlePanel/title.png')</mx:source>

            </mx:Image>

</mx:Canvas>

 

 

Any ideas? Thanks!

 

Mark

 

 

Reply via email to