90% there. need help though

I have this brilliant little slideshow made by this fellow here http://theflashblog.com/?p=225

it’s really great, but i’ve never coded in actionscript (php i can handle) so i’m completely lost looking at the code.

What i’m using it for is to show random properties for a real estate website. I’ve gotten the images and text fine, but i need the text to link to a specific url - the property.php?id=99

I can get the 99 fine, but i have no idea how to make the text - how would it translate in flash…dynamic.

so here’s what is there:

<photo url=“three.jpg” desc=“Solymar bungalows, Costa Calma - €82,000” />

here’s what im hoping you guys can help me with

<photo url=“three.jpg” desc=“Solymar bungalows, Costa Calma - €82,000” link=“page.php?id=99” />

here’s the AS file that he gives with the download


import com.mosesSupposes.fuse.*;
import mx.utils.Delegate;
import flash.display.BitmapData;
import flash.geom.*;

ZigoEngine.register(Fuse, FuseFMP, PennerEasing);

textBar.swapDepths(10);

var photos:Array = new Array();
var caps:Array = new Array();
var current:Number = 0;

this.createEmptyMovieClip("gallery", 1);
this.gallery.createEmptyMovieClip("bmdc", 1);
this.gallery.createEmptyMovieClip("photo", 2);

var bmd:BitmapData = new BitmapData(330, 210,true,0x000000);
this.gallery.bmdc.createEmptyMovieClip("preload", 1);
this.gallery.bmdc.attachBitmap(bmd, 2);

var mcl:MovieClipLoader = new MovieClipLoader();
var mclL:Object = new Object();
mclL.onLoadComplete = Delegate.create(this, tranny);
mcl.addListener(mclL);

function loadPhoto():Void
{
    trace("loading photo...");
    bmd.draw(this.gallery.photo);
    this.gallery.photo._alpha = 0;
    if(current == photos.length-1) current = 0;
    else current++;
    textbar._rotation = rr;
    textBar.t.text = caps[current];
    mcl.loadClip(photos[current], this.gallery.photo);
}

function preload():Void
{
    if(current == photos.length-1) var num = 0;
    else var num = current+1;
    this.gallery.bmdc.preload.loadMovie(photos[num]);
}

function tranny():Void
{
    trace("starting transition...");
    var f:Fuse = new Fuse();
    f.push([{target:this.gallery.photo, alpha:100, time:2},
                {target:textBar, delay:0.5, start_x:-518, x:cx, time:0.5, ease:"easeOutExpo"},
                {target:textBar.arrow, x:ca, time:0.5, ease:"easeOutQuad", delay:0.5}]);
    f.push({func:preload, scope:this});
    f.push({target:textBar,delay:5, x:-518, time:1, ease:"easeOutExpo", func:loadPhoto, scope:this});
    f.start();
}

function cx():Number
{
    var te:Number = textBar.t.textWidth;
    var nx:Number = -518  + te + 60;
    return nx;
}

function ca():Number
{
    return textBar.t._x - cx()+27;
}

function rr():Number
{
    if(Math.random() < 0.5) return Math.round(Math.random()*15);
    else return Math.round(-Math.random()*15);
}

var feed:XML = new XML();
feed.ignoreWhite = true;
feed.onLoad = function()
{
    var nodes:Array = this.firstChild.childNodes;
    for(var i=0;i<nodes.length;i++)
    {
        _root.caps.push(nodes*.attributes.desc);
        _root.photos.push(nodes*.attributes.url);
    }
    _root.mcl.loadClip(photos[0], _root.gallery.photo);
    _root.textBar.t.text = caps[0];
}

feed.load("photos.xml");


I’d be very greatful if anyone could help me out here.

Thank you