# CS4 AS2 Help needed!

**URL:** <https://forum.kirupa.com/t/cs4-as2-help-needed/318792>\
**Category:** flash\
**Created:** [January 30, 2011, 8:26pm UTC](https://forum.kirupa.com/t/cs4-as2-help-needed/318792 "2011-01-30T20:26:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lgreenwald](https://avatars.discourse-cdn.com/v4/letter/l/977dab/32.png) [@lgreenwald](https://forum.kirupa.com/u/lgreenwald)\
**Post date:** [January 30, 2011, 8:26pm UTC](https://forum.kirupa.com/t/cs4-as2-help-needed/318792/1 "2011-01-30T20:26:32Z")

</div>

Hi there!

I’m using the following bit of AS2 on a couple of mc’s of my project so I would like to use the specific instance name in this:

onClipEvent(enterFrame){  
this.\_x = this.\_x + (\_root.intSlideToX - this.\_x ) /5;  
this.\_y = this.\_y + (\_root.intSlideToY - this.\_y ) /5;   
}

It needs to call printMC, specifically.

Here’s what’s on the button:  
on (release) {  
\_root.intSlideToX = 642.5  
\_root.intSlideToY = -187.3  
}

printMC is NOT on the root level but the button is.

Any help would be wildly appreciated!
