Sound like you are not using the latest version. Check the svn.
You should set up like this:
[..]
var loader:Loader3D = new Loader3D();
loader.addOnSuccess(onLoadedComplete);
loader.addOnError(onLoadedError);
var parser:Obj = new Obj({useGroups:true}); // change var parser, by Max3DS,
Md2, AWData... depending on source format.
loader.loadGeometry(myUrl, parser);
[..]
private function onLoadedComplete(e:Loader3DEvent):void
{
var myloadedObject3D:Object3D = e.loader.handle; // can be either Mesh,
ObjectContainer3D or BSPtree (last one coming out soon)
}
private function onLoadedError(e:Loader3DEvent):void
{
trace(e.loader.IOErrorText);
}
Fabrice
On Feb 28, 2010, at 6:00 AM, Mike Kelley wrote:
> Yeah, I think you may be right -- the usage looks like Loader3D.
>
> Unfortunately, when I changed it to that, I hit a different problem with the
> project, so still messing around...
>
> On Sat, Feb 27, 2010 at 8:48 PM, Joshua Granick <[email protected]>
> wrote:
> Loader3D?
>
>
>
> On Sat, 27 Feb 2010 16:24:21 -0800, mwk <[email protected]> wrote:
>
> I've hit the missing Object3DLoader class problem too; is it
> deprecated or just missing?
>
> I'm trying to build the Many Mario example from
> http://www.infiniteturtles.co.uk/blog/away3d-multimario which uses
> Object3DLoader, but I can't find that class anywhere in 3.4 src. From
> the site it sounds like it worked with 2.2.
>
> If Object3DLoader is gone, what is it replaced by? I'd like to get
> that demo working with the current tree again.
>
> mwk
>
> On Feb 22, 1:26 am, MostHostLa <[email protected]> wrote:
> Well That's OK,
> I have a copy of the model that is completely separated, but I
> discarded it's usage when I realize Pvp3d could not perform even when
> the items were placed on different layers...
> I will try this approach again, Thanks for the help.
>
> Does anyone have any Idea about themissingObject3DLoaderClass ?
> Is this a bug of the current release, or is it amissingfile that is
> not avail for flash 9 ??? (and it's not that I didn't look, I can not
> find it anywhere in the whole aw3d directory...)
>
> On Feb 21, 9:07 am, Peter Kapelyan <[email protected]> wrote:
>
> > That is a worst-case scenario you happened to find, some models are SUPER
> > HARD to correctly ZSORT.
>
> > The only thing I can think of off the top of my head is to make that blue
> > bottom piece a separate model, and give it ownCanvas an pushback=ture or you
> > can force it more ways.
>
> > -Pete
>
> > On Sat, Feb 20, 2010 at 4:56 PM, MostHostLa <[email protected]> wrote:
> > > NOTE: I'm running this in flash CS3, with the 9 sources...
>
> > > Here is my problem,
>
> > > What i have is basically a pot with an internal hedge. (take a look
> > > herehttp://mosthostla.com/images/Wierd.jpg)
>
> > > This was created in Blender, and I tried to import into away3d
> > > (because Pvp3d Sucks when it comes to getting an item to intersect
> > > with another, which is what I will need to do later on).
>
> > > now here is my problem with Away3d... I'm not quite sure what is
> > > happening to this 3dmodel, the mesh on it looks fine, but not for the
> > > sides (where you can see there is back corners...)
>
> > >http://mosthostla.com/images/Wierd.jpg
>
> > > The best way I can describe the item is this...
> > > The red is the outer section,
> > > The green is the drop to the internal hedge, which is yellow.
> > > The Pink is the border that reached the bottom, which is Blue.
>
> > > I'm not sure what the problem might be, or how to work around it, but
> > > I'm using an AS class generated (and manually modified to make it
> > > work) from withing Blender thanks to
>
> > >http://www.rozengain.com/blog/2008/01/02/export-your-blender-objects-...
> > > ,
> > > which has proven to work good for other objects and different
> > > situations...
>
> > > I have been struggling to find a Collada (dae) file tutorial, that
> > > will allow me to simple create the collada in away3d... And even
> > > though I have been reading the classes from the source to figure out
> > > what to do, it's not as fast and easy as taking a look at someone's
> > > code that works... Which I can't really find much of since it does not
> > > compile with CS3 in most of the cases.
>
> > > Somehow Some Way, the SVN ismissinga class inside the loader
> > >Object3DLoaderto be exact... I'm not sure if that's just because it's
> > > not CS3 compatible or if it got changed, but as far as I have seen
> > > that class is what is being used to import collada, and since I don't
> > > have the class I can't import collada...
>
> > > so I guess if anyone has advice or ideas i'm listening, and tanks you
> > > all in advance for any help.
>
> > > A.
>
> > --
> > ___________________
>
> > Actionscript 3.0 Flash 3D Graphics Engine
>
> > HTTP://AWAY3D.COM
>
>
>
> --
> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
>