home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Games #12
/
GEGA012.iso
/
eroticos
/
enbolas.swf
/
scripts
/
frame_31
/
DoAction.as
Wrap
Text File
|
2006-01-17
|
1KB
|
54 lines
_level0.fondotiempo.gotoAndPlay(1);
_level0.musica(_level0.musica_actual);
_level0.fondotiempo.gotoAndStop(1);
_level0.cuenta = 1;
_level0.tiempo = new Date();
i = _level0.cambiacolor;
f = 1;
g = _level0.globos;
while(0 < g)
{
_level0.attachMovie("pelota","globo" + g,500 - g);
temp = eval("globo" + g);
viejotemp = eval("globo" + (g + 1));
temp._x = _level0.margen + random(_level0.ancho);
temp._y = _level0.margen + _level0.barra + random(_level0.alto);
distx = Math.abs(Math.abs(viejotemp._x) - Math.abs(temp._x));
disty = Math.abs(Math.abs(viejotemp._y) - Math.abs(temp._y));
while(disty < 33)
{
temp._y = _level0.margen + _level0.barra + random(_level0.alto);
disty = Math.abs(Math.abs(viejotemp._y) - Math.abs(temp._y));
}
trace(g + " :" + disty);
temp.tamano = Math.abs(100 - random(_level0.variasize * 2));
if(temp.tamano < 33)
{
temp.tamano += 33;
}
temp.numero = g;
if(_level0.fase_rotacion == 2)
{
temp._rotation = 180;
}
if(_level0.fase_rotacion == 3)
{
temp._rotation = int(random(2) * 180);
}
if(_level0.fase_rotacion == 4)
{
temp._rotation = int(random(4) * 90);
}
if(1 < i)
{
i--;
}
else
{
i = _level0.cambiacolor;
f++;
}
temp.color = f;
g--;
}