# Code check?

**URL:** https://forum.kirupa.com/t/code-check/177117
**Category:** Uncategorized
**Created:** [January 30, 2006, 11:47am UTC](https://forum.kirupa.com/t/code-check/177117 "2006-01-30T11:47:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Claire\_murphy](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Claire\_murphy](https://forum.kirupa.com/u/Claire_murphy)
#### Post date: [January 30, 2006, 11:47am UTC](https://forum.kirupa.com/t/code-check/177117/1 "2006-01-30T11:47:23Z")

</div>

(FLASH MX PRO)

Can someone tell me why this doesn’t work?

INDEX - with container…LOADS…  
Static\_profile.SWF (button in this movie has the following code)

[COLOR=darkred]ON BUTTON[/COLOR]  
on (release)  
{\_root.container\_MC.loadMovie  
(“PROFILE2.swf”);  
}  
}

This code is on the movie being loaded. I had it working on friday! 😑

[COLOR=darkred]PROFILE2.SWF[/COLOR]  
onClipEvent (load) {  
this.\_x = 300;  
}  
onClipEvent (enterFrame) {  
if (\_root.SUB.\_x\>440) {  
\_root.SUB.\_x += -30 ;  
} else if (\_root.SUB.\_x\>-30) {  
this.\_x += (-40-this.\_x)/8; \_root.SUB.\_x += (0-\_root.SUB.\_x) /2;  
}  
}

Many thanks=)
