title: AS3 - Access Property of Class in different package
body: <p>I have a problem with accessing properties from different packages.
  I can't access any properties of the Assets class from the FloorTile Class. How do I get floorTileData from Assets?</p>
  
  <p>Assets:</p>
  
  <pre><code>package src.gfx{
  import flash.display.Bitmap;
  import flash.display.BitmapData;
  import flash.geom.Rectangle;
  import flash.geom.Point;
  
      public class Assets{
          public var floorTileData:BitmapData = new BitmapData(0, 0); 
  
          //Other Code
  
      }
  
  }
  </code></pre>
  
  <p>FloorTile:</p>
  
  <pre><code>package src.tilespack{
  import src.gfx.Assets;
  
      public class FloorTile extends Tile{
  
          public function FloorTile(ID:int){
              super(Assets.floorTileData, ID); //Error in this line
          }
      }
  }
  </code></pre>
  
  <p>The error is due to this line</p>
  
  <pre><code>super(Assets.floorTileData, ID);
  </code></pre>
  
  <p>I get the Error - 1119: Access of possibly undefined property floorTileData through a reference with static type Class.</p>