Did you add '-version 8' to mtasc commandline? If you use Eclipse/asdt: check ASDT prefs->mtasc, where you can specify this option.
Cheers, Tim -----Oorspronkelijk bericht----- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens martin kurzmann Verzonden: dinsdag 21 februari 2006 0:52 Aan: 'Open Source Flash Mailing List' Onderwerp: [osflash] eclipse/mtasc - as-class gives an error but compiles? hi all, I followed this tutorial: http://www.pasz.com/articles/InstallMTASC/default.html and I get a proper compiled swf-file BUT I also get a "type error class not found: flash.geom.Point" here the code: /** * @author martink65 */ class Test { function Test(scope:MovieClip) { //local function: drawPoint var drawPoint = function(p:flash.geom.Point, size:Number, tgt:MovieClip, color: Number){ if (!color) color = 0xFF0000; //black tgt.lineStyle(size, color); tgt.moveTo(p.x-1, p.y); tgt.lineTo(p.x+1, p.y); tgt.moveTo(p.x, p.y-1); tgt.lineTo(p.x, p.y+1); } //Draw a diagonal line of Points 10 pixels apart for(var i = 10; i < 200; i += 10){ var myPoint = new flash.geom.Point(i,i); drawPoint(myPoint, 5, scope); } } //Main Entry Point static function main() { var test:Test = new Test(_root); } } I wonder why the class gets compiled even if mtasc gives an error? someone can please explain to me what's going on - thank you, martin www.martink65.com -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.15.11/264 - Release Date: 17.02.2006 _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
