# Edit properties of mc that doesn't stay loaded

**URL:** <https://forum.kirupa.com/t/edit-properties-of-mc-that-doesnt-stay-loaded/299879>\
**Category:** flash\
**Created:** [November 12, 2009, 5:49am UTC](https://forum.kirupa.com/t/edit-properties-of-mc-that-doesnt-stay-loaded/299879 "2009-11-12T05:49:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikiekwoods](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@mikiekwoods](https://forum.kirupa.com/u/mikiekwoods)\
**Post date:** [November 12, 2009, 5:49am UTC](https://forum.kirupa.com/t/edit-properties-of-mc-that-doesnt-stay-loaded/299879/1 "2009-11-12T05:49:03Z")

</div>

I have a dilemma. \*\*\*I want to change the color of a movie clip that doesn’t always stay loaded on the timeline \*\*\*(equivalent to changing tint in color effects). In other words, the movie clip has some frames on the timeline where it isn’t present.

**This is the code** I use to change the color of my movie clip. It only works when the movie clip is on every frame of the timeline (which I don’t want).

```auto
                var color2:ColorTransform = folding1.transform.colorTransform;
                color2.color = 0x99628B;
                folding1.transform.colorTransform = color2;

```

**I get this error** because the it is trying access the color of a movie clip that doesn’t exist yet.  
_TypeError: Error #1009: Cannot access a property or method of a null object reference._

**I am trying to find a workaround. Ideas? Solutions?**
