Loader3D already provides a very quick and very easy way to load
simple scene resources and display them:
var loader : Loader3D = new Loader3D();
loader.load(new URLRequest('mymodel.3ds'));
myScene.addChild(loader);
And in the case of the onMeshComplete() event you can always get the
mesh from the event:
_mesh = event.asset as Mesh;
For animations and other things that you might want to load, the
benefits of Loader3D (which relate to being able to easily add visual
content to the scene) are less prominent and you will need to listen
for the appropriate asset events and set up your animation as it comes
in.
Cheers
/R
On Jun 28, 3:16 pm, Rob Bateman <[email protected]> wrote:
> Hey Wen
>
> ah yes, this is part of an ongoing discussion about how content is handled
> in the Loader3D approach to loading - obviously with AssetLibrary we have a
> more generalised loading method but it is hoped that Loader3D will still
> provide a quick and easy way for people to load in their models for instant
> viewing, as older versions allow. Once we have finalised the approach, we
> will be updating this area of the code!
>
> cheers
>
> Rob
>
>
>
>
>
>
>
>
>
> On Sat, Jun 25, 2011 at 12:20 PM, richardolsson <[email protected]> wrote:
> > That class seems to be out of date. While you're waiting for someone
> > to fix it (which may take some time, as we are not yet focusing on the
> > examples but rather to progress the core library) you can post any
> > questions that you might have and that you were hoping for that
> > example class to explain.
>
> > Cheers
> > /R
>
> > On Jun 23, 9:46 pm, wen smart_ant <[email protected]> wrote:
> > > Description Resource Path Location Type
> > > 1119: Access of possibly undefined property handle through a reference
> > > with static type away3d.loaders:Loader3D. AnimBlendTest.as /
> > > AwayBroomStick/src line 150 Flex Problem
>
> > > private function onMeshComplete(event : AssetEvent) : void
> > > {
> > > if (event.asset.assetType == AssetType.MESH) {
> > > _mesh = _loader.handle as Mesh;
>
> --
> Rob Bateman
> Flash Development & Consultancy
>
> [email protected]