# As3 problem

**URL:** <https://forum.kirupa.com/t/as3-problem/329168>\
**Category:** flash\
**Created:** [July 27, 2012, 5:28pm UTC](https://forum.kirupa.com/t/as3-problem/329168 "2012-07-27T17:28:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlindSide78](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@BlindSide78](https://forum.kirupa.com/u/BlindSide78)\
**Post date:** [July 27, 2012, 5:28pm UTC](https://forum.kirupa.com/t/as3-problem/329168/1 "2012-07-27T17:28:46Z")

</div>

Hi guys im tring to make a movieclip point at a movieclip  
within classes

i have a turrent class, a player class, and a main class that controls everything.

so in my main class i put this code  
to display the player:  
var spike = new Spike2()  
addChild(spike)

and this code to display turrent:  
var turrent = new turrentClass();  
addChild(turrent);  
turrent.x = 1134.15;  
turrent.y = 419.55;

so after i loaded the swf everything worked fine but  
the turrents barrel wont point at the player.

can you guys tell me what im supposed to do to get the turrents barrel to point at the player or how can i give instance names to things that arent on stage.

thanks 🙂
