Away3d 3.6 replaces all the math classes to Flash Player natives .
MatrixAway3D--> Matrix3D , Number3d----->Vector3D .If you are good on 3d
math you will have no pain to convert these examples and if you are not ,as
for beginner I would suggest you may  be to revert to Away3D 3.5 version and
learn the basics with the book.

On Fri, Nov 5, 2010 at 2:37 AM, KevinBurke <[email protected]> wrote:

> 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);
> }
> }
> }




-- 
Michael Ivanov ,Programmer
Neurotech Solutions Ltd.
Flex|Air |3D|Unity|
www.neurotechresearch.com
http://blog.alladvanced.net
http://www.meetup.com/GO3D-Games-Opensource-3D/
Tel:054-4962254
[email protected]
[email protected]

Reply via email to