Experiments

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

Gorjan Ivanovski : June 7, 2010 5:27 pm : Experiments

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

Leave a response »

ActionScript 3 APIs: YouTube

Gorjan Ivanovski : June 7, 2010 1:36 pm : Experiments

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:
more »

Leave a response »
« Page 1 »