# Loading movie through ascript in MX

**URL:** <https://forum.kirupa.com/t/loading-movie-through-ascript-in-mx/15740>\
**Category:** Uncategorized\
**Created:** [March 17, 2003, 7:54pm UTC](https://forum.kirupa.com/t/loading-movie-through-ascript-in-mx/15740 "2003-03-17T19:54:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyletrip](https://avatars.discourse-cdn.com/v4/letter/k/db5fbb/32.png) [@kyletrip](https://forum.kirupa.com/u/kyletrip)\
**Post date:** [March 17, 2003, 7:54pm UTC](https://forum.kirupa.com/t/loading-movie-through-ascript-in-mx/15740/1 "2003-03-17T19:54:20Z")

</div>

Hey all, I’m kind of new and pretty stuck…I created a movie in my library, and i want to load it using actionscript. is loadMovie(); just for external SWF files?! if it is, what command do i use??  
Thanks,  
Kyle

---

<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, 7:58pm UTC](https://forum.kirupa.com/t/loading-movie-through-ascript-in-mx/15740/2 "2003-03-17T19:58:03Z")

</div>

haha… what’s up dude…

make sure you’re using linkage… when you’re looking at the movie properties, select linkage, and then give it a name…

… you can also use attachMovie();  
\_raf

---

<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, 8:25pm UTC](https://forum.kirupa.com/t/loading-movie-through-ascript-in-mx/15740/3 "2003-03-17T20:25:35Z")

</div>

im tryin to use the attatchMovie() command… i checked the linkage, exported for actionscript with identifier main…  
on a button press i want it to load the movie so i do this:

on(release) {  
attatchmovie(“main”);  
}  
right???  
i HAVE to be retarded this week…

---

<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, 8:28pm UTC](https://forum.kirupa.com/t/loading-movie-through-ascript-in-mx/15740/4 "2003-03-17T20:28:17Z")

</div>

attactmovie is like this

movie.attachMovie(“linkagename”, “newname”, level)

---

<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, 8:28pm UTC](https://forum.kirupa.com/t/loading-movie-through-ascript-in-mx/15740/5 "2003-03-17T20:28:45Z")

</div>

ok i got it to load, but now i cant position it…cant i use :  
main.\_x= blah;  
main.\_y = bleh;  
??

---

<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, 8:32pm UTC](https://forum.kirupa.com/t/loading-movie-through-ascript-in-mx/15740/6 "2003-03-17T20:32:00Z")

</div>

yeah… just make sure you have the right path for the movie…

like \_root.newmovie.\_x= whatever

or \_root.container.newmovie.\_x = whatever
