# \[CS4 AS2.0\] attachMovie help needed

**URL:** <https://forum.kirupa.com/t/cs4-as2-0-attachmovie-help-needed/290334>\
**Category:** flash\
**Created:** [June 12, 2009, 7:55pm UTC](https://forum.kirupa.com/t/cs4-as2-0-attachmovie-help-needed/290334 "2009-06-12T19:55:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grish](https://avatars.discourse-cdn.com/v4/letter/g/e9c0ed/32.png) [@Grish](https://forum.kirupa.com/u/Grish)\
**Post date:** [June 12, 2009, 7:55pm UTC](https://forum.kirupa.com/t/cs4-as2-0-attachmovie-help-needed/290334/1 "2009-06-12T19:55:32Z")

</div>

Hello

This might sound a bit noobish, but here is my problem and question:

I’m creating a car race game. On one of the stages I want to make a “Car Selection” so I placed 3 buttons with images of cars, and want to associate the attachMovie function to insert choosen car on the track which is on different frame or even scene. So the problem is how to address the attach point if its somewhere else?

each of those buttons have code like this to insert MC to the same frame it is in:

```auto
on (release) {
    anch.attachMovie("Lamborghini","Lambo",this.getNextHighestDepth());
}

```

anchor, \<anch\> - a mc to which I want cars to be attached

but what with different location?
