# Easy im sure

**URL:** <https://forum.kirupa.com/t/easy-im-sure/15734>\
**Category:** Uncategorized\
**Created:** [March 17, 2003, 7:10pm UTC](https://forum.kirupa.com/t/easy-im-sure/15734 "2003-03-17T19:10:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ksuperson](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@ksuperson](https://forum.kirupa.com/u/ksuperson)\
**Post date:** [March 17, 2003, 7:10pm UTC](https://forum.kirupa.com/t/easy-im-sure/15734/1 "2003-03-17T19:10:36Z")

</div>

i have looked at the full site tutorial and i still dont understand. i want my home button (named homebutton) to load a movie. i can get the movie to load by itself but i am having trouble getting it to load when i click or onpress. so if someone could help me with the code that would be great. i am using

\_root.createEmptyMovieClip(“emptyMC”, 2);  
\_root.emptyMC.loadMovie(“home.swf”);  
\_root.emptyMC.\_x = 100;  
\_root.emptyMC.\_y = 100;

to load the movie thanks for the help in advance.:moustache

---

<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:** [March 17, 2003, 9:14pm UTC](https://forum.kirupa.com/t/easy-im-sure/15734/2 "2003-03-17T21:14:01Z")

</div>

Well to get it to load when a button is pressed, you need to put the script above in a button handler and apply it to the button.

So click on your button, open the actions panel and apply this to it:[AS]on (release) {  
\_root.createEmptyMovieClip(“emptyMC”, 2);  
\_root.emptyMC.loadMovie(“home.swf”);  
\_root.emptyMC.\_x = 100;  
\_root.emptyMC.\_y = 100;  
}  
[/AS]
