1 Reply Latest reply on Jul 21, 2011 8:00 PM by Adrien.

    Place a SWC at the loaction I say?

    Adrien. Level 1

      Ok so I am testing an Idea.

       

      Currently I have the following code:

       

      package actionscript.loadMaps
      {
          import flash.display.MovieClip;
          import flash.display.Sprite;
         
          class MapLoader extends Sprite
          {
             
              public function loadWilderness():void
              {
                  var loadMap:MovieClip = new WildernesMap as MovieClip;
                  addChild(loadMap);
              }
          }
      }

       

      I need to call the method loadWilderness() in the main.xml so that it is placed at a specific spot on the application.

       

      How would I do this?