3D Carousel and problem witch clickable images
Hi Everyone
I have a big problem. I dont know nothing about AS (maybe a littlebit), but every methot where I want to do carousel was bad so I decidet to AS
I have code form examples and I change it to my project, can be viewed on http://foto-korn.pl/
And the code
Code:
import mx.utils.Delegate;
import mx.transitions.Tween;
import mx.transitions.easing.*;
var numOfItems:Number;
var radiusX:Number = 400;
var radiusY:Number = 60;
var centerX:Number = 640;
var centerY:Number = 280;
var speed:Number = 0.0;
var perspective:Number = 140;
var home:MovieClip = this;
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function()
{
var nodes = this.firstChild.childNodes;
numOfItems = nodes.length;
for(var i=0;i<numOfItems;i++)
{
var t = home.attachMovie("item","item"+i,i+1);
t.angle = i * ((Math.PI*2)/numOfItems);
t.onEnterFrame = mover;
t.content = nodes[i].attributes.content;
t.icon.inner.loadMovie(nodes[i].attributes.image);
t.r.inner.loadMovie(nodes[i].attributes.image);
t.icon.onRollOver = over;
t.icon.onRollOut = out;
t.icon.onRelease = released;
}
}
xml.load("icons.xml");
function mover()
{
this._x = Math.cos(this.angle) * radiusX + centerX - 200;
this._y = Math.sin(this.angle) * radiusY + centerY - 30;
var s = (this._y - perspective) /(centerY+radiusY-perspective);
this._xscale = this._yscale = s*70;
this.angle += this._parent.speed;
this.swapDepths(Math.round(this._xscale));
}
this.onMouseMove = function()
{
speed = (this._xmouse-centerX)/60500;
}
function released()
{
}
function over()
{
}
function out()
{
}
My question is... How to make this images clickable to the URL from my XML file, using released function ?
I'm beggin :(