# AS3: XML Internal hyperlink to load a swf while specifying an xml file name

**URL:** <https://forum.kirupa.com/t/as3-xml-internal-hyperlink-to-load-a-swf-while-specifying-an-xml-file-name/314789>\
**Category:** flash\
**Created:** [October 8, 2010, 8:24pm UTC](https://forum.kirupa.com/t/as3-xml-internal-hyperlink-to-load-a-swf-while-specifying-an-xml-file-name/314789 "2010-10-08T20:24:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DDM](https://avatars.discourse-cdn.com/v4/letter/d/65b543/32.png) [@DDM](https://forum.kirupa.com/u/DDM)\
**Post date:** [October 8, 2010, 8:24pm UTC](https://forum.kirupa.com/t/as3-xml-internal-hyperlink-to-load-a-swf-while-specifying-an-xml-file-name/314789/1 "2010-10-08T20:24:04Z")

</div>

Here is the scenario:  
I have a swf (members.swf) that loads a list of members using an xml. In the information text for each member I would like to put a hyperlink that would load another swf (image\_gallery.swf) that also uses an xml file. Ideally, I would like to create an xml for each member (member1.xml, member2.xml, member3.xml etc…) holding their image gallery information BUT I would like to use the same swf (image\_gallery.swf) to load each member’s image gallery according to their xml file data.

I hope I have explained this clearly. If you have any questions, just let me know.

So basically I would like link to a swf file and specify the xml to be loaded for that swf in the hyperlink.

Can someone suggest how to achieve this in AS3 please?

Thanks in advance,  
DM
