# F8 Pro controlling movie clip

**URL:** <https://forum.kirupa.com/t/f8-pro-controlling-movie-clip/208438>\
**Category:** flash\
**Created:** [November 28, 2006, 7:24pm UTC](https://forum.kirupa.com/t/f8-pro-controlling-movie-clip/208438 "2006-11-28T19:24:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![1985](https://avatars.discourse-cdn.com/v4/letter/1/e36b37/32.png) [@1985](https://forum.kirupa.com/u/1985)\
**Post date:** [November 28, 2006, 7:24pm UTC](https://forum.kirupa.com/t/f8-pro-controlling-movie-clip/208438/1 "2006-11-28T19:24:53Z")

</div>

[FONT=Times New Roman][SIZE=3]Hi Guys[/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3]I’m built a movie clip which I am controlling with key commands. I can control the position of the movie clip with the script I have, but I have a glitch with controlling the playback head and telling it to go to specific frames inside my movie clip. I have attached my script to my movieclip. None of my this.play(); scripts seem to work. I’ve tried gotoAndPlay also, with no luck.[/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3]I’ve posted the entire script just incase there is a conflict somewhere[/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3]Any suggestions?[/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3]Thanks! [/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3][/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3][/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3]Here my script:[/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3][/SIZE][/FONT]  
onClipEvent (load) {  
var myX:Number = 0;  
var myY:Number = 0;  
}  
onClipEvent (enterFrame) {  
this.\_x += myX;  
this.\_y += myY;  
if (Key.isDown(Key.LEFT) && myX\>-10) {  
myX -= 1;  
this.play(test);  
}else if (Key.isDown(Key.RIGHT) && myX\<10) {  
myX += 1;  
this.play(77);  
} else if (!(myX == 0)) {  
if (myX\>0) {  
myX -= 1;  
} else {  
myX += 1;  
}  
}  
if (Key.isDown(Key.UP) && myY\>-10) {  
myY -= 1;  
this.play(1);

} else if (Key.isDown(Key.DOWN) && myY\<10) {  
myY += 1;  
this.play(149);

} else if (myY\>0) {  
myY -= 1;  
} else if (myY\<0) {  
myY += 1;  
} else {  
this.gotoAndStop(1);  
}  
if (this.\_x\<0) {  
this.\_x = 550;  
} else if (this.\_x\>550) {  
this.\_x = 0;  
}  
if (this.\_y\<0) {  
this.\_y = 400;  
} else if (this.\_y\>400) {  
this.\_y = 0;  
}  
}
