Chakra Media blog

Archive for November, 2007

SWFAddress Design Template 2.0

With the release of SWFAddress 2.0 I figured now would be a good time to update my Flash design template to version two. The update includes the new SWFAddress 2.0 and SWFObject 2.0 as well as updated HTML embedding. The code has been cleaned up a bit the AS3 version loads a Flex app (blog reader) and includes the some AS3 font embedding just for fun.

Here’s a more detailed explanation.

UPDATE 1.13.09 – includes the new SWFAddress 2.2 and SWFObject 2.0 code

Download for AS2
View example

Download for AS3
View example

28 comments

htmlText with AS3 datagrid

Sort of.

After dealing with this little issue for longer than I would like to mention, I thought I’d post my findings so others won’t waste their time as well. I was able to get HTML formatted text to render within the cells of the (Flash CS3) DataGrid by using the help example of the MulitLineCellRenderer. In that example they used an override function for the drawLayout() method of the CellRenderer class to set the textField width and I just added this line below it.

textField.htmlText = textField.text;

In this example there are two ways to get HTML tags to render within the text. The first way is by using the labelFunction of the DataGridColumn and append some tags to your text. The other way is by using CDATA within the XML file.

There is an issue with getting the html links to actually work within the cell. It seems possible… but due to project deadlines I haven’t been able to attempt it. If anyone figures this out, I’d love to know about it ….

View the example


Download source: AS3DataGridHTML


29 comments