Archive for the ‘ActionScript’ Category

LineLimitText Component: Text With maxLines Property

Tuesday, June 17th, 2008

A little while ago I worked on a project that required some Flex screens to have text fields display dynamic text using a specified maximum number of lines. A simple solution would be to merely define a height on a Text component. In this case there were other components that flowed in the layout below [...]

Read full blog post: LineLimitText Component: Text With maxLines Property

Better Unit Tests With FlexUnit

Tuesday, June 17th, 2008

This is probably not news. In fact, it’s definitely not _new_ news on account of I learned about it from Theo Hultberg’s blog from a post from last year (http://blog.iconara.net/2007/02/06/flexunit/). However, it was, rather embarassingly, news to me, and therefore I’ll post it just in case someone else doesn’t know this. You can write unit [...]

Read full blog post: Better Unit Tests With FlexUnit

Flash Video: The Best of Both Worlds (or how I learned to love Cue Points)

Wednesday, June 11th, 2008

Video is the word. It is now used every capacity on the net. The idea of using video with animation is not new. Some would swear by using After Effects solely and not consider building flash timeline animation with video. In some case, you use what you know. And at The Morphic Group, we know [...]

Read full blog post: Flash Video: The Best of Both Worlds (or how I learned to love Cue Points)

Anonymous Functions From ExternalInterface

Thursday, June 5th, 2008

I’ve been working on an ActionScript library for a project. One of the recent and new requirements for this library is that it has to interface with a JavaScript API for a browser plugin. The JavaScript API for this particular plugin requires constructing instances of JavaScript objects, maintaining persistent references to those objects, calling methods [...]

Read full blog post: Anonymous Functions From ExternalInterface

Unique Local Connection Names

Friday, May 30th, 2008

Occasionally I have the sense that I might be doing something as a workaround that is completely unnecessary, as though I’m jumping through hoops, listening for an exact sequence of one hundred events, and then squinting my eyes and tilting the monitor just right in order to assign text to a text field when I [...]

Read full blog post: Unique Local Connection Names

Programmatic Skinning: Drawing formatted text into a bitmapdata object

Wednesday, May 28th, 2008

I came upon a challenge creating a custom ToggleButtonBar component. The challenge was to display dynamic text on each button while displaying button states (up, over, down, selected). This is not a problem when you have simple formatted text. You can assign and style the text via the label property of the button. But, I [...]

Read full blog post: Programmatic Skinning: Drawing formatted text into a bitmapdata object

Log From Flash or Flex to Firebug

Friday, May 23rd, 2008

I only just recently started using Firebug (www.getfirebug.com.) It seems it’s a popular way to debug JavaScript and HTML in Firefox. I use Firefox as my preferred browser, but working with Flex and Flash I rarely have to debug HTML or JavaScript. However, I was recently working on a project that required integrating ActionScript with [...]

Read full blog post: Log From Flash or Flex to Firebug

Custom AIR Badge

Thursday, May 15th, 2008

If you’re creating a custom AIR badge for a seamless install then you’ll need to load the air.swf files from the Adobe Website (http://airdownload.adobe.com/air/browserapi/air.swf) and call methods on the .swf once it has loaded. This is clunky for a few reasons: 1. Loading the .swf in order to call methods requires loading the .swf into [...]

Read full blog post: Custom AIR Badge