# Animation

**URL:** https://forum.kirupa.com/t/animation/281627
**Category:** Uncategorized
**Created:** [February 11, 2009, 1:50pm UTC](https://forum.kirupa.com/t/animation/281627 "2009-02-11T13:50:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![vxd](https://avatars.discourse-cdn.com/v4/letter/v/848f3c/32.png) [@vxd](https://forum.kirupa.com/u/vxd)
#### Post date: [February 11, 2009, 1:50pm UTC](https://forum.kirupa.com/t/animation/281627/1 "2009-02-11T13:50:04Z")

</div>

I have an animation that has mask in it.  
I’m using actionscript to set the mask.  
The problem I am having is all the mask after frame 1 doesn’t work. When I trace the movie clip name it says null.  
I know it’s because flash can’t access movie clip’s name because hasn’t loaded yet.

So the question is how do I do it?

I have the AS in a .as. I have tried putting the as on the first frame, same thing.

The only way I know to make it work is to add the AS on each of the key frame which will be a pain to do.
