# XML Video

**URL:** <https://forum.kirupa.com/t/xml-video/291888>\
**Category:** flash\
**Created:** [July 7, 2009, 6:20am UTC](https://forum.kirupa.com/t/xml-video/291888 "2009-07-07T06:20:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![romit\_2034](https://avatars.discourse-cdn.com/v4/letter/r/ed655f/32.png) [@romit\_2034](https://forum.kirupa.com/u/romit_2034)\
**Post date:** [July 7, 2009, 6:20am UTC](https://forum.kirupa.com/t/xml-video/291888/1 "2009-07-07T06:20:18Z")

</div>

Hi,

We declare a container and pass images to it from xml in a flash image gallery.  
For ex:

function xmlLoaded(event:Event):void  
{  
xml = XML(event.target.data);  
xmlList = xml.children();  
for(var i:int = 0; i \< xmlList.length(); i++)  
{  
imageLoader = new Loader();  
imageLoader.load(new URLRequest(xmlList\*.attribute(“whatever attribute”)));  
container.addChild(imageLoader);

```
}

```

}

Can I do the same with video? As in a video xml gallery. If not then what can do for a video xml gallery?
