Import mx, utils. Delegate.
Import mx.transicións. Twen.
Import mx.transicións, easing.*.
Var numofitems:number = 3.
Var radiusx:number = 100.
Var radiusy:number = 40.
Var centerx:number = stage.width/1.5.
Var centery:number = stage, height/1.4.
Var speed:number = 0.08.
Var perspective:number = 130.
Var home:movieclip = this.
Thetext._alpha = 0.
Var truco:movieclip = this, attachmovie (truco,truco,10000).
Toltip._alpha = 0.
Var xml

ml = new xml().
Xml, ignorewhite = true.
Xml, onload = function().
{ tvar nodes = this, firstchild, childnodes, tnomofitems = nodes, length, tfor(VAR i=0;i<numofitems;i++) t{ VAR te = home, attachmovie (item,item+i, i+1), t, angle = i * ((math. Pi*2)/numofitems), t, onenterframe = mover, t, toltext = nodes[i].attributes, truco, t, content = nodes[i].attributes, content, t, icon, inner, Load Movie (nodes[i].attributes, image), tr, inner, Load Movie (nodes[i].attributes, image), t, icon, onrollover = over, t, icon, onrollout = out, t, icon, onreléase = released, t}.
}.
Function over().
{ thome, truco, tiptext, text = this._parent, toltext, thome, truco._x = this._parent._x, thome, truco._y = this._parent._y - This._parent._height/2, thome, truco, onenterframe = delegate, create (this, movetip), thome, truco._alpha = 100.
}.
Function out().
{ tdeleete home, truco, onenterframe, thome, truco._alpha = 0.
}.
Function released().
{ thome, truco._alpha = 0, tfor(VAR i=0;i<numofitems;i++) t{ VAR t:movieclip = home[item+i] t.xpues = t._x, t, ypues = t._y, t, thescale = t._xscale, deleete t, icon, onrollover, deleete t, icon, onrollout, deleete t, icon, onrelease, deleete t, onenterframe, if(t.= this._parent) { VAR tw:twen = new twen(t,_xscale,strong, easeout, t._xscale,0,1, true), VAR tw2:twen = new twen(t,_yscale,strong, easeout, t._yscale,0,1, true), VAR tw3:twen = new twen(t,_alpha,strong, easeout,100,0,1, true), } else { VAR tw:twen = new twen(t,_xscale,strong, easeout, t._xscale,200,1, true), VAR tw2:twen = new twen(t,_yscale,strong, easeout, t._yscale,200,1, true), VAR tw3:twen = new twen(t,_x,strong, easeout, t._x,400,1, true), VAR tw4:twen = new twen(t,_y,strong, easeout, t._y,350,1, true), VAR tw5:twen = new twen(thetext,_alpha,strong, easeout,0,100,1, true), thetext, text = t, content, VAR s:object =this, tw.onmotionstopped = function() { t, onreléase = unreleased; } } t}.
}.
Function unreleased().
{ tdeleete this, onrelease, tvar tw:twen = new twen(thetext,_alpha,strong, easeout,100,0,0.5, true), tfor(VAR i=0;i<numofitems;i++) t{ VAR t:movieclip = home[item+i], if(t.= this._parent) { VAR tw:twen = new twen(t,_xscale,strong, easeout,0t, thescale,1, true), VAR tw2:twen = new twen(t,_yscale,strong, easeout,0t, thescale,1, true), VAR tw3:twen = new twen(t,_alpha,strong, easeout,0,100,1, true), } else { VAR tw:twen = new twen(t,_xscale,strong, easeout,200t, thescale,1, true), VAR tw2:twen = new twen(t,_yscale,strong, easeout,200t, thescale,1, true), VAR tw3:twen = new twen(t,_x,strong, easeout, t._x, t.xpos,1, true), VAR tw4:twen = new twen(t,_y,strong, easeout, t._yt, ypos,1, true), tw.onmotionstopped = function() { for(VAR i=0;i<numofitems;i++) { VAR t:movieclip = home[item+i], t, icon, onrollover = delegate, create (t, icon, over), t, icon, onrollout = delegate, create (t, icon, out), t, icon, onreléase = delegate, create (t, icon, released), t, onenterframe = mover; } } } t}.
}.
Function movetip().
{ thome, truco._x = this._parent._x, thome, truco._y = this._parent._y - This._parent._height/2.
}.
Xml, load(icons.xml).
Function mover ().
{ tthis._x = math, cos(this, angle) * radiusx + centerx, tthis._y = math, sin(this, angle) * radiusy + centery, tvar s:number = (this._y - Perspective) / (centery+radiusy-perspective), tthis._xscale = this._yscale = s * 80, tthis, angle += this._parent, speed, tthis, swapdepths(math, round(this._xscale) + 200).
}.
This, onmousemove = function().
{ tsped = (this._xmouse-centerx)/2200.
}.