Softologia - Flex,PHP,C++,C# ,JavaScript newsletter

Flex Panel with HTML title - or Flex panel with colors

In the Panel class in flex you have a "title" property to set the title of the panel.
It get a text value and shows it as the title.
I needed something more

I needed a title with colors to catch the eye.
Text controls in flex have a property called "htmlText" that can get html value, but the title property of the panel does not get html

Cannot resolve reference to bean 'sessionFactory' problem

not long ago i changed my a applicationContext.xml file and added some dependency to a bean

suddenly i get this error on start up

Is it possible to show "No data found" on datagrid/advance datagird in Flex

In order to show "No Data" message above the DataGrid when there is no data in it we can use the following technique:

1. create a canvas and place the data grid on it
2. place also a HBox/VBox on that canvas and in it place a label with the message you want (I.E "no data")
3. Control visibility of the HBox by using binding with the DataGrid length

See code

How to iterate over the datagrid columns

How to iterate over the data grid columns

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

How to draw Alternative Row Background in TileList

How to draw Alternative Row Background in TileList?
TileList inherits from TileBase. TileBase has a function called "drawTileBackground".

How do we select the color for the background color of the tile? We can create a class that extends TileList and override this function in order to change this color.

Preventing From SWF files from showing images or objects out of the FLEX SWFLoader stage

So the story is like this. I was using a FLEX SWFLoader to load some external SWF files, these SWF files have some objects in them and when played the objects(in this case images) appear out of the border of the SWFLoader. It seams that the images expand out of the border and hide other GUI elements that are near the SWFLoader.

FLEX Binding and function calls

This short example is meant to demonstrate the usage of data binging in FLEX to invoke method calls. Copy the code to an editor to be able to use the line numbers that will be specified later


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

Syndicate content