Yup, compiles if I just have: package { import flash.display.Sprite; public class test extends Sprite { public function test() { } } }
which I guess means it's finding flash.display.Sprite ok? David Peek > does it compile if you just have a simple hello world example, with > an empty constructor? > > mike chambers > > [EMAIL PROTECTED] > > On May 24, 2006, at 6:37 PM, David Peek wrote: > > > Hey list, > > > > I'm trying to compile AS3 on my mac, have tried every which method > > and keep on running into the same issue. Here's the deal: > > > > Downloaded latest version of Flex SDK from labs.adobe.com > > Moved SDK to user directory, tried comiling from command line. > > Could compile MXML no problems, but when I tried to compile AS3 > > file, got the following errors: > > > > /Users/dpeek/test.as(9): col: 21 Error: Call to a possibly > > undefined method TextField. > > > > helloField = new TextField(); > > ^ > > > > /Users/dpeek/test.as(2): col: 23 Error: Definition > > flash.display:TextField could not be found. > > > > import flash.display.TextField; > > > > It seemed like the compiler wasn't loading the AS3 stub files, > > which as far as I can tell are supposed to be in an swc somewhere. > > I'd followed various walkthroughs to the letter always with the > > same result: MXML - no problem, AS3 - can't find intrinsic classes. > > > > Installed xcode today so I could try a different approach, followed > > Josh Buhlers excellent walkthrough, only to run into the same > > problem. I've done a pretty thorough search for that error code to > > no avail. So, if anyone has any ideas, I'd be eternally greatful :) > > > > oh, here's the AS I'm trying to compile, as found in gskinners > > flcompile files: > > > > package { > > import flash.display.TextField; > > import flash.display.Sprite; > > > > public class test extends Sprite { > > private var helloField:TextField; > > > > public function test() { > > helloField = new TextField(); > > helloField.text = "Hello World!"; > > addChild(helloField); > > } > > } > > } > > > > Thanks in advance, > > David _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com