views:

720

answers:

3

Hi everyone, I tried everything but no success.I am having big problems in importing files.So many error.... spent 5 hours but nothing. I successfully able to create project using collada parser but all the problems are coming when i am using import org.papervision3d.objects.parsers.DAE; There were some files missing and when i tried to download the missing files then it is showing me errors in files that i downloaded. Please suggest me how to get solve it.I wonder w'd it be possible for anyone to upload the configuration of papervision+libspark+ascollada which you used for creating a demo(like Brian Hodge used). Thanks alot in advance.And i am extremely sorry for posting this question in a thread AS3 DAE Augmented Reality PaperVision 3D as an answere.I am new to this forum and havent noticed the question tag.Extremely sorry...

A: 

Ok finally i able to solve it.Sorry guys for bothering you.

funkydokta
A: 

Hello Funkydokta,

I am experimenting the Augmented Reality thing. I have gone through the tutorial video of Lee form goto and learn. I have downloaded few DAE files from google sketchup. But my problem is, I am unable to embed the DAE files to the main scene.

Could you please help me out as how should I embed a DAE file. I am using the same code that i found from Lee's blog. http://www.gotoandlearn.com/play?id=105

Appreciate if you can help me out.

Thanks Sid

Hi Sid,Are you having problem with configuring the flex environment(I mean with downloading libraries and all these stuff) or you are getting a run time error.Here is the code that will help you to import the .DAE fileimport org.papervision3d.render.LazyRenderEngine;private var _dae:DAE;private var renderer:LazyRenderEngine;renderer = new LazyRenderEngine(scene,camera3D,viewPort);_dae = new DAE();_dae.load("youfilename.DAE",materialList); //material list is optional_dae.scale=0.5;container3D.addChild(_dae);
funkydokta
A: 

The following is a link to a rather large explanation on PV3D/Flar toolkit AR

http://stackoverflow.com/questions/673059/as3-dae-augmented-reality-papervision-3d

-Questions

What IDE are you developing in? Flex Builder 3, Flash Develop, and Flash CS4 are all capable of handling embeds utilizing the Flex 3 SDK, BUT, Adobe Flash CS3 does not allow you to used embed and will not recognize it.

-Flash CS3 produces the following

TypeError: Error #1007: Instantiation attempted on a non-constructor.
at Untitled_fla::MainTimeline/Untitled_fla::frame1()

-The Following works in all the others listed above

[Embed(source="foo.jpg")]  //<---  NO SEMICOLON OR BREAKS
private var foo:Class;

var testFoo:Bitmap = new foo();

-Important

One thing that I would like to note, notice there is no semicolon on the embed line!

Hope this helps, apparently the original poster figured his/her proglem out, but wanted to answer sid.

blog.hodgedev.com
hodgedev.com

Brian Hodge