# Xml url link how to load in new window?

**URL:** https://forum.kirupa.com/t/xml-url-link-how-to-load-in-new-window/312120
**Category:** Uncategorized
**Created:** [July 26, 2010, 10:25am UTC](https://forum.kirupa.com/t/xml-url-link-how-to-load-in-new-window/312120 "2010-07-26T10:25:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![naminami](https://avatars.discourse-cdn.com/v4/letter/n/c5a1d2/32.png) [@naminami](https://forum.kirupa.com/u/naminami)
#### Post date: [July 26, 2010, 10:25am UTC](https://forum.kirupa.com/t/xml-url-link-how-to-load-in-new-window/312120/1 "2010-07-26T10:25:14Z")

</div>

Dear All,

I’m new to xml and I have a script that is a flash based scroller that takes the information from an xml file:

There are scrolling thumbnails, when you click on them it takes you to a new url page. Only it’s loading the url in the same window and I’d like for it to load in a blank or new window.  
Here’s what I have now:

**Script from FLASH:**  
[COLOR=blue]filename\_list = new Array();[/COLOR]  
[COLOR=blue]url\_list = new Array();[/COLOR]  
[COLOR=blue]title\_list = new Array();[/COLOR]  
[COLOR=blue]description\_list = new Array();[/COLOR]  
[COLOR=blue]var filepath:String = “Thumbnails/Short\_Films/”;[/COLOR]  
[COLOR=blue]var flashmo\_xml = new XML();[/COLOR]  
[COLOR=blue]films\_xml.ignoreWhite = true;[/COLOR]  
[COLOR=blue]films\_xml.onLoad = function()[/COLOR]  
[COLOR=blue]{[/COLOR]  
[COLOR=blue]var nodes:Array = this.firstChild.childNodes;[/COLOR]  
[COLOR=blue]for(var i=0;i\<nodes.length;i++)[/COLOR]  
[COLOR=blue]{[/COLOR]  
[COLOR=blue]filename\_list.push(nodes\*.attributes.filename);[/COLOR]  
[COLOR=blue]url\_list.push(nodes\*.attributes.url);[/COLOR]  
[COLOR=blue]title\_list.push(nodes\*.attributes.title);[/COLOR]  
[COLOR=blue]description\_list.push(nodes\*.attributes.description);[/COLOR]  
[COLOR=blue]}[/COLOR]  
[COLOR=blue]}[/COLOR]  
[COLOR=blue]films\_xml.load(“conroy\_short\_films.xml”);[/COLOR]  
[COLOR=blue]tn\_group\_area.\_visible = false;[/COLOR]

[COLOR=black] **Codes from XML:** [/COLOR]  
[COLOR=blue]\<?xml version=“1.0” encoding=“utf-8”?\>[/COLOR]  
[COLOR=blue]\<thumbnails\>[/COLOR]  
[COLOR=blue]\<thumbnail filename=“Photo1.jpg” url=“movie/short\_film.html” [/COLOR]  
[COLOR=blue]title=“Short Film”[/COLOR][COLOR=blue]\>[/COLOR]  
[COLOR=blue]\</thumbnails\>[/COLOR]

[COLOR=black]Thank you and appreciate that![/COLOR]
