# Action problem for scotty

**URL:** https://forum.kirupa.com/t/action-problem-for-scotty/50832
**Category:** flash
**Created:** [May 6, 2004, 9:36pm UTC](https://forum.kirupa.com/t/action-problem-for-scotty/50832 "2004-05-06T21:36:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Barrie](https://avatars.discourse-cdn.com/v4/letter/b/838e76/32.png) [@Barrie](https://forum.kirupa.com/u/Barrie)
#### Post date: [May 6, 2004, 9:36pm UTC](https://forum.kirupa.com/t/action-problem-for-scotty/50832/1 "2004-05-06T21:36:22Z")

</div>

In my M/c I added a empty M/C gave it a instance name “content”  
Rather than use actions on normal buttons like.

button.onRelease = function() {  
\_root.content.loadMovie(“pic.swf”);  
};

I have this as my buttons giving of elastic effect, As you can see.

on (rollOver) {  
this.swapDepths(2);  
jump = false;  
xscale \*= 1.5;  
yscale \*= 1.5;  
}  
on (rollOut) {  
this.swapDepths(1);  
xscale = 70;  
yscale = 70;  
}  
on (release) {  
\_root.mc2.gotoAndPlay(3);  
}

onClipEvent (load) {  
xscale = 70;  
yscale = 70;  
jump = false;  
sX = 0;  
sY = 0;  
jumpfactor = 0.69999999999999996;  
jumpratio = 0.59999999999999998;  
}  
onClipEvent (enterFrame) {  
if (!jump) {  
sX = Number(sX \* jumpfactor) + Number((xscale - \_xscale) \* jumpratio);  
sY = Number(sY \* jumpfactor) + Number((yscale - \_yscale) \* jumpratio);  
\_xscale = \_xscale + sX \* 2;  
\_yscale = \_yscale + sY \* 1;  
}  
}

on (release) {  
content.loadMovie(“pic.swf”)  
}

Note the last actions “Content.loadmovie(“pic.swf”)” Is what I have a problem with for some reason I am stuck I know the code works perfect on basic buttons, Can you help me please fix this problem. I dont get any errors showing when testing, Just that the pic swf will not load. :puzzled:

I have used \_root and \_parent

Many thanks

Regards Barrie
