How to include the Away3D into Flash CS3?

5 views
Skip to first unread message

zerodevice

unread,
Mar 4, 2008, 9:47:25 AM3/4/08
to away3d.dev
I'm trying to add the Away3D engine into Actionscript 3.0 settings
like how i did for Papervision3D, but i have no idea why it doesn't
worked.

is there something i missed?

i downloaded this from the page and assume it worked.
http://away3d.com/download/away3d_1_9_4.zip

Rob Bateman

unread,
Mar 4, 2008, 9:53:14 AM3/4/08
to away3...@googlegroups.com
hey there

can you give us a bit more information on the problems your having? the root package for the classes is 'away3d', so make sure your classpath in settings points to the directory containing the away3d directory.

cheers

Rob
--
Rob Bateman
Flash Development & Consultancy

rob.b...@gmail.com
www.infiniteturtles.co.uk
www.away3d.com

Fabrice

unread,
Mar 4, 2008, 10:50:39 AM3/4/08
to away3...@googlegroups.com
here a post on this list from a while ago...


1 make a directory and give it a name like "MyAwayProjects"

2 in this folder,"MyAwayProjects", make a folder and name it: classes

3 in classes you place the away3d library

4 in classes you make a new folder and name it "projects"

5 in Flash you make an action script class file and you save it as "
HelloAway.as" in "projects"

The class should look like this, (the import examples are not really needed
for this simple trace :) )

package projects
{
    import flash.display.*;
    import flash.events.*;
    import flash.geom.*;
    import flash.utils.getDefinitionByName;
    import away3d.loaders.*;
    import away3d.cameras.*;
    import away3d.objects.*;
    import away3d.core.*;
    import away3d.core.material.*;
    import away3d.core.scene.*;
    import away3d.core.render.*;
    import away3d.core.math.Number3D;

    public class HelloAway extends Sprite
    {
        public function HelloAway()
        {
            trace("Hello Away3d!");
         }

    }

}

6 in "MyAwayProjects" you make a folder and name it "sources"

7 in "MyAwayProjects/sources" you can now make an fla, in the fla properties
panel you type
projects.HelloAway (you can do that too in step 8)

and in Flash, under Publish settings/flash/settings add a path and type
"../classes"
AS3 strict mode should be on.

8 you are done! if you run the fla it should trace "Hello Away3d!"

I hope it helps
Fabrice
 

katopz

unread,
Mar 4, 2008, 10:31:54 PM3/4/08
to away3...@googlegroups.com
welcome here flash ppl, you can try more here
http://sleepydesign.blogspot.com/2008/02/away3d-enginetest-194-rev-443.html

1. set Away3D class path
2. open fla and compile
3. smile

;D
--
katopz
http://www.sleepydesign.com
Reply all
Reply to author
Forward
0 new messages