Permalink
Browse files

update for fdt warnings

git-svn-id: https://away3d.googlecode.com/svn/trunk/fp10/Examples/Away3D/as@2840 6da1ee2c-932f-0410-8bb4-73b2b089c45a
  • Loading branch information...
1 parent 7e05d3b commit fb2ae23e2cd951584ef661b22120f047f4921207 @rob-bateman rob-bateman committed Oct 5, 2010
Showing with 8 additions and 31 deletions.
  1. +4 −24 src/AS3s/Lantern.as
  2. +2 −2 src/AS3s/MustangGT500.as
  3. +2 −2 src/Advanced_ShadingMaterials.as
  4. +0 −3 src/Basic_Shading.as
View
@@ -1,20 +1,11 @@
//AS3ExporterAIR version 2.1, code Flash 10, generated by Away3D: http://www.away3d.com
package AS3s
{
- import flash.geom.Matrix3D;
- import away3d.containers.ObjectContainer3D;
- import away3d.containers.Scene3D;
- import away3d.core.math.*;
- import away3d.materials.*;
+ import away3d.containers.*;
import away3d.core.base.*;
- import away3d.core.utils.Init;
- import away3d.loaders.utils.*;
- import away3d.loaders.data.*;
- import flash.utils.Dictionary;
- import away3d.primitives.*;
- import flash.display.Bitmap;
- import flash.display.BitmapData;
- import flash.geom.Vector3D;
+ import away3d.core.utils.*;
+
+ import flash.geom.*;
public class Lantern extends ObjectContainer3D
{
@@ -124,16 +115,6 @@ package AS3s
geos.push(geo1);
}
- private function applyMaterialToMesh(id:String, bmd:BitmapData):void
- {
- for(var i:int;i<meshes.length;++i){
- if(meshes[i].name == id){
- meshes[i].material = new BitmapMaterial(bmd);
- break;
- }
- }
- }
-
private function cleanUp():void
{
for(var i:int = 0;i<2;++i){
@@ -176,7 +157,6 @@ package AS3s
{
var start:int= 0;
var chunk:String;
- var end:int= 0;
var dec:String = "";
var charcount:int = str.length;
for(var i:int = 0;i<charcount;++i){
View

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -119,7 +119,7 @@ package
//torso materials
private var torsoNormalMaterial:Dot3BitmapMaterial;
- private var torsoEnviroMaterial:EnviroBitmapMaterial;
+ private var torsoEnviroMaterial:EnviroColorMaterial;
private var torsoPhongMaterial:PhongBitmapMaterial;
private var torsoFlatMaterial:WhiteShadingBitmapMaterial;
@@ -223,7 +223,7 @@ package
torsoNormalMaterial.specular = 0x808080;
//torsoEnviroMaterial = new EnviroBitmapMaterial(Cast.bitmap(TorsoImage), Cast.bitmap(PanoramaImageR), {reflectiveness:0.2});
- torsoEnviroMaterial = new EnviroBitmapMaterial(Cast.bitmap(TorsoImage), Cast.bitmap(PanoramaImageR));
+ torsoEnviroMaterial = new EnviroColorMaterial(0xFF0000, Cast.bitmap(PanoramaImageR));
torsoEnviroMaterial.reflectiveness = 0.2;
//torsoPhongMaterial = new PhongBitmapMaterial(Cast.bitmap(TorsoImage), {specular:0x808080});
View
@@ -44,10 +44,7 @@ package
import away3d.cameras.*;
import away3d.containers.*;
- import away3d.core.clip.RectangleClipping;
- import away3d.core.utils.Cast;
import away3d.lights.*;
- import away3d.loaders.*;
import away3d.materials.*;
import away3d.primitives.*;

0 comments on commit fb2ae23

Please sign in to comment.