Category: "Actionscript 3"

Swift: ARC vs Flash GC

In ActionScript 3, memory is managed through the help of a garbage collector that allocates and deallocate objects through the application lifecycle. The garbage collector (GC) allocates memory when a new object is created, scans the objects graph periodically, detects unreferenced objects and deallocated them, pretty useful. AS3 is not the only language that relies on garbage collection, C# with Mono, JavaScript or Java all rely on garbage collection. On paper,

Read more

Swift: Overflowing

As you guys know, I always loved playing with binary stuff, and one of the frustrating thing in ActionScript has always been the lack of more granular data types. In ActionScript 3, whatever type you use, it will either occupy 64 or 32 bits in memory, even for a simple boolean. Not super optimized. So if you were to work with a byte (which is 8-bit), the smallest data type you could use

Read more

PlayScript, AS3 on steroids, powered by Mono

Zynga released this week an open-source project called PlayScript, allowing ActionScript 3 developers to target mobile platforms leveraging the Mono runtime. For the context, Mono is an open-source implementation of the .NET runtime, with support for C#, F# and other languages. You want to develop or reuse a library developed with these languages? Like an AI library using beautiful F#? No problem. (F# anyone?) Mono, allows you to target mobile

Read more

SWF and AMF3 specifications update

We are really happy to announce that we just updated the SWF (SWF19) and AMF3 specs with the latest information. I promised this to you guys a long time ago, this will give you the latest details if you are working with both formats. Some things were either missing inaccurate in both specs, so we fixed that. The AMF3 specification had some types missing like Vector and Dictionary that we introduced in Flash

Read more

Understanding Flash Player with Adobe Scout

Michael and Mark from the Scout team just published an awesome article on the internals of Flash Player and how it relates to Scout. I am sure you guys will love it. The article is available here on Devnet. The article starts with an overview, then dives into details like how Flash Player instances work, the core components, ActionScript 3 event handling and how “core loop”, the beating heart of

Read more