Ho trovato questo sorgente dal web, pubblicandolo con flash6 e AS1 funziona se lo pubblico con flash8 e AS2 come per magia tutto si blocca.... Come posso portarlo da AS1 a AS2?
caricaFilmato = "home";
contenitore.loadMovie(caricaFilmato + ".swf");
menu.home.gotoAndStop("fadeOut");
hitSound = new Sound(this);
hitSound.attachSound("hit");
clickSound = new Sound(this);
clickSound.attachSound("click");
wmodifier = 329;
hmodifier = 425;
movimento = 1.000000E-001;
velocità = 9;
expand = function (id)
{
var _loc1 = this;
var _loc2 = id;
_loc1.destwidth = wmodifier;
_loc1.poswidth = _loc2._width;
_loc1.velwidth = _loc1.velwidth * movimento + (_loc1.destwidth - _loc1.poswidth) / velocità;
_loc2._width = _loc2._width + Math.round(_loc1.velwidth);
_loc1.destheight = hmodifier;
_loc1.posheight = _loc2._height;
_loc1.velheight = _loc1.velheight * movimento + (_loc1.destheight - _loc1.posheight) / velocità;
_loc2._height = _loc2._height + Math.round(_loc1.velheight);
_loc1.destx = (900 - wmodifier) / 2;
_loc1.posx = _loc2._x;
_loc1.velx = _loc1.velx * movimento + (_loc1.destx - _loc1.posx) / velocità;
_loc2._x = _loc2._x + Math.round(_loc1.velx);
_loc1.desty = (600 - hmodifier) / 2;
_loc1.posy = _loc2._y;
_loc1.vely = _loc1.vely * movimento + (_loc1.desty - _loc1.posy) / velocità;
_loc2._y = _loc2._y + Math.round(_loc1.vely);
logo._x = sfondo1._x - 10;
logo._y = sfondo1._y + sfondo1._height + 20;
menu._x = sfondo1._x + sfondo1._width - Math.floor(menu._width) + 14;
menu._y = sfondo1._y + sfondo1._height + 25;
sfondo2._width = sfondo1._width + 20;
sfondo2._x = sfondo1._x - 10;
sfondo2._height = sfondo1._height + 20;
sfondo2._y = sfondo1._y - 10;
sfondo3._width = sfondo2._width + 20;
sfondo3._x = sfondo2._x - 10;
sfondo3._height = sfondo2._height + 20;
sfondo3._y = sfondo2._y - 10;
contenitore._x = sfondo1._x;
contenitore._y = sfondo1._y;
maschera._x = sfondo1._x;
maschera._y = sfondo1._y;
maschera._width = sfondo1._width;
maschera._height = sfondo1._height;
loader._x = sfondo1._x + 20;
loader._y = sfondo1._y + sfondo1._height - 20;
closeBut._x = sfondo1._x + sfondo1._width - 62;
closeBut._y = sfondo1._y - 40;
};
sfondo1.onEnterFrame = function ()
{
expand(this);
};
stop ();
Nella finestra Output non mi da nessun errore... Come posso risolvere la cosa?
Grazie.