Tags vs Text

Over at my work blog, we have just uploaded a post about how we created a Flash Text Cloud for one of our recent clients.

Bottom line, if you are in need of a faux tag cloud made in Flash, there is both a download and example for you to enjoy. And if you’re interested in tossing up how to go about creating your own tag (or text) cloud, we’ve also outlined the reasons we used Flash and not CSS.

Hello Facebook!

So, at work we are currently doing some testing out of the Facebook API, and short of coming up with the next best idea on the web, I decided to re purpose a version of Solitaire I made a few years back in Flash.

So here is is for everyone to enjoy :

Solitaire

Actionscript 3 XML Weirdness

Weird. Have just been working on a project in AS3, and have been scratching my head over a blank trace from what (as far as I could see) should be a simple XML lookup.

[kml_flashembed movie="/blog/swf/xml_trace.swf" height="350" width="300" version="9" /]
Direct link to SWF

An example of the XML im using :

<pictures>
  <img src="example.jpg" />
</pictures>

The ActionScript :

function BuildImageList(vXML:XML):void{
  trace(vXML.pictures.img);
}

As far as I was aware, this should output <img src=”example.jpg” />, but it doesn’t – it just outputs blank. However, if I change the XML file and add a second <img /> node :

<pictures>
  <img src="example.jpg" />
  <img src="example.jpg" />
</pictures>

… it works :| . As expected, it traces 2 <img /> nodes. Is this a bug, or am I missing something?