Permalink
Browse files

update issues due api change away3d core

  • Loading branch information...
1 parent ceac0d2 commit 5a96463b99fc97e6f64e734aaa6b7c58196f8c1f @ringodotnl ringodotnl committed Oct 12, 2011
Showing with 8 additions and 8 deletions.
  1. +2 −2 src/BvhTriangleMeshCarTest.as
  2. +3 −3 src/CharacterDemo.as
  3. +1 −1 src/ConvexHullShapeTest.as
  4. +1 −1 src/Main.as
  5. +1 −1 src/VehicleTerrainTest.as
@@ -66,12 +66,12 @@ package {
// load scene model
var _loader : Loader3D = new Loader3D();
- _loader.load(new URLRequest('../assets/scene.obj'), new OBJParser());
+ _loader.load(new URLRequest('../assets/scene.obj'), null,null, new OBJParser());
_loader.addEventListener(LoaderEvent.RESOURCE_COMPLETE, onSceneResourceComplete);
//load car model
_loader = new Loader3D();
- _loader.load(new URLRequest('../assets/car.obj'), new OBJParser());
+ _loader.load(new URLRequest('../assets/car.obj'), null,null, new OBJParser());
_loader.addEventListener(LoaderEvent.RESOURCE_COMPLETE, onCarResourceComplete);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
View
@@ -89,7 +89,7 @@ package {
// load scene model
var _loader : Loader3D = new Loader3D();
- _loader.load(new URLRequest('../assets/scene.obj'), new OBJParser());
+ _loader.load(new URLRequest('../assets/scene.obj'), null,null, new OBJParser());
_loader.addEventListener(LoaderEvent.RESOURCE_COMPLETE, onSceneResourceComplete);
// load character mesh
@@ -140,8 +140,8 @@ package {
character.warp(new Vector3D(0, 500, -1000));
AssetLibrary.addEventListener(AssetEvent.ASSET_COMPLETE, onAnimationComplete);
- AssetLibrary.load(new URLRequest("../embeds/hellknight/idle2.md5anim"), null, null, "idle");
- AssetLibrary.load(new URLRequest("../embeds/hellknight/walk7.md5anim"), null, null, "walk");
+ AssetLibrary.load(new URLRequest("../embeds/hellknight/idle2.md5anim"), null, null, new MD5AnimParser()); // "idle");
+ AssetLibrary.load(new URLRequest("../embeds/hellknight/walk7.md5anim"), null, null, new MD5AnimParser()); //"walk");
}
}
@@ -86,7 +86,7 @@ package {
wallRigidbody.position = new Vector3D(0, 1000, 2000);
var _loader:Loader3D = new Loader3D();
- _loader.load(new URLRequest('../assets/convex.obj'), new OBJParser());
+ _loader.load(new URLRequest('../assets/convex.obj'), null,null, new OBJParser());
_loader.addEventListener(LoaderEvent.RESOURCE_COMPLETE, onConvexResourceComplete);
stage.addEventListener(Event.ENTER_FRAME, handleEnterFrame);
View
@@ -14,7 +14,7 @@ package {
// Setting, change _selectedDemo to 0 till 8
// 0 = Basictest, 1 = BasicStressTest, 2=Gravity, 3=compoundshape,4= collisionfilter
// 5= constraint, 6= vehicle terrain, 7= character walk demo, 8 = bvhTriangleMeshCar
- private var _selectedDemo : int = 6;
+ private var _selectedDemo : int = 5;
// private var _totalDemos : int = 8;
private var _currentDemo : Sprite;
@@ -154,7 +154,7 @@ package {
//load car model
var _loader : Loader3D = new Loader3D();
- _loader.load(new URLRequest('../assets/car.obj'), new OBJParser());
+ _loader.load(new URLRequest('../assets/car.obj'), null,null, new OBJParser());
_loader.addEventListener(LoaderEvent.RESOURCE_COMPLETE, onCarResourceComplete);
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);

0 comments on commit 5a96463

Please sign in to comment.