Learning Employee Directory 3.1 Style

25 sec read

Return to table of contents
CSS is very convenient to control the appearance of the user interface. Let’s see the following code snippet inside employeedirectory.css too see how to use styling.

 up-skin: Embed("/embed_assets/titlebar/help_up.png");
 over-skin: Embed("/embed_assets/titlebar/help_over.png");
 down-skin: Embed("/embed_assets/titlebar/help_over.png");

This snippet creates a style called appHelpButton. It defines how the button will behavior when the mouse is over or clicked on the button.

To use this style, ED includes the following code in employeedirectory.mxml

<mx:Style source="employeedirectory.css" />

And in TitleControls.mxml where the application help button is defined, style appHelpButton is used:

<mx:Button styleName="appHelpButton" click="dispatchEvent( new Event('showHelp') )" />


Want to receive new post notification? 有新文章通知我

How much money did I make from an app?

Undoubtedly some people are very successful in making money by developing a smartphone app. Back in 2012 I developed an app called “Handbook of Brain” which is a collected resources of brain anatomy, function and diseases. I put the app i
Xu Cui
27 sec read

Handy programs to visualize NIRS data (2): plotTopoMap

Often you need to view the spatial pattern of activation as in the example below. plotTopoMap allows you to do that. It probably only works for Hitachi devices where the spatial relationship between channels are known. In the above example, the activ
Xu Cui
37 sec read

Flash 3D video demo

Racer Ostrova Zombie
Xu Cui
0 sec read

Leave a Reply

Your email address will not be published. Required fields are marked *