Thanks Gregor but that doesn't make sense, the core 

C:\Program Files\Macromedia\Flash MX 2004\en\First Run\Classes

classpath is something you set in the compiler settings under 

Window | preferences | Actionscript 2 | Core Path

What I thought was happening was the ASDT plugin is not passing the core path 
to MTASC when you hit "save" so what I have just tried was in the MTASC 
settings under

Window | preferences | Actionscript 2 | Compiler | MTASC

in the box more parameters I added the line

-cp "C:\Program Files\Macromedia\Flash MX 2004\en\First Run\Classes"

and now it works and doesn't complain the mx.controls classes are missing!

Grant.



----- Original Message -----
From: Gregor Frey [EMAIL PROTECTED]
To: Open Source Flash Mailing List [email protected]
Sent: 10/8/05 5:49 AM
Subject: Re: [osflash] ASDT 0.0.0.8 can't see mx classes ?

> The best way to handle the components would be to have the swc-files in 
> the classpath, but as far as I know neither MTASC nor ASDT can "look 
> inside" the swcs.
> Second best is to extract the as-files out of the swcs and have them in 
> the classpath. Unfortunately ASDT doesn't allow me to se absolute 
> classpaths in the project settings (I would say this is a bug). It 
> claims that a directory doesn't exist even if it's obviously there. But 
> with a relative classpath inside the eclipse-project environment ASDT 
> finds the component types.
> 
> Gregor
> 
> [EMAIL PROTECTED] wrote:
> 
> >I just switched to ASDT 0.0.8 build 5 and when I've set it to compile a file 
> >with MTASC when I hit save on the file.
> >
> >If my file contains 
> >
> >import mx.controls.*;
> >
> >and in a class I declare
> >
> >private var foo:Label
> >
> >MTASC displays an error :
> >
> >type error, class not found :Label
> >
> >I have the -mx switch enabled for MTASC and I have the "Core" mm classes on 
> >the mtasc setting in the dialog under "prefernces | ActionScript2 | Compiler 
> >| Core path"
> >
> >
> >anyone figured this out ?  I can compile fine when I use flashout, but doing 
> >a "Save" with mtasc as the syntax checker gives me these errors.
> >
> >Grant,
> >
> >
> >
> >
> >
> >
> >  
> >
> >------------------------------------------------------------------------
> >
> >_______________________________________________
> >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

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to