# Help with dynamic video gallery

**URL:** https://forum.kirupa.com/t/help-with-dynamic-video-gallery/268326
**Category:** flash
**Created:** [August 12, 2008, 4:35pm UTC](https://forum.kirupa.com/t/help-with-dynamic-video-gallery/268326 "2008-08-12T16:35:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jcafaro10](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@jcafaro10](https://forum.kirupa.com/u/jcafaro10)
#### Post date: [August 12, 2008, 4:35pm UTC](https://forum.kirupa.com/t/help-with-dynamic-video-gallery/268326/1 "2008-08-12T16:35:35Z")

</div>

Hello. I’m trying to create a dynamic video gallery similar to the dynamic picture gallery on my site. I think that there are only a view changes that I need to make in order to get this to work. Here is code I’ve used to do a regular video gallery:

```auto
function showMovie(linkageId, xpos, ypos) {
    var linkageId :String;
    var xpos:Number;
    var ypos:Number;
    mc = this.createEmptyMovieClip("mc", this.getNextHighestDepth());
    mc._x = xpos;
    mc._y = ypos;
    mc.attachMovie(linkageId,e,this.getNextHighestDepth());
}

```

This isn’t dynamic however. How do I set the linkage id of something dynamically?

To load a picture I use the following code:

```auto
image_mcl.loadClip(image[p], picture);

```

where image is an array of the picture paths. My videos are in flv format. Where does the linkage go?

Thanks all
