Advertisement
Guest User

Untitled

a guest
May 28th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package  {
  2.    
  3.     import flash.display.*;
  4.     import flash.events.*;
  5.    
  6.     public class Floor extends Sprite {
  7.        
  8.         var floorList:Array = [];
  9.        
  10.         public function Floor() {
  11.            
  12.         }
  13.        
  14.         public function drawFloor(fX:Number, fY:Number, fW:Number):void {
  15.             for(var i = 0; i < fW; i++) {
  16.                 floorList.push(new floorImage());
  17.                 stage.addChild(floorList[i]);
  18.                 floorList[i].x = fX + i;
  19.                 floorList[i].y = fY;
  20.             }
  21.         }
  22.    
  23.     }
  24.    
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement