FMX04+XML can I Link a XML loaded image to a frame in the .swf?

Hi I’m a novice, book-selflearning Flash MX04 in a vacumn (no one to discuss anything flash related with)

I’ve created a site for a friend www.tracelements.co.nz and had fun doing it. (its basic but it works and I’m still working on it - her cosmetic site design though)
the image gallery is based on the Kirupa xml thumbnail gallery, following the forums here I have learnt how to tweak the code to change how it looks. it’s great, but intimidating to dive in surrounded by such flash genius.

there may be a simple D’oh! answer that escaped me - but here 'tis

on the ‘commission a work’ page of the I’ve successfully used

<a href=“asfunction:gotoAndPlay,62”>contact me</a>

in the XML text, to target frame 62 where the animated closing swf transition plays to the end frame which loads the ‘contact’ .swf

THE Question - Is there a way to create a similar link where you click the large image in the gallery to link in the same way?

I have tried various permentations of the above in the <link></link>
part of the gallery XML without a clue really, i’m trying hard to ‘get’ how xml works, (reading everything that ‘explains’ xml), but when I think I have a handle on it and try something, I often get puzzled on why they don’t work out.

the relevant gallery AS is

stop();
spacing = 10;
picture._alpha = 0;
function loadPict(pic) {
    picture.loadMovie(pic);
    picture._alpha = 0;
    var temp = this.createEmptyMovieClip("tmp", 9976);
    temp.onEnterFrame = function() {
        var t = picture.getBytesTotal(), l = picture.getBytesLoaded();
        preloader._visible = 1;
        preloader.preload_bar._xscale = Math.round((l/t)*100);
        if (t != 0 && Math.round(l/t) == 1 && picture._width != 0) {
            var w = picture._width+spacing, h = picture._height+spacing;
            border.resizeMe(w, h);
            preloader._visible = 0;
            delete this.onEnterFrame;
        }
    };
}
MovieClip.prototype.resizeMe = function(w, h) {
    var speed = 3;
    this.onEnterFrame = function() {
        this._width += (w-this._width)/speed;
        this._height += (h-this._height)/speed;
        if (Math.abs(this._width-w)<1 && Math.abs(this._height-h)<1) {
            this._width = w;
            this._height = h;
            picture._x = this._x-this._width/2+spacing/2;
            picture._y = this._y-this._height/2+spacing/2;
            picture._alpha += 10;
            if (picture._alpha>100) {
                picture._alpha = 100;
                delete this.onEnterFrame;
                t;
            }
        }
    };
};
function loadXML(loaded) {
    if (loaded) {
        xmlNode = this.firstChild;
        image = [];
        thumbnails = [];
        total = xmlNode.childNodes.length;
        for (i=0; i<total; i++) {
            image* + xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
caption* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
            thumbnails* = xmlNode.childNodes*.childNodes[2].firstChild.nodeValue;
            thumbnails_fn(i);
        }
        firstImage();
    } else {
        content = "file not loaded!";
    }
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("galleryhome.xml");

and the xml


<?xml version="1.0" encoding="utf-8" standalone="yes"?>


<images>
    <pic>
    <image>Gallery1images/image.jpg</image>
        <caption>caption here</caption>
        <thumbnail>Gallery1images/Thumbnail.jpg</thumbnail>
        <link>href="asfunction:gotoAndPlay,16"</link>
    </pic>
</images>

in the AS I have attempted to add an extra ‘link node’
as follows
link= []; … then under the thumbnail nodes
link* = xmlNode.childNodes*.childNodes[3].firstChild.nodeValue;

and also
picture.onRelease = function() {
getURL(link);
}

The ‘picture’ MC registers as clickable but I haven’t a clue what to do next to ‘make it see’ the XML link (which is probably wrong at the moment anyway)

can anyone help me out, first is it possible (like the text link)or not, and how would I go about it if theres a way to do it

thanks!:smirk: