# AS3 Error : #1009: Cannot access a property or method of a null object reference

**URL:** <https://forum.kirupa.com/t/as3-error-1009-cannot-access-a-property-or-method-of-a-null-object-reference/329077>\
**Category:** flash\
**Created:** [July 18, 2012, 9:38am UTC](https://forum.kirupa.com/t/as3-error-1009-cannot-access-a-property-or-method-of-a-null-object-reference/329077 "2012-07-18T09:38:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LouisiX](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@LouisiX](https://forum.kirupa.com/u/LouisiX)\
**Post date:** [July 18, 2012, 9:38am UTC](https://forum.kirupa.com/t/as3-error-1009-cannot-access-a-property-or-method-of-a-null-object-reference/329077/1 "2012-07-18T09:38:17Z")

</div>

Hi

I’ve been working on this flash project and having trouble with adding a new button selector:

public function selectColor(event:MouseEvent) : void  
{  
var \_loc\_2:\* = “f” + event.currentTarget.chassisColor;  
this.iColor\_01.gotoAndStop(“fOff”);  
this.iColor\_02.gotoAndStop(“fOff”);  
this.iColor\_03.gotoAndStop(“fOff”);  
this.iColor\_04.gotoAndStop(“fOff”);  
this.iColor\_05.gotoAndStop(“fOff”);  
this.iColor\_06.gotoAndStop(“fOff”);  
this.iColor\_07.gotoAndStop(“fOff”);  
event.currentTarget.gotoAndStop(“fOn”);  
this.iChassis.gotoAndStop(\_loc\_2);  
return;  
}// end function

The debugger keeps crashing at this point: this.iColor\_07.gotoAndStop(“fOff”);

[FONT=Verdana]The full project is here if you would like to see it in context:  
[/FONT][http://dl.dropbox.com/u/19065571/help.zip](http://dl.dropbox.com/u/19065571/help.zip)  
[FONT=Verdana]  
[/FONT]
