Blog Archives

COMMUNICATION BETWEEN OBJECTS IN OBJECTIVE C AND SWIFT COMPARED WITH ACTIONSCRIPT – PART 5

Events Well, this is the final blog post in the series of communication between objects and for something familiar, events are available in Objective C and Swift too. The equivalent of ActionScript’s EventDispatcher is called NSNotificationCenter. Rather than each display

Tagged with:
Posted in Flash, Objective C, Swift

COMMUNICATION BETWEEN OBJECTS IN OBJECTIVE C AND SWIFT COMPARED WITH ACTIONSCRIPT – PART 4

Blocks/Closures Blocks are another way that Objective C performs callbacks. Flash and Swift uses this technique as well, where they are called closures. Basically this involves passing in a function/method/message to the child, whilst maintaining the focus of the parent.

Tagged with: ,
Posted in Flash, Objective C, Swift

Communication between objects in Objective C and Swift compared with Actionscript – part 3

Delegates Rather than passing the method itself to be called back, another callback strategy is to pass in an object that contains the callback methods. Delegation is such a design pattern, another way that children in Objective C and Swift

Tagged with:
Posted in Flash, Objective C, Swift

Communication between objects in Objective C and Swift compared with ActionScript Part I

When I began using Objective C, coming from ActionScript, I was a little overwhelmed at the myriad ways that a child component can send messages to its parent. ActionScript seems sort of easy now, since generally (at least since AS3)

Tagged with:
Posted in Flash, Objective C, Swift

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

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