CharlesH
unread,Mar 8, 2009, 6:48:32 PM3/8/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to away3d.dev
Hi
I just started to learn about Flex and Away3d programming. Kind a
stuck already.
My env:
Fedora 10 64
Sun java jdk 1.6
Flex mxmlc version 3.3.0 under /bfa/flex
Away3d 2.3.3/3.3.3 under /bfa/away3d
in flex-config.xml, I have the following definition.
<include-libraries>
<library>/bfa/away3d/away3d/</library>
<library>/bfa/away3d/nochump/</library>
</include-libraries>
I tried to build Basic01.as and failed. I believe which is a
configuration problem.
Thanks for your help,
Charles
#### Basic01.as
package
{
import away3d.containers.View3D;
import away3d.primitives.Sphere;
import flash.display.Sprite;
[SWF(width="500", height="400", frameRate="60",
backgroundColor="#FFFFFF")]
public class Basic01 extends Sprite
{
public function Basic01()
{
// create a viewport
var View:View3D = new View3D({x:250,y:200});
addChild(View);
// create a sphere and put it on the 3D stage
var sphere:Sphere = new Sphere();
View.scene.addChild(sphere);
// render the view
View.render();
}
}
}
##################
[root@linuxdev samples]# mxmlc Basic01.as
Loading configuration file /bfa/flex/frameworks/flex-config.xml
/bfa/flex/samples/away3d/core/render/AbstractRenderSession.as(656):
col: 77 Error: Type was not found or was not a compile-time constant:
Vector.
public function renderTriangleBitmapF10(bitmap:BitmapData,
vertices:Vector.<Number>, uvtData:Vector.<Number>, smooth:Boolean,
repeat:Boolean, layerGraphics:Graphics = null):void
^
/bfa/flex/samples/away3d/core/render/AbstractRenderSession.as(656):
col: 102 Error: Type was not found or was not a compile-time constant:
Vector.
public function renderTriangleBitmapF10(bitmap:BitmapData,
vertices:Vector.<Number>, uvtData:Vector.<Number>, smooth:Boolean,
repeat:Boolean, layerGraphics:Graphics = null):void