# Hot to add linkage via ActionScript

**URL:** <https://forum.kirupa.com/t/hot-to-add-linkage-via-actionscript/63724>\
**Category:** flash\
**Created:** [September 9, 2004, 2:18pm UTC](https://forum.kirupa.com/t/hot-to-add-linkage-via-actionscript/63724 "2004-09-09T14:18:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![enb141](https://avatars.discourse-cdn.com/v4/letter/e/82dd89/32.png) [@enb141](https://forum.kirupa.com/u/enb141)\
**Post date:** [September 9, 2004, 2:18pm UTC](https://forum.kirupa.com/t/hot-to-add-linkage-via-actionscript/63724/1 "2004-09-09T14:18:42Z")

</div>

Hi I have this flag effect (thank you guys Ilyas Premier and Claudio) but I need to load a movie clip (jpg file via http link) so here is the swf file and the lines that I’m trying to do are this ones:

loadMovie(“[http://www.macromedia.com/images/shared/product\_boxes/80x92/box\_contribute\_80x92.jpg](http://www.macromedia.com/images/shared/product_boxes/80x92/box_contribute_80x92.jpg)”, Pelicula1);

/\*\*\* Linkage name of the clip \*\*\*/  
clip= attachMovie(Pelicula1, Pelicula1);

Can you help me please

---

<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:** [September 9, 2004, 3:59pm UTC](https://forum.kirupa.com/t/hot-to-add-linkage-via-actionscript/63724/2 "2004-09-09T15:59:44Z")

</div>

well I tried to look at your file, but I think it must be in MX 2004 format, so you should probably post it in that forum

if you are trying to load a movie clip onto your main state, you have to have a target, or holder (which would be an empty movie clip) to load into.

This tutorial may help you some:  
[http://www.kirupa.com/developer/mx/loading.htm](http://www.kirupa.com/developer/mx/loading.htm)

Also, with your attachMovie code, you must make certain that you gave your click a linkage identifier and specify a level like this:

holder.attachMovie = (clip, clip1, 10);
