Hi,
I'm new to Away3D and I've downloaded Away 3.6, the Flex 3.6 examples,
as well as the working files for the Friends of Ed book 'The Essential
Guide to 3D in Flash.' Both of the example class collections are
almost unusable because of the many errors from Number3D to Vector3D
and MatrixAway3D to Matrix3D. The book was written for Away3D 3.5. The
Flex class examples for 3.6 seem like they should work with 3.6 but
don't because of the changes (see image)
http://www.kevinburkeportfolio.com/screenshot.png
Could someone please advise on how to get this straight? It has really
held back my diving into this exciting Flash 3D engine. Thank you!
Here's a more specific example from the book:
Description Resource Path Location Type
1067: Implicit coercion of a value of type flash.geom:Vector3D to an
unrelated type away3d.core.base:Vertex. line 26
1067: Implicit coercion of a value of type flash.geom:Vector3D to an
unrelated type away3d.core.base:Vertex. line 27
1137: Incorrect number of arguments. Expected no more than 0. line 29
1137: Incorrect number of arguments. Expected no more than 1. line 24
package
{
import away3d.core.math.*;
import away3d.primitives.*;
import flash3dbook.ch04.*;
[SWF(width="800", height="600")]
public class LinesInSpaceWithLineSegment extends Chapter04SampleBase
{
public function LinesInSpaceWithLineSegment ()
{
super();
}
protected override function _createScene() : void
{
var i : int, p1 : Vector3D, p2 : Vector3D, seg : LineSegment;
p1 = new Vector3D();
p2 = new Vector3D();
for (i=0; i < 500; i++) {
p2.x = (Math.random()-0.5) * 200;
p2.y = (Math.random()-0.5) * 200;
p2.z = (Math.random()-0.5) * 200;
*error* p2.add(p2, p1);
seg = new LineSegment();
*error* seg.start = p1;
*error* seg.end = p2;
_view.scene.addChild(seg);
*error* p1.clone(p2);
}
}
}