title: How to use the lights in multi class in away3d 4.0 Beta?
body: <p>I started in awayd3D and have not found a solution on a version 4.0beta, I can appeal to you.</p>
  
  <p>I have done many research on the internet hoping to find an explanation of the use of lights but the few explanations related to each version 3.</p>
  
  <p>I realize this scene (http://goupix.com/test/). You can use the WASD keys or arrow keys to move.</p>
  
  <p>To achieve this scene, I have several files:
  Exploration.as: Creates the scene, the camera and light.
       light:</p>
  
  <pre><code>PointLight light = new ();
  light.x = -2000;
  light.y = 1000;
  light.z = -1000;
  light.color 0xffeeaa = / / Here, select the new color of the light source
  view.scene.addChild (light);
  </code></pre>
  
  <p>ClassGeneratemap.as: uses a table generated for my decor
  ClassGenerateobjet.as: Called by ClassGeneratemap and place the elements in the scene</p>
  
  <pre><code>public function onAssetComplete(event:AssetEvent):void {
      if ( event.asset.assetType == AssetType.MESH &amp;&amp; event.asset.assetNamespace == token ) {
          AssetLibrary.removeEventListener(AssetEvent.ASSET_COMPLETE, onAssetComplete);               
          trace("position : " + posX + " : " + posY );
          mesh = event.asset as Mesh;
          mesh.geometry.scale(1);
          mesh.x = -posX * instData.scale;
          mesh.z = posY * instData.scale;
          mesh.castsShadows = true ;
          //trace("position : " + mesh.x + " : " + mesh.z );
          instExploration.scene.addChild( mesh );
      }//End If
  }//End onAssetComplete
  </code></pre>
  
  <p>I really do not see how to use the light that I placed. I do not know if indeed this is the right kind of light.</p>
  
  <p>I hope you can help me.
  Thank you</p>