13/01/2010, 16:56
|
| | Fecha de Ingreso: agosto-2008
Mensajes: 51
Antigüedad: 16 años, 2 meses Puntos: 0 | |
traduccion de as1 a as2 no me aclaro conlas versiones.
tengo un codigo que no se pasar a as2 me da multiples errores
alguien me puede ayudar?
FOTOGRMA 1
fscommand("fullscreen", "true");
fscommand("allowscale", "true");
tellTarget ("_root.Animate") {
gotoAndStop(1);
}
Countries = new array();
MyCount = 0;
Cur_Count = 0;
No_Tries = 0;
MYkeyb = new array();
Countries[1] = "España";
Countries[2] = "Francia";
etc...
MYkeyb[1] = "Q";
MYkeyb[2] = "W";
etc....
i = 0;
FOTOGRAMA 2
MyNewName = "Char" add Number(i+1);
MyOldName = "Char" add Number(i);
if (i < 26) {
for (j=1; j<=26; j++) {
duplicateMovieClip(MyOldName, MyNewName, Number(i)+1);
}
MyOldPos = getProperty(MyOldName, _x);
setProperty(MyNewName, _x, Number(MyOldpos)+40);
set("_root." add MyNewName add ".MYChar", MyKEyb[i+1]);
if ((Number(i) == 10)) {
setProperty(MyNewName, _x, 39);
setProperty(MyNewName, _y, getProperty (MyOldName,_y )+ 40);
}
if ((Number(i) == 20)) {
setProperty(MyNewName, _x, 118);
setProperty(MyNewName, _y, getProperty (MyOldName,_y )+ 40);
}
}
i = Number(i)+1;
Random_Country = random(Countries.length);
Country_Name = Countries[Random_Country];
FOTOGRAMA3
if (i<=26) {
gotoAndPlay(2);
} else {
gotoAndPlay(4);
}
FOTOGRAMA 4
max = length(Country_Name);
c = 1;
NewCountry_Name = "";
for (l=1; l <= length(Country_Name); l++) {
if (substring(Country_name,l,1) == " ") {
NewCountry_Name = NewCountry_Name add "1";
} else {
NewCountry_Name = NewCountry_Name add substring(Country_name,l,1);
MyCount = MyCount + 1;
}
}
FOTOGRAMA 5
for (c=2; c <= max; c++) {
duplicateMovieClip("con" add (c-1), "Con" add c, c + 30);
if (substring(NewCountry_name,c,1) == "1") {
setProperty("con" add c, _y, getProperty ( "con" add c,_y ) + 55);
setProperty("con" add c, _x, getProperty ("_root.Con1",_x ) - 35);
tellTarget ("con" add c) {
gotoAndStop(3);
}
} else {
setProperty("con" add c, _x, getProperty ( "con" add c,_x ) + 35);
}
}
stop(); |