Vou conseguir por links nesses MC's? Ahcei um outro código que consegui estruturálo
Aqui a animação.. so os links não funcionam.http://www.net-on.inf.br/swf/home.swfCÓDIGO
function moveMe()
{
this.currAngle = this.place + this._parent.carouselOffset;
if (this.currAngle >= 6.283185E+000)
{
this.currAngle = this.currAngle - 6.283185E+000;
} // end if
if (this.currAngle < 0)
{
this.currAngle = this.currAngle + 6.283185E+000;
} // end if
this.x = this.cx + Math.cos(this.currAngle) * this.xradius;
this.y = this.cy;
this.z = this.cz + Math.sin(this.currAngle) * this.zradius;
} // End of the function
function displayMe()
{
this.scale = this.fl / (this.fl + this.z);
this._x = this.x * this.scale + this.xcenter;
this._y = this.y * this.scale + this.ycenter;
this._xscale = this._yscale = this.scale * 100;
this.swapDepths(Math.round(this.scale * (this.maxDepth - this.minDepth)) + this.minDepth);
} // End of the function
var arrMCToLoad = ["mcServer", "mcInfbasica", "mcNobreaks"];
var arrMCText = ["this is a bug", "here\'s a twisted smiley", "a star", "a red car", "this is a tree", "it\'s a diamond", "the crescent moon"];
var arrMCActions = ["bug action", "smiley action", "star action", "car action", "tree action", "diamond action", "moon action"];
var curMCShowing = 0;
var arrMCs = [];
var fl = 1100;
var xcenter = 500;
var ycenter = 150;
var zcenter = 300;
var xradius = 400;
var yradius = 00;
var zradius = 300;
var cx = 0;
var cy = 0;
var cz = 300;
var minDepth = 10;
var maxDepth = arrMCToLoad.length * 2 + minDepth;
var angleInc = 6.283185E+000 / arrMCToLoad.length;
var carouselOffset = null;
var carouselOffsetDest = null;
setCarouselToMove = function (dir)
{
if (dir == "forward")
{
++curMCShowing;
} // end if
if (dir == "backward")
{
--curMCShowing;
} // end if
setOffSet();
};
setCarouselToPos = function (idx)
{
curMCShowing = idx;
setOffSet();
};
initCarouselToPos = function (idx)
{
curMCShowing = idx;
setOffSet();
carouselOffset = carouselOffsetDest;
};
setOffSet = function ()
{
if (curMCShowing >= arrMCs.length)
{
curMCShowing = 0;
} // end if
if (curMCShowing < 0)
{
curMCShowing = arrMCs.length - 1;
} // end if
carouselOffsetDest = -1.570796E+000 - curMCShowing * angleInc;
txtAction.text = "";
txtWhoAmI.text = arrMCs[curMCShowing].showText;
};
var idx = 0;
while (idx < arrMCToLoad.length)
{
var s = this.attachMovie(arrMCToLoad[idx], "mc" + idx, idx + minDepth, {fl: fl, idx: idx, whoAmI: arrMCToLoad[idx], showText: arrMCText[idx], action: arrMCActions[idx], place: angleInc * idx, currAngle: 0, cx: cx, cy: cy, cz: cz, xradius: xradius, yradius: yradius, zradius: zradius, xcenter: xcenter, ycenter: ycenter, zcenter: zcenter, minDepth: minDepth, maxDepth: maxDepth, _visible: true});
arrMCs.push(s);
s.trackAsMenu = true;
s.onRelease = s.onReleaseOutside = function ()
{
setCarouselToPos(this.idx);
};
s.moveMe = moveMe;
s.displayMe = displayMe;
s.onEnterFrame = function ()
{
this.moveMe();
this.displayMe();
};
++idx;
} // end while
for (idx = arrMCs.length - 1; idx >= 0; idx--)
{
arrMCs[idx].moveMe();
arrMCs[idx].displayMe();
arrMCs[idx]._visible = true;
} // end of for
initCarouselToPos(0);
this.onEnterFrame = function ()
{
var dist;
for (dist = carouselOffsetDest - carouselOffset; dist > 3.141593E+000; dist = dist - 6.283185E+000)
{
} // end of for
while (dist < -3.141593E+000)
{
dist = dist + 6.283185E+000;
} // end while
if (Math.abs(dist) * 1000 > 1)
{
carouselOffset = carouselOffset + dist * 2.000000E-001;
}
else
{
carouselOffset = carouselOffsetDest;
} // end else if
};
btnForeward.onRelease = btnForeward.onReleaseOutside = function ()
{
setCarouselToMove("forward");
};
btnBackward.onRelease = btnBackward.onReleaseOutside = function ()
{
setCarouselToMove("backward");
};
btnExplore.onRelease = btnExplore.onReleaseOutside = function ()
{
this._parent.txtAction.text = this._parent.arrMCs[this._parent.curMCShowing].action;
};
stop ();
Ele vai dentro do mesmo arquivo, não chama nada externalmente... funcionou legal, mas links nele, Não funcionam, mesmo tranformando os arquivos dentro dos mc em button.
Vou ver se o seu código funcionar elgal com os links ficarei muito grato.