# Loading a swf file from an XML document

**URL:** <https://forum.kirupa.com/t/loading-a-swf-file-from-an-xml-document/220380>\
**Category:** flash\
**Created:** [March 25, 2007, 9:33pm UTC](https://forum.kirupa.com/t/loading-a-swf-file-from-an-xml-document/220380 "2007-03-25T21:33:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unrealgfx](https://avatars.discourse-cdn.com/v4/letter/u/258eb7/32.png) [@unrealgfx](https://forum.kirupa.com/u/unrealgfx)\
**Post date:** [March 25, 2007, 9:33pm UTC](https://forum.kirupa.com/t/loading-a-swf-file-from-an-xml-document/220380/1 "2007-03-25T21:33:35Z")

</div>

Hello all, How can I load a swf from a XML file?

this is the AS that calls the link:

```
	subBut.but.onRelease = function() {
		getURL(this._parent.link);

```

The XML file:

\<?xml version=“1.0” encoding=“iso-8859-9”?\>  
\<root\>  
\<menu txt=“Fashion”\>  
\<submenu txt=“Bridal” link=“ball.swf”/\>  
\</menu\>

When pressed a new window opens instead of loading the movie.

Thanks.
