Hi CharlesH look like you have to target flex to flash 10 1st try here
http://opensource.adobe.com/wiki/display/flexsdk/Targeting+Flash+Player+10 hth 2009/3/9 CharlesH <[email protected]> > > 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(); > } > } > } > > ################## > > [r...@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 > -- katopz http://www.sleepydesign.com
