|
From: Stephen H. <st...@ju...> - 2006-12-02 16:39:12
|
Greetings.I've just downloaded .94 hoping to play around with some basic operation.it's my first rigorous dive into an AS2 framework. I've followed the instructions on the verbatim but perhaps ((probably) I'm missing something drop dead obvious. At step #8.that means create a .as file in the ./Scripts folder named AppController.as, right? And then the rest of the code down to step 11 belongs in AppController.as. Compiling this tosses an syntax error pointing to: org.asapframework.management.movie.LocalController: I've tried enough variations to know that, at the very least, I have the ClassPath settings configured correctly but I haven't come to any point where the line above doesn't produce a syntax error. . . . Opps.part of the problem is that colon rather than semi. Now with AppController.as containing: org.asapframework.management.movie.LocalController; import org.asapframework.management.movie.LocalController; class AppController extends LocalController { } public static function main (inTimeline:MovieClip) : Void { var controller:AppController = new AppController(inTimeline); inTimeline.controller = controller; controller.start(); // trace("this " + this); } public function AppController (inTimeline:MovieClip) { super(inTimeline); } I get this error output: **Error** Q:\web\TTSRoot\Campus\AppController.as: Line 2: ActionScript 2.0 class scripts may only define class or interface constructs. org.asapframework.management.movie.LocalController; **Error** Q:\web\TTSRoot\Campus\AppController.as: Line 12: Attribute used outside class. public static function main (inTimeline:MovieClip) : Void { **Error** Q:\web\TTSRoot\Campus\AppController.as: Line 17: ActionScript 2.0 class scripts may only define class or interface constructs. } **Error** Q:\web\TTSRoot\Campus\AppController.as: Line 19: Attribute used outside class. public function AppController (inTimeline:MovieClip) { **Error** Q:\web\TTSRoot\Campus\AppController.as: Line 21: ActionScript 2.0 class scripts may only define class or interface constructs. } Total ActionScript Errors: 5 Reported Errors: 5 If I comment out the first line the error output stays the same except for dropping the first error.may only define class. thx |