Event.ACTIVATE and WMode
Another classic case of finding things out the hard way: in ActionScript Event.ACTIVATE and Event.DEACTIVATE do not fire if the swf is embedded with wmode set to transparent. I was working on a project that needed to know when the user switched focus away from the swf, and couldn’t figure out why the event would fire in the standalone player but not when run in the browser.
Changing Filename Case in SVN
This one has bugged me for a long time. During a project where things get passed from developer to developer or designer to designer things often get renamed to the same name, only with a different case. For example, myFlv_IN.flv becomes myFlv_in.flv. I used to think you had to move the files away, rename them, and then re-add them. Turns out if you simply include the full path to the repository it'll do the rename in place for you.
For example:
-
svn mv -m 'rename' http://my.repository.com/myFlv_IN.flv http://my.repository.com/myFlv_in.flv
More details can be found here, at the Subversion FAQ.
Back on the Ice
Hopped onto the ice for the first time in about six months. The Sled Dogs were having a practice and scrimmage, so I took the opportunity to shake off the rust. My stickhandling and shooting have definitely taken a hit during the layoff, but was a lot of fun to be skating again. Hopefully I'll get in a game before the season is over.
Flash, CDATA tags and line breaks in htmlText
This is probably obvious to most, but it caused enough of a headache that I'm writing to remind myself down the line: when assigning strings containing <br/> tags remember to set the TextField's multiline property to true. Otherwise it will happily ignore the HTML line break.







