# Simple attach movie problem

**URL:** <https://forum.kirupa.com/t/simple-attach-movie-problem/21342>\
**Category:** Uncategorized\
**Created:** [May 20, 2003, 5:51pm UTC](https://forum.kirupa.com/t/simple-attach-movie-problem/21342 "2003-05-20T17:51:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alnoor](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@alnoor](https://forum.kirupa.com/u/alnoor)\
**Post date:** [May 20, 2003, 5:51pm UTC](https://forum.kirupa.com/t/simple-attach-movie-problem/21342/1 "2003-05-20T17:51:41Z")

</div>

here is the fla file - [http://www.alnoor.us/attachMovie.fla](http://www.alnoor.us/attachMovie.fla)

PROBLEM - I have an attached movie on root level that movie has a button inside it and I want to tell that button to do some function.

simple----BUT

I want to put the action on the first frame on the root and not inside th MC.

here is the code Iam working on and the same is in the fla file in the above link.

but1.onRelease = function(){  
\_root.blank.attachMovie(“clip1”,“newClip1”,1);  
}  
\_root.blank.newClip1.but2 = function(){  
getURL(“[http://www.yahoo.com](http://www.yahoo.com)”, “blank”);  
}

explanation of the above code–

but1 is the button on root that tells clip1 to attach on blank MC(thats also on root) clip1 has the button inside it call but2 and tried to tell that bloody but2 to open that the URL link but its not doing so

NOTE - I want to put all the action on the action on the first frame and not inside th MC.

hope for some good reply

thank for reading.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 20, 2003, 7:09pm UTC](https://forum.kirupa.com/t/simple-attach-movie-problem/21342/2 "2003-05-20T19:09:00Z")

</div>

there is a miss type in the above code  
here is the correct one on which i am working

but1.onRelease = function(){  
\_root.blank.attachMovie(“clip1”,“newClip1”,1);  
}  
\_root.blank.newClip1.but2.onRelease = function(){  
getURL(“[http://www.yahoo.com](http://www.yahoo.com)”, “blank”);  
}

sorry
