# Reference objects on multiple frames from .as file

**URL:** <https://forum.kirupa.com/t/reference-objects-on-multiple-frames-from-as-file/275687>\
**Category:** Uncategorized\
**Created:** [November 17, 2008, 5:21pm UTC](https://forum.kirupa.com/t/reference-objects-on-multiple-frames-from-as-file/275687 "2008-11-17T17:21:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DashMasterful](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@DashMasterful](https://forum.kirupa.com/u/DashMasterful)\
**Post date:** [November 17, 2008, 5:21pm UTC](https://forum.kirupa.com/t/reference-objects-on-multiple-frames-from-as-file/275687/1 "2008-11-17T17:21:45Z")

</div>

I have a movie clip that has three frames, each frame contains unique objects that I would like to reference to, however, I am trying to reference the objects from an .as file for that movie clip, I find that I am able to reference the objects on frame 1 only, if I try to reference the objects on frame 2 or 3, I get an error stating the objects don’t exist, I found a way to fix this and that is to put the actual code inside of the frames, but I would much rather do this from the .as file, is there a way to do that
