# Modifying Movie clips after they have been created with AddChild();

**URL:** <https://forum.kirupa.com/t/modifying-movie-clips-after-they-have-been-created-with-addchild/231572>\
**Category:** flash\
**Created:** [July 5, 2007, 8:47pm UTC](https://forum.kirupa.com/t/modifying-movie-clips-after-they-have-been-created-with-addchild/231572 "2007-07-05T20:47:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fishbulb](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/fishbulb/32/3796_2.png) [@fishbulb](https://forum.kirupa.com/u/fishbulb)\
**Post date:** [July 5, 2007, 8:47pm UTC](https://forum.kirupa.com/t/modifying-movie-clips-after-they-have-been-created-with-addchild/231572/1 "2007-07-05T20:47:15Z")

</div>

[LEFT][COLOR=DarkRed] **For newest question: Go to last post.** [/COLOR]

So i’m making a little tank game and i made it so whenever i click a movie clip gets created and is rotated and positioned at the end of the turret barrel. I’d like it so the Movie Clip can move after it has been created.

```auto
function shoot(Event:MouseEvent):void
{
    var newBullet:bullet = new bullet();
    newBullet.x = turret.x + Math.cos(turret.rotation * Math.PI / 180) * bulletDistance;
    newBullet.y = turret.y + Math.sin(turret.rotation * Math.PI / 180) * bulletDistance;
    newBullet.rotation = turret.rotation + 90;
    this.addChild(newBullet);
}

```

So all of that code is fine, but after i have created it i want it to move linear-ly. I’ve tried modifying newBullet but i get a compiler error: 1120: Access of undefined property newBullet.

I thought about making a class, but i am very inexperienced with classes and want to know if there is an easier way to do it inside the .fla.

Thanks ahead of time.  
[/LEFT]
