home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / LetLoveEnergy.swf / scripts / frame_746 / DoAction.as
Encoding:
Text File  |  2005-08-05  |  3.3 KB  |  119 lines

  1. function goto()
  2. {
  3.    gotoAndPlay(746);
  4. }
  5. function CreateArrows()
  6. {
  7.    i = 0;
  8.    while(i < ArrowArray.length)
  9.    {
  10.       duplicateMovieClip("_root.arrow","arrow" + i,16384 + (i + 24500));
  11.       _root["arrow" + i].Internal_X = ArrowArray[i][0];
  12.       _root["arrow" + i].Internal_Y = ArrowArray[i][1];
  13.       _root["arrow" + i]._rotation = ArrowArray[i][2];
  14.       i++;
  15.    }
  16. }
  17. function CreateGirls()
  18. {
  19.    i = 0;
  20.    while(i < GirlArray.length)
  21.    {
  22.       duplicateMovieClip("_root.girl","girl" + i,16384 + (i + 700));
  23.       _root["girl" + i].Internal_X = GirlArray[i][0];
  24.       _root["girl" + i].Internal_Y = GirlArray[i][1];
  25.       i++;
  26.    }
  27. }
  28. function CreateBoulders()
  29. {
  30.    i = 0;
  31.    while(i < BoulderArray.length)
  32.    {
  33.       duplicateMovieClip("_root.Boulder","boulder" + i,16384 + (i + 1100));
  34.       _root["boulder" + i].Internal_x = BoulderArray[i][0];
  35.       _root["boulder" + i].Internal_y = BoulderArray[i][1];
  36.       i++;
  37.    }
  38. }
  39. function CreateBoulders2()
  40. {
  41.    i = 0;
  42.    while(i < BoulderArray2.length)
  43.    {
  44.       duplicateMovieClip("_root.Bouldercopy","bouldernew" + i,16384 + (i + 1400));
  45.       _root["bouldernew" + i].Internal_x = BoulderArray2[i][0];
  46.       _root["bouldernew" + i].Internal_y = BoulderArray2[i][1];
  47.       duplicateMovieClip("_root.Bouldercopy","bouldernew" + i + 50,16384 + (i + 1400 + 50));
  48.       _root["bouldernew" + i + 50].Internal_x = BoulderArray2[i][0] - 80;
  49.       _root["bouldernew" + i + 50].Internal_y = BoulderArray2[i][1];
  50.       i++;
  51.    }
  52. }
  53. function FillTreeArray(FinalPos)
  54. {
  55.    i = 0;
  56.    while(i < FinalPos)
  57.    {
  58.       TreeArray[i] = [i * 100 + random(100),75];
  59.       i++;
  60.    }
  61. }
  62. function CreateTrees(FinalPos)
  63. {
  64.    i = 0;
  65.    while(i < FinalPos)
  66.    {
  67.       duplicateMovieClip("_root.Tree","Tree" + i,16384 + (i + 100));
  68.       _root["Tree" + i].Internal_X = TreeArray[i][0];
  69.       _root["Tree" + i]._Y = TreeArray[i][1];
  70.       _root["Tree" + i]._z = random(20) + 75;
  71.       i++;
  72.    }
  73. }
  74. function CreateFloor()
  75. {
  76.    i = 0;
  77.    while(i < 10)
  78.    {
  79.       duplicateMovieClip("_root.floor","floor1" + i,16384 + (i + 600));
  80.       _root["Floor1" + i].Internal_X = i * 800;
  81.       _root["Floor1" + i].Internal_Y = 220;
  82.       _root["Floor1" + i].swapDepths(600 + i);
  83.       duplicateMovieClip("_root.BigFloor","BigFloor" + i,16384 + (i + 400));
  84.       _root["BigFloor" + i].Internal_X = i * 550;
  85.       _root["BigFloor" + i].Internal_Y = 220;
  86.       _root["BigFloor" + i].swapDepths(400 + i);
  87.       i++;
  88.    }
  89. }
  90. TreeArray = new Array();
  91. BoulderArray = new Array();
  92. GirlArray = new Array();
  93. ArrowArray = new Array();
  94. BoulderArray[0] = [600,100];
  95. BoulderArray[1] = [800,50];
  96. BoulderArray[2] = [1600,150];
  97. BoulderArray[3] = [1800,150];
  98. BoulderArray[4] = [2000,150];
  99. BoulderArray[5] = [1700,50];
  100. BoulderArray[6] = [1900,50];
  101. BoulderArray[7] = [1800,-50];
  102. BoulderArray[8] = [2450,150];
  103. BoulderArray[9] = [2300,50];
  104. BoulderArray[10] = [2600,50];
  105. BoulderArray[11] = [2800,0];
  106. BoulderArray[12] = [3400,125];
  107. BoulderArray[13] = [4200,50];
  108. BoulderArray[14] = [4200,125];
  109. GirlArray[0] = [400,150];
  110. GirlArray[1] = [900,-75];
  111. GirlArray[2] = [1800,-125];
  112. GirlArray[3] = [3000,-75];
  113. GirlArray[4] = [3800,-75];
  114. ArrowArray[0] = [150,150,90];
  115. ArrowArray[1] = [920,100,0];
  116. ArrowArray[2] = [3010,100,0];
  117. ArrowArray[3] = [3800,100,0];
  118. ArrowArray[4] = [1800,50,0];
  119.