# AS 2 Class Question

**URL:** <https://forum.kirupa.com/t/as-2-class-question/116277>\
**Category:** Uncategorized\
**Created:** [July 16, 2004, 2:45am UTC](https://forum.kirupa.com/t/as-2-class-question/116277 "2004-07-16T02:45:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daheroes](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@daheroes](https://forum.kirupa.com/u/daheroes)\
**Post date:** [July 16, 2004, 2:45am UTC](https://forum.kirupa.com/t/as-2-class-question/116277/1 "2004-07-16T02:45:23Z")

</div>

Ok… I have a question regarding methods within a class.

I currently have a class that has a method that creates new duplicates of a clip on the screen, changes some of their properties (such as color, and text display), and then arranges them in a straight column.

Inside that method, I have some clipEvent Statements for each button.

```auto

currentButton.onRollOver = function() {
	this._alpha = 70;
	expandButton(this);
};
currentButton.onRollOut = function() {
	this._alpha = 100;
	shrinkButton(this);
};

```

Now, the two functions that are called, expandButton() and shrinkButton(), will not execute. (they are other functions built into this class.)

What would cause this? And more importantly, how might I go about fixing it? 🙂 (Currently I’ve just copied the code from each function into the clipEvent functions, which works.) Is there any other way to remedy this?
