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') )" />

Receive email notification via email 博客有新内容通知我

Don't want to miss new papers in your field? Check out Stork we developed:

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...
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...
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 *