acompanho o fórum como vistante há algum tempo, mas agora resolvi me cadastrar porque tem um script me tirando o sono...
bem, estou fazendo uns testes com algumas funções e peguei um script pronto para estuda-lo.. e ele é um script que foi feito no Flash 5.
Quando exporto, ele funciona bem. Porém reparei que quando exporto-o em Flash 7 ou 8 ele simplesmente não funciona, e também não apresenta nenhum erro de sintaxe ou algo do tipo. Ele simplesmente NÃO FUNCIONA.
Achei que fosse algum problema de AS 1.0 pra 2.0, porém exportando em Flash 6r65 com AS 2.0 ele continua funcionando.
Alguem me dá uma luz?
eis o script:
QUOTE
onClipEvent (load) {
objects = 26;
speed = 80;
react = 1.2;
displayratio = 0.8;
zoom = 12;
zaxis = 30000;
zaxisdef = 26000;
scaler = 15;
for (i=1; i<=objects; i++) {
set("z"+i, (4000*i)-50000);
}
}
onClipEvent (enterFrame) {
newx = (newx-((_root._xmouse-this._x)/speed))/react;
newy = (newy-((_root._ymouse-this._y)/speed))/react;
if (_root.press == 1) {
newz = newz-zoom;
} else {
newz = ((newz+(zaxisdef-zaxis))/speed)/react;
}
xaxis += newx;
yaxis += newy;
zaxis += newz;
for (i=1; i<=objects; i++) {
set("ratio"+i, 100000/(zaxis-this["z"+i]));
set("cx"+i, (xaxis*this["ratio"+i])/100);
set("cy"+i, (yaxis*this["ratio"+i])/100);
if (this["ratio"+i]>0 && this["z"+i]<zaxis) {
_root["object"+i]._visible = true;
_root["object"+i]._xscale = (this["ratio"+i]*displayratio)*scaler;
_root["object"+i]._yscale = (this["ratio"+i]*displayratio)*scaler;
_root["object"+i]._x = (this._x+this["cx"+i])+this["ratio"+i];
_root["object"+i]._y = (this._y+this["cy"+i])+(this["y"+i]*this["ratio"+i]);
_root["object"+i]._alpha = (this["ratio"+i]*2.5)+10;
} else {
_root["object"+i]._visible = 0;
}
}
}
objects = 26;
speed = 80;
react = 1.2;
displayratio = 0.8;
zoom = 12;
zaxis = 30000;
zaxisdef = 26000;
scaler = 15;
for (i=1; i<=objects; i++) {
set("z"+i, (4000*i)-50000);
}
}
onClipEvent (enterFrame) {
newx = (newx-((_root._xmouse-this._x)/speed))/react;
newy = (newy-((_root._ymouse-this._y)/speed))/react;
if (_root.press == 1) {
newz = newz-zoom;
} else {
newz = ((newz+(zaxisdef-zaxis))/speed)/react;
}
xaxis += newx;
yaxis += newy;
zaxis += newz;
for (i=1; i<=objects; i++) {
set("ratio"+i, 100000/(zaxis-this["z"+i]));
set("cx"+i, (xaxis*this["ratio"+i])/100);
set("cy"+i, (yaxis*this["ratio"+i])/100);
if (this["ratio"+i]>0 && this["z"+i]<zaxis) {
_root["object"+i]._visible = true;
_root["object"+i]._xscale = (this["ratio"+i]*displayratio)*scaler;
_root["object"+i]._yscale = (this["ratio"+i]*displayratio)*scaler;
_root["object"+i]._x = (this._x+this["cx"+i])+this["ratio"+i];
_root["object"+i]._y = (this._y+this["cy"+i])+(this["y"+i]*this["ratio"+i]);
_root["object"+i]._alpha = (this["ratio"+i]*2.5)+10;
} else {
_root["object"+i]._visible = 0;
}
}
}
este é um código de uma espe´cie de "zoom 3d" em vários movieclips. Como disse, é um script opensource baixado em algum site aleatório...
Agradeço desde já!

Help














