# Mc problem in external swf

**URL:** <https://forum.kirupa.com/t/mc-problem-in-external-swf/153119>\
**Category:** Uncategorized\
**Created:** [June 29, 2005, 1:05pm UTC](https://forum.kirupa.com/t/mc-problem-in-external-swf/153119 "2005-06-29T13:05:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Melissa\_Anne](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@Melissa\_Anne](https://forum.kirupa.com/u/Melissa_Anne)\
**Post date:** [June 29, 2005, 1:05pm UTC](https://forum.kirupa.com/t/mc-problem-in-external-swf/153119/1 "2005-06-29T13:05:57Z")

</div>

Hi,

I am calling an external swf in my main scene. It displays ok but it doesnt play the animation(easing picture) in it. Is the code correct? Is it a root problem?

Thank for helping!  
Melissa Anne

MovieClip.prototype.easeXY = function(x, y) {  
this.onEnterFrame = function() {  
this.\_x = x-(x-this.\_x)/1.2;  
this.\_y = y-(y-this.\_y)/1.2;  
};  
};  
this.onEnterFrame = function() {  
if (\_root.mask.hitTest(\_root.\_xmouse, \_root.\_ymouse)) {  
slidePic();  
}  
};  
slidePic = function () { diffX = \_root.\_xmouse-this.\_x;scaleX = diffX_100/\_root.mask.\_width;targetX = -scaleX_(\_root.pic.\_width-\_root.mask.\_width)/100;diffY = \_root.\_ymouse-this.\_y;scaleY = diffY_100/\_root.mask.\_height;targetY = -scaleY_(\_root.pic.\_height-\_root.mask.\_height)/100;\_root.pic.easeXY(targetX, targetY);};
