# Easing MC and Container MC

**URL:** <https://forum.kirupa.com/t/easing-mc-and-container-mc/75130>\
**Category:** flash\
**Created:** [January 6, 2005, 7:27am UTC](https://forum.kirupa.com/t/easing-mc-and-container-mc/75130 "2005-01-06T07:27:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![oilcontrol](https://avatars.discourse-cdn.com/v4/letter/o/ba9def/32.png) [@oilcontrol](https://forum.kirupa.com/u/oilcontrol)\
**Post date:** [January 6, 2005, 7:27am UTC](https://forum.kirupa.com/t/easing-mc-and-container-mc/75130/1 "2005-01-06T07:27:03Z")

</div>

Dear all,

I’ve a problem here. Using one of the tutorial under “Best of Kirupa thread”, I managed to modify the script and get a resizable dynamic photo gallery working perfectly. Now, I have an external swf with the following script. It works fine independently but when I load it in the container MC of my photo gallery, it don’t. What’s wrong with the script and what do I need to double check and change? Thanks for any help in advance!

[AS]  
onClipEvent (load) {  
\_x = 0;  
\_y = 0;  
div = 5;

onClipEvent (enterFrame) {  
\_x += (endX-\_x)/div;  
\_y += (endY-\_y)/div;  
\_root.home.onRelease = function() {  
endX = 0;  
endY = 0;  
};  
\_root.works.onRelease = function() {  
endX = -250;  
endY = 0;  
};  
\_root.skills.onRelease = function() {  
endX = -500;  
endY = 0;  
};  
\_root.bio.onRelease = function() {  
endX = 0;  
endY = -200;  
};  
\_root.links.onRelease = function() {  
endX = -250;  
endY = -200;  
};  
\_root.contact.onRelease = function() {  
endX = -500;  
endY = -200;  
};  
}  
[/AS]
