home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / tall-ships.swf / scripts / DefineSprite_542 / frame_1 / DoAction.as
Encoding:
Text File  |  2005-09-29  |  1.9 KB  |  42 lines

  1. tutorialWaterTextures_mc._alpha = 50;
  2. tutorialWaterTextures_mc.onEnterFrame = function()
  3. {
  4.    if(_parent.tutorialMap_mc._x < 250 - this._x)
  5.    {
  6.       this._x += 500;
  7.    }
  8.    if(_parent.tutorialMap_mc._x > 250 - this._x)
  9.    {
  10.       this._x -= 500;
  11.    }
  12.    if(_parent.tutorialMap_mc._y < 250 - this._y)
  13.    {
  14.       this._y += 500;
  15.    }
  16.    if(_parent.tutorialMap_mc._y > 250 - this._y)
  17.    {
  18.       this._y -= 500;
  19.    }
  20. };
  21. tutorialWaterTextures_mc.attachMovie("waterTexture","waterTexture1_mc",201,textureWater);
  22. tutorialWaterTextures_mc.waterTexture1_mc._x -= 500;
  23. tutorialWaterTextures_mc.waterTexture1_mc._y -= 500;
  24. tutorialWaterTextures_mc.attachMovie("waterTexture","waterTexture2_mc",202,textureWater);
  25. tutorialWaterTextures_mc.waterTexture2_mc._y -= 500;
  26. tutorialWaterTextures_mc.attachMovie("waterTexture","waterTexture3_mc",203,textureWater);
  27. tutorialWaterTextures_mc.waterTexture3_mc._x += 500;
  28. tutorialWaterTextures_mc.waterTexture3_mc._y -= 500;
  29. tutorialWaterTextures_mc.attachMovie("waterTexture","waterTexture4_mc",204,textureWater);
  30. tutorialWaterTextures_mc.waterTexture4_mc._x -= 500;
  31. tutorialWaterTextures_mc.attachMovie("waterTexture","waterTexture5_mc",205,textureWater);
  32. tutorialWaterTextures_mc.attachMovie("waterTexture","waterTexture6_mc",206,textureWater);
  33. tutorialWaterTextures_mc.waterTexture6_mc._x += 500;
  34. tutorialWaterTextures_mc.attachMovie("waterTexture","waterTexture7_mc",207,textureWater);
  35. tutorialWaterTextures_mc.waterTexture7_mc._x -= 500;
  36. tutorialWaterTextures_mc.waterTexture7_mc._y += 500;
  37. tutorialWaterTextures_mc.attachMovie("waterTexture","waterTexture8_mc",208,textureWater);
  38. tutorialWaterTextures_mc.waterTexture8_mc._y += 500;
  39. tutorialWaterTextures_mc.attachMovie("waterTexture","waterTexture9_mc",209,textureWater);
  40. tutorialWaterTextures_mc.waterTexture9_mc._x += 500;
  41. tutorialWaterTextures_mc.waterTexture9_mc._y += 500;
  42.