# HELP! oh why won't it work

**URL:** https://forum.kirupa.com/t/help-oh-why-wont-it-work/15872
**Category:** Uncategorized
**Created:** [March 18, 2003, 9:43pm UTC](https://forum.kirupa.com/t/help-oh-why-wont-it-work/15872 "2003-03-18T21:43:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![invisible7](https://avatars.discourse-cdn.com/v4/letter/i/779978/32.png) [@invisible7](https://forum.kirupa.com/u/invisible7)
#### Post date: [March 18, 2003, 9:43pm UTC](https://forum.kirupa.com/t/help-oh-why-wont-it-work/15872/1 "2003-03-18T21:43:26Z")

</div>

Hi, i have a movie that loads a 2nd movie on a button action. The second movie has some other buttons (“co” & “me”) that makes some text pop up with easing. This is the code below. The problem is, the second swf works by itself, but not when loaded into the main swf. I’ve tried changing \_root to \_parent as well as various others, but to no avail? Is \_root my problem??

onClipEvent (load) {  
\_x = 0;  
\_y = -175;  
velocity = 3;  
}  
onClipEvent (enterFrame) {  
\_x += (endX-\_x)/velocity;  
\_y += (endY-\_y)/velocity;  
\_root.co.onRelease = function() {  
endX = 0;  
endY = 0;  
};  
\_root.me.onRelease = function() {  
endX = 0;  
endY = -160;  
};  
}

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 19, 2003, 12:58am UTC](https://forum.kirupa.com/t/help-oh-why-wont-it-work/15872/2 "2003-03-19T00:58:20Z")

</div>

paste this script in the timeline

```auto
co.onRelease = function() {
	endX = 0;
	endY = 0;
}
me.onRelease = function() {
	endX = 0;
	endY = -160;
}

```

and paste this in the movie clip actions

```auto
onClipEvent (load) {
	_x = 0;
	_y = -175;
	velocity = 3;
}
onClipEvent (enterFrame) {
	_x += (endX-_x)/velocity;
	_y += (endY-_y)/velocity;
}

```

=)
