# \[Flash MX 2004\] Loading a variable attached to an instance

**URL:** <https://forum.kirupa.com/t/flash-mx-2004-loading-a-variable-attached-to-an-instance/228341>\
**Category:** flash\
**Created:** [June 7, 2007, 12:46am UTC](https://forum.kirupa.com/t/flash-mx-2004-loading-a-variable-attached-to-an-instance/228341 "2007-06-07T00:46:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mattastic](https://avatars.discourse-cdn.com/v4/letter/m/a587f6/32.png) [@Mattastic](https://forum.kirupa.com/u/Mattastic)\
**Post date:** [June 7, 2007, 12:46am UTC](https://forum.kirupa.com/t/flash-mx-2004-loading-a-variable-attached-to-an-instance/228341/1 "2007-06-07T00:46:53Z")

</div>

Man, I feel bad posting so soon after my last call for help, especially when the answer was so obvious. But I just can’t figure this out…

I have 25 instances of a movieclip “star”, duplicated and assigned variables using the following code:

```auto
for(n = 0; n < 25; n++) {
    star.duplicateMovieClip("star"+n, n+1000);
    with(eval("star"+n)) {
        startype = random(3);
    }
};

```

I now have it so that when I click on any instance of “star”, I’m taken to another frame, and in that frame I’d like to be able to look up the variable “startype” for that particular instance _only_. How exactly can I do this?

Thank you all for putting up with my horrible ignorance.
