Hi Alex,

Thanks for your reply.  I discovered what the issue was.  Your
question about importing the ModuleEvent got me thinking about if the
compiler wasn't aware of the Adobe Module classes.  I then realized
that my path variable was setup to use the flex sdk that I had
installed before I had installed FlexBuilder.  When I changed the path
variable to use the sdk inside the FlexBuilder install directory,
everything compiled with no problems.

I suppose that the non-builder sdk was either not updated or that it
doesn't include the Modules package.

Glad that I can move on with this project :)

-- Philip

I'm using Flex 2.0.1, however the

--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Are other mx: things working and only module loader is the issue?  Are
> you on Flex 2.0.1 or some other version.
> 
>  
> 
> Did you import ModuleEvent, etc in your .as files?
> 
>  
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of philip_carlson
> Sent: Tuesday, October 23, 2007 4:52 PM
> To: [email protected]
> Subject: [flexcoders] Compile error with mxmlc and ModuleLoader
> 
>  
> 
> Hello,
> 
> I'm trying to do that nifty thing where you remove the framework
> classes from your Module swfs. Unfortunately, I seem to be unable to
> even compile my main mxml application file. I know you need to
> compile the main mxml with the command line compiler & give it a
> -link-report option, but even without that it's giving me grief about
> not resolving ModuleLoader related components/classes:
> 
> MainView.mxml(19): Error: Could not resolve <mx:ModuleLoader> to a
> component implementation.
> 
> <mx:ModuleLoader id="templateLoader_modldr" />
> 
> MainViewClass.as(110): col: 42 Error: Type was not found or was not a
> compile-time constant: ModuleEvent.
> 
> private function onTemplateLoaded (evt:ModuleEvent):void {
> ^
> 
> MainViewClass.as(35): col: 14 Error: Type was not found or was not a
> compile-time constant: ModuleLoader.
> 
> public var templateLoader_modldr:ModuleLoader;
> ^
> 
> MainViewClass.as(35): col: 14 Error: Type was not found or was not a
> compile-time constant: ModuleLoader.
> 
> public var templateLoader_modldr:ModuleLoader;
> ^
> 
> EntryListViewClass.as(94): col: 49 Error: Access of possibly undefined
> property CHANGE through a reference with static type Class.
> 
> this.entryList_dg.addEventListener(ListEvent.CHANGE,
> this.onEntrySelected, false, 0, true);
> 
> that's the output I get from the command line compiler. I've got a
> source-path option that I'm providing it. Here's the full command I'm
> providing: 
> 
> mxmlc -link-report=report.xml -source-path="C:\Documents and
> Settings\PhilipC\Desktop\trunk-06.26.2007\system\FlexLibrary";
> scForms.mxml
> 
> I've only been using FlexBuilder up until now, so maybe I'm missing
> something obvious to others....Help greatly appreciated.
> 
> Thanks,
> 
> Philip
>


Reply via email to