# Please help loading movie :(

**URL:** <https://forum.kirupa.com/t/please-help-loading-movie/88359>\
**Category:** Uncategorized\
**Created:** [April 28, 2005, 5:17pm UTC](https://forum.kirupa.com/t/please-help-loading-movie/88359 "2005-04-28T17:17:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![indojepang](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/indojepang/32/39_2.png) [@indojepang](https://forum.kirupa.com/u/indojepang)\
**Post date:** [April 28, 2005, 5:17pm UTC](https://forum.kirupa.com/t/please-help-loading-movie/88359/1 "2005-04-28T17:17:20Z")

</div>

this swf works great when it standalone but when i load it (loadMovie), it don’t want to slide…☹ why??

i hope somebody can bright my day… thanks…

the fla is too big, heres the workin swf…

this is the action()

```auto
// this is the function
MovieClip.prototype.slideXX = function(endPosx, speed) {
	this.onEnterFrame = function() {
		if (this._x<=endPosx) {
			currentPosx = this._x;
			diffPosx = endPosx-currentPosx;
			movex = diffPosx/speed;
			this._x = this._x+movex;
			if (this._x>=endPosx) {
				this._x = endPosx;
				this.onEnterFrame = null;
			}
		}
		if (this._x>=endPosx) {
			currentPosx = this._x;
			diffPosx = endPosx-currentPosx;
			movex = diffPosx/speed;
			this._x = this._x+movex;
			if (this._x<=endPosx) {
				this._x = endPosx;
				this.onEnterFrame = null;
			}
		}
	};
};
// this is the action
subMenus.setMask(mask);
var startX = subMenus._x;
var jarak = subMenus._width-mask._width;
var const = jarak/mask._width;
this.onMouseMove = function() {
	var endPos = (_xmouse-startX)*(const);
	if (mask.hitTest(_xmouse, _ymouse, false)) {
		subMenus.slideXX(-endPos+startX, 5);
	}
};

```
