# Actionscript 2 - Class

**URL:** https://forum.kirupa.com/t/actionscript-2-class/252568
**Category:** flash
**Created:** [February 21, 2008, 10:24am UTC](https://forum.kirupa.com/t/actionscript-2-class/252568 "2008-02-21T10:24:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jamesodmitchell](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@jamesodmitchell](https://forum.kirupa.com/u/jamesodmitchell)
#### Post date: [February 21, 2008, 10:24am UTC](https://forum.kirupa.com/t/actionscript-2-class/252568/1 "2008-02-21T10:24:04Z")

</div>

Hello,

PLEASE PLEASE PLEASE HELP !!!

I have what is probably a very simple question. I am applying a class to a movieclip in the library. I have multiple instances of this movieclip on the stage, each with different instance names. In my class file I have functions for release and rollover with a trace("") at the moment which works.

My problem is I want to dynamically refer to the instance name of the movieclip. I have tried using “this.gotoAndPlay” but “this” does not work as “this” refers to the class object NOT the instance of the movieclip.

What can I use to refer to the instance name of the movieclip dynamially NOT the class?

Thanks

James + Darko  
Check out our website - [WE ARE VI](http://www.wearevi.com)
