Bueno, encontré esta página hace un tiempo y me dedique hacer el tutorial del carrusell:
[url]www.gotoandlearn.com[/url].
Y me pareció genial, pero lo que quiero es que el carrusell este dando vueltas con 3 elementos o 5 y que cuando presione en uno de ellos me aparezca una imagen grande del elemento, es decir, tengo dos archivos en imágenes el b1 de 100 por 100 píxeles y el b1size que tiene 400x400.
El problema es que el video te enseña (en el tercer tutorial) hacer como que el b1 duplique su tamaño, haciendo visible los píxeles, entonces pensé en hacer un dropzone para que la imagen b1size fuera directamente ahí, no sé si me explico.
La otra solución, seria poner el b1size a la mitad de tamaño, para que dando vueltas se viera pequeño y cuando le presionaras se duplicara el tamaño sin perdida de píxeles, bueno ya me comentáis que os parece y sialguno me puede ayudar.
Dejo el código:
Este es el primero (sin el aumento, sino para poner el b1 y el b1size juntos.
Y este es el código con el incremento del b1 al doble, donde se me joden los píxeles, y el cual me gustaría cambiar por el b1size, pero reduciendo los 400x400 píxeles y dejándolo en 100 por 100 píxeles, para cuando le de al botón no se vean los píxeles rotos, sino que se vea la imagen al 100%.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.
Var truco:movieclip = this, attachmovie (truco,truco,10000).
Toltip._alpha = 0.
Var xml:xml = new xml().
Xml, ignorewhite = true.
Xml, onload = function().
{ tvar nodes = this, firstchild, childnodes, tnomofitems = nodes, length, tfor(VAR i=0;i.attributes, truco, t, icon, inner, Load Movie (nodes.attributes, image), tr, inner, Load Movie (nodes.attributes, image), t}.
}.
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) + 100).
}.
This, onmousemove = function().
{ tsped = (this._xmouse-centerx)/2200.
}.
Si 146 líneas de código.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:xml = new xml().
Xml, ignorewhite = true.
Xml, onload = function().
{ tvar nodes = this, firstchild, childnodes, tnomofitems = nodes, length, tfor(VAR i=0;i.attributes, truco, t, content = nodes.attributes, content, t, icon, inner, Load Movie (nodes.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}.
Function unreleased().
{ tdeleete this, onrelease, tvar tw:twen = new twen(thetext,_alpha,strong, easeout,100,0,0.5, true), tfor(VAR i=0;i}.
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.
}.