# Updated CS4, code got borked

**URL:** https://forum.kirupa.com/t/updated-cs4-code-got-borked/310344
**Category:** flash
**Created:** [June 8, 2010, 3:07am UTC](https://forum.kirupa.com/t/updated-cs4-code-got-borked/310344 "2010-06-08T03:07:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![SplashKhat](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@SplashKhat](https://forum.kirupa.com/u/SplashKhat)
#### Post date: [June 8, 2010, 3:07am UTC](https://forum.kirupa.com/t/updated-cs4-code-got-borked/310344/1 "2010-06-08T03:07:04Z")

</div>

I have two MC’s on stage,

MCmenu is a button array,  
MCtext is a collection of text with frame labels. It’s labeled as MCtext

The menu buttons tell MCtext to play the frame label as the button clicked.

This _used to work_, but Flash was laggy as hell so I updated it. Now the same code returns #1009: Cannot access a property or method of a null object reference. at MCmenu/itemClicked()

```auto
function itemClicked(butn:Event):void {
  parent.MCtext.gotoAndPlay(SomeArray[butn.currentTarget.label);
}

```

I’ve tried just using a frame number, but still the same #1009  
I’ve tried the Script Assist to target the MC on the stage:  
using root.MCtext… still the same #1009  
using this.MCtext… returns a #1010

Is this fixable? or is Flash just borked.
