Blog Archives

Embedded fonts disappearing when loaded into another SWF

I once found that when an AS3 flash movie(let’s call it parent) that contained a UIComponent, loaded another AS3 flash movie(let’s call it child) that contained a UIComponent with embedded fonts, the component within the child lost its embedded fonts.

Tagged with: ,
Posted in Flash

Component styling utility function

In addition to an earlier post here: I have put the sample code into a simple utility function that will apply a TextFormat style to any component or TextField, without needing to consider the specific syntax of the component. You

Tagged with: , , ,
Posted in Flash

‘as’ isn’t the equivalent of typing.

I guess I hadn’t thought too deeply about it, but I always thought that the ‘as’ Operator was the equivalent of typing a variable. pseudo code example: or to give a real world example: or alternatively: But this code will

Tagged with:
Posted in Flash

ComboBox direction

I needed to force the Flex ComboBox to open in a specific direction. (I’m using a HTML Component FCKEditor, which has to be on top, so I need to aim the ComboBox away from it, so it doesn’t animate underneath

Tagged with:
Posted in Flex

"Color" component parameter

I never really understood why when you define a component parameter, you can define its type. Wouldn’t the variable type that the parameter is related to, always define the type of the parameter? Aren’t parameter and variable types synonymous? Well,

Tagged with: ,
Posted in Flash

Skinning the DateField icon

When adjusting the Date icon skin in a DateField component, its not sufficient to just use the css that Flex auto-generates when importing the Skin Artwork. In addition to ‘skin’, you must also specify that upSkin, overSkin, downSkin, disabledSkin are

Tagged with: ,
Posted in Flex

adding classes dynamically Part II

A little addition to a previous post on adding symbols dynamically from the library. I was having difficulty adding classes(that weren’t in the library) dynamically – they weren’t being recognised. var classRef:Class = getDefinitionByName(“Square”) as Class; var shape:IShape= new classRef()

Tagged with: ,
Posted in Flash

CS4 component icon library bug.

I’ve been wondering why items in my library disappear occasionally – including the library buttons and column headers! I’ve narrowed the problem down to a CS4 bug. Steps to reproduce bug: 1.Create a MovieClip 2. Select ‘Component Definition’ 3. Add

Tagged with: ,
Posted in Flash

jerky raster animations

It has always bothered me that animations of raster images are always jerky when they get to the point of animating less than a pixel per frame. Flash assumes that rasters should only live on the exact pixel. This can

Tagged with: , ,
Posted in Flash

Stage dimension limitation – 214×137

I was trying to work out why the Flash Player Settings window was not appearing when i attached a webcam to a Video object, when i discovered that my stage was too small. Although i can’t find documentation for this

Tagged with:
Posted in Flash