Hello,
I’ve recently posted a question at actionscript.org (here) 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:
<?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!