Blog Archives

The Perfect Storm – AIR iOS simulator/TLF issues

Was making changes to an app built with Flash for iOS, when I discovered that incompatibilities between the new XCode and Flash means that no longer(at the time of writing) is it possible to test or debug on the iOS simulator nor on the

Tagged with: ,
Posted in AIR

Punctuation in RTL text in Objective C

In the subtitles project I’m working on, I had the need to display Hebrew and Arabic, both RTL (right to left) languages. Having not worked with RTL text before, I wasn’t aware of the headache they can be, especially when

Tagged with: , ,
Posted in Objective C

Optional parameters in methods in Objective C

Methods in Objective C are actually called messages but they’re often referred to as methods, a more commonly used terminology. Optional parameters are treated in an interesting way in Objective C. Basically there are no optional parameters! In fact the

Tagged with: ,
Posted in Objective C

Default String representation of an NSObject

In Actionscript, if you subclass Object, and you want a default string representation of your subclass, you just implement the method ‘toString’. For example the following: In Objective C, it’s very similar, however instead of ‘toString’ you use ‘description’.

Tagged with: ,
Posted in Objective C

Getters and Setters in Objective C

Doing a lot of Objective C lately, thought it worthwhile to write a few key differences with Actionscript. To begin with today – getters and setters! Properties in Objective C are automatically given setters and getters eg: is automatically given:

Tagged with:
Posted in Objective C

the trick for registering a class for shared object

registerClassAlias is a great way for SharedObject to recognise the class type that you’re storing rather than just a random object. However – something that seems to be undocumented – I’ve discovered that the constructor of the class you’re registering

Tagged with: ,
Posted in Flash

Publishing Android app in the Air Developer Tool

I’ve been working on an Android app lately, built in ActionScript. There’s a problem within the Flash IDE when publishing an Android app, that the icons available haven’t yet been updated to include 96×96 and 144×144. There’s been talk of

Tagged with: , , , ,
Posted in AIR, Flash

binding functions

I’ve been working on a Space Invaders style game with the request from the client that it be “developed in HTML5 and works in IE8”.(!!) A bit of a contradiction in terms. Google Chrome Frame seemed like a possible solution

Tagged with: ,
Posted in JavaScript

State Manager

I was working recently on a MovieClip which had several different states, where the elements were in different positions, or in some states certain elements didn’t exist. I guess there are two common solutions to dealing with this – 1:

Tagged with: ,
Posted in Flash

Custom components – order of parameters

A pain with parameters in custom components is that the order is set to alphabetical, and there’s nothing you can do about it. It’s a pain, because you might want better consistency to your parameters in different components, or to

Tagged with:
Posted in Flash