home *** CD-ROM | disk | FTP | other *** search
/ Geek Games #12 / GEGA012.iso / eroticos / enbolas.swf / scripts / frame_31 / DoAction.as
Text File  |  2006-01-17  |  1KB  |  54 lines

  1. _level0.fondotiempo.gotoAndPlay(1);
  2. _level0.musica(_level0.musica_actual);
  3. _level0.fondotiempo.gotoAndStop(1);
  4. _level0.cuenta = 1;
  5. _level0.tiempo = new Date();
  6. i = _level0.cambiacolor;
  7. f = 1;
  8. g = _level0.globos;
  9. while(0 < g)
  10. {
  11.    _level0.attachMovie("pelota","globo" + g,500 - g);
  12.    temp = eval("globo" + g);
  13.    viejotemp = eval("globo" + (g + 1));
  14.    temp._x = _level0.margen + random(_level0.ancho);
  15.    temp._y = _level0.margen + _level0.barra + random(_level0.alto);
  16.    distx = Math.abs(Math.abs(viejotemp._x) - Math.abs(temp._x));
  17.    disty = Math.abs(Math.abs(viejotemp._y) - Math.abs(temp._y));
  18.    while(disty < 33)
  19.    {
  20.       temp._y = _level0.margen + _level0.barra + random(_level0.alto);
  21.       disty = Math.abs(Math.abs(viejotemp._y) - Math.abs(temp._y));
  22.    }
  23.    trace(g + " :" + disty);
  24.    temp.tamano = Math.abs(100 - random(_level0.variasize * 2));
  25.    if(temp.tamano < 33)
  26.    {
  27.       temp.tamano += 33;
  28.    }
  29.    temp.numero = g;
  30.    if(_level0.fase_rotacion == 2)
  31.    {
  32.       temp._rotation = 180;
  33.    }
  34.    if(_level0.fase_rotacion == 3)
  35.    {
  36.       temp._rotation = int(random(2) * 180);
  37.    }
  38.    if(_level0.fase_rotacion == 4)
  39.    {
  40.       temp._rotation = int(random(4) * 90);
  41.    }
  42.    if(1 < i)
  43.    {
  44.       i--;
  45.    }
  46.    else
  47.    {
  48.       i = _level0.cambiacolor;
  49.       f++;
  50.    }
  51.    temp.color = f;
  52.    g--;
  53. }
  54.