Currently Browsing: Experiments

ActionScript 3 Error Codes – Error #1009: Cannot access a property or method of a null object reference

There are a few reasons why one could get this error code. The most annoying of them all – declaring but not initializing variables. Here’s an example: Incorrect: var myNumber:Number; Correct: var muNumber:Number=0; Always declare and initialize all variables. And while at it, have a look at all the error codes with description here: http://livedocs.adobe.com/flex/201/langref/runtimeErrors.html
read more

ActionScript 3 APIs: YouTube

Some time ago I had the bad luck of having to look into integrating a YouTube video into Flash, using ActionScript 2. I quickly realized that this process was painful – even though unlike Vimeo, it was at least possible. Imagine my joy when I had to look into this again, this time using AS3. Only this time, it was a pleasure integrating YouTube into Flash. The process is extremely well documented on Google Code. The process and result I got, below:
read more