# Javascript pop-up within XML... possible?

**URL:** <https://forum.kirupa.com/t/javascript-pop-up-within-xml-possible/154242>\
**Category:** flash\
**Created:** [July 8, 2005, 12:02am UTC](https://forum.kirupa.com/t/javascript-pop-up-within-xml-possible/154242 "2005-07-08T00:02:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sirenetta1](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@Sirenetta1](https://forum.kirupa.com/u/Sirenetta1)\
**Post date:** [July 8, 2005, 12:02am UTC](https://forum.kirupa.com/t/javascript-pop-up-within-xml-possible/154242/1 "2005-07-08T00:02:16Z")

</div>

Hello,

I’ve recently posted a question at [actionscript.org](http://actionscript.org) ([here](http://www.actionscript.org/forums/showthread.php3?p=370094#post370094)) that is also puzzling others. I have a variety of pictures that are linked to an XML list. Right now when you click on a picture, it launches an HTML page. What I’m wondering is if I could use Javascript, and how, to make the screen that launches a certain size.

Unfortunately, my attempts do not work. :puzzled: I was wondering if any of you have attempted this sort of thing before and how? I haven’t found a lot of info written on this subject.

My code so far is:

[AS]mask\_mc.\_visible = false;  
menu\_mc.setMask(mask\_mc);  
portfolioInfo = new XML();  
portfolioInfo.ignoreWhite = true;  
timeline = this;  
portfolioInfo.onLoad = function() {  
portfolioTag = this.firstChild;  
count = portfolioTag.childNodes.length;  
for (i=0; i\<count; i++) {  
currentPicture = portfolioTag.childNodes\*;  
currentThumb = menu\_mc.createEmptyMovieClip(“thumbnail”+i, i);  
currentThumb.\_x = i\*40;  
image = currentThumb.createEmptyMovieClip(“thumbnail\_image”, 0);  
image.loadMovie(currentPicture.attributes.THUMB);  
currentThumb.NAME = currentPicture.attributes.NAME;  
currentThumb.IMAGE = currentPicture.attributes.IMAGE;  
currentThumb.onPress = currentThumb.onDragOver=function () {  
getURL (this.IMAGE,"\_blank");  
};  
}  
};  
portfolioInfo.load(“portfolio.xml”);[/AS]

XML File:

Code:

```auto
<?xml version="1.0" ?> 
- <portfolio>
  <picture thumb="pic1.jpg" image="pic1.htm"/>
  <picture thumb="pic2.jpg" image="pic2.htm"/>
  </portfolio>

```

I have an example posted at the link provided above! Thanks!
