The only (easy) way to do a:hover styles is to apply a styleSheet. You don’t get an event though, you just get a style change from the regular <a> style to the a:hover style. I was hoping to find a way to set the window status message like you’d get in HTML. And I did […]


Continue Reading


Nothing’s quite as fun as staying up until 2am hacking an entity encoding problem. We’re committed to keeping this excitement all to ourselves (so you don’t have to). Technically, XML only supports &amp; &lt; &gt; &quot; &apos;. All the others are XHTML. Flash also supports &nbsp;. Flash doesn’t natively understand anything else, but you can […]


Continue Reading


See if you can make heads or tails out of this behavior. I couldn’t. var myXML:XML = <doc><foo>&mdash; &amp; &lt; &gt; &quot; &apos; &nbsp;</foo>&lt/doc> trace (myXML) // &amp;mdash; &amp; &lt; &gt; ” ‘ ᅠ trace (myXML.toXMLString()) // &amp;mdash; &amp; &lt; &gt; ” ‘ ᅠ trace (myXML.toString()) // &amp;mdash; &amp; &lt; &gt; ” ‘ ᅠ trace […]


Continue Reading


You may have heard this elsewhere and not believed it (I did … didn’t?). If you want your (loaded) fonts to work in (loaded) flash movies, those movies may not (bold because I mean it) refer to those fonts. Don’ts: You may not put the field on stage, set it to the desired font, but […]


Continue Reading


I promised I’d show how to split html content into multiple textfields to get around the fact that Flash’s TextFields go nuts when you actually try to use the <img> tag. I do try to keep my promises. This post — QED. var inlineHtml:String = “”; var nodes = myXML.description.children() for each(var node in nodes) […]


Continue Reading


This site is quickly becoming (just as we planned it … Mu-hu-ha-ha!) a repository documenting things that took ages to figure out, we know we’ll need again, but not often enough to trust our (rapidly aging) memories. The fact that its public and you get to play along is a bonus. I say that because […]


Continue Reading


Rob noticed today that every time he re-opens his site design doc the save-for-web window forgets that he’s set it to “single slice” and not “all slices.” We fumbled for a solution for a bit before settling on this: an action that copies the current slice to a fresh document and then invokes save-for-web from […]


Continue Reading