# Passing Varibales to Xml help

**URL:** https://forum.kirupa.com/t/passing-varibales-to-xml-help/165006
**Category:** flash
**Created:** [October 6, 2005, 6:23pm UTC](https://forum.kirupa.com/t/passing-varibales-to-xml-help/165006 "2005-10-06T18:23:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rudester](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@rudester](https://forum.kirupa.com/u/rudester)
#### Post date: [October 6, 2005, 6:23pm UTC](https://forum.kirupa.com/t/passing-varibales-to-xml-help/165006/1 "2005-10-06T18:23:17Z")

</div>

I have a swf that has 8 buttons. Each button needs to call a specific video on a separate swf which are listed in a xml file. This swf is in a separate window. Is it possible to do a button action where it can call and open a video from a xml list to a specific listed node? Thanks for your time!!

Example:

```auto
BUTTON ACTIONS OF FIRST SWF

BTN 1

on(release){
   Open video 1
}

BTN2

on(release){
   Open video 2
}

BTN3

on(release){
   Open video 3
}

///AND SO ON.....

```

```auto
THE XML FILE FOR THE OTHER SWF FILE ON ANOTHER WINDOW

<?xml version="1.0" ?>
<videos>
	<video>
		<title>Caption 1</title>
		<file><![CDATA[videos/video_1.flv]]></file>
	</video>
	<video>
		<title>Caption 2</title>
		<file><![CDATA[videos/video_2.flv]]></file>
	</video>
	<video>
		<title>Caption 3</title>
		<file><![CDATA[videos/video_3.flv]]></file>
	</video>
	<video>
		<title>Caption 4</title>
		<file><![CDATA[videos/video_4.flv]]></file>
	</video>
	<video>
		<title>Caption 5</title>
		<file><![CDATA[videos/video_5.flv]]></file>
	</video>
	<video>
		<title>Caption 6</title>
		<file><![CDATA[videos/video_6.flv]]></file>
	</video>
	<video>
		<title>Caption 7</title>
		<file><![CDATA[videos/video_7.flv]]></file>
	</video>
	<video>
		<title>Caption 8</title>
		<file><![CDATA[videos/video_8.flv]]></file>
	</video>
</videos>

```
