Just finished adding my recent posts to my portfolio. Actually you could be reading this on my portfolio site right now….
Well not like it hasn’t been done before, but this time, i did it with Gaia. In the site.xml you have to add an asset
then in AS3:
var theXML : XML = IXml(Gaia.api.getPage("index").assets.blogRoll).xml; parseTheXML(theXML);
Not too shabby, then you dump everything into a TextArea and skin it appropriately. Unfortunately there are two very much needed work arounds I had to find in order to make the TextArea fit my taste. Actually they should both be implemented directly into the class. One was the sheer inability to work with StyleSheets whiles trying to use custom fonts within the textArea.
http://www.sharedknowhow.com/2008/07/fixed-flash-textarea-css-incompatibility/
Then the fact that in css if you declare the font family they have to be the name of the Font as it’s embedded, not as you set it in the export properties. It’s extremely frustrating but this function helps you figure out what that name should be:
import flash.text.Font; var allFonts:Array = Font.enumerateFonts(true); allFonts.sortOn("fontName", Array.CASEINSENSITIVE); var embeddedFonts:Array = Font.enumerateFonts(false); embeddedFonts.sortOn("fontName", Array.CASEINSENSITIVE); for(var i:int=0;i++) { trace(embeddedFonts.fontName); }
Then your css should read:
.desc { font-size:11px; font-family:"(fontName here)"; color:#FFFFFF; }
Then of course this always helps with cs3 components and skinning them:
http://www.gskinner.com/blog/archives/2007/05/variable_scroll.html



















