Flex-UIComponents

Flex 3 Component Explorer

Website / Blog : www.how-to-code.com

Contact : This e-mail address is being protected from spambots. You need JavaScript enabled to view it

The Flex 3 Component Explorer is a good way to browse through Flex 3 Components. http://examples.adobe.com/flex3/componentexplorer/explorer.html

If you're looking at this you might be interested in looking at Tour de Flex as well! Which is another component based explorer apart from with 3rd party components that are amazing!

 

Broken Image Skin

Written by Administrator

brokenImageSkin in Flex

In Flex you have an Image showing a broken image link if you have not set an image on it. How do you get it to not show the broken image link? You do this by setting the broken image skin, you can also sent the broken image skin to null. The mx:Image then does not show the broken image link.

 

1
 id="backgroundImage" brokenImageSkin="{null}" />

 

 

 

Flex Datagrid Remove Headers

Website / Blog :  www.how-to-code.com

Contact :  This e-mail address is being protected from spambots. You need JavaScript enabled to view it

To remove the headers from a Flex Datagrid set the showHeaders property to False. i.e. showHeaders="false".

   

Call a Method From Within an MXML that is in a Viewstack

Written by Philip

Website / Blog : www.how-to-code.com

Contact : This e-mail address is being protected from spambots. You need JavaScript enabled to view it

Say you have a Viewstack. You have many MXML classes in that viewstack.
When you hit one of those MXML items you wish to call a method in that MXML item, everytime the MXML item is hit. You also want to call the method from within the MXML itself.

You could try using show in Flex, example below;

ie. Here is one of the MXML classes in the Viewstack. This calls initCongratulationsScreen() method when the MXML class in the viewstack is clicked.

 

1
2
3
4
5
6
7
8
 xmlns:mx="http://www.adobe.com/2006/mxml" 
width="100%"
height="100%"
verticalScrollPolicy="off"
horizontalScrollPolicy="off"
horizontalAlign="center"
verticalAlign="middle"
show="initCongratulationsScreen()">