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]