Thanks Mike;

Including the up-to-date source for corelib in my actionscript classpath
did the trick.

The mystery remains, however, as to why I could link against the old
corelib.swc in FlexBuilder but not from the command line.

Tobias.

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Chambers
Sent: Thursday, March 23, 2006 3:21 PM
To: [email protected]
Subject: Re: [flexcoders] Flex 2.0: mxmlc question

Yes. We have not rebuilt those SWCs for beta 2 yet (trying to track down

one bug).

In the meantime, you can link against the source which has been updated.

http://labs.macromedia.com/wiki/index.php/Source:get

Sorry about the hassle.

mike chambers

[EMAIL PROTECTED]

Tobias Patton wrote:
> The only swc I'm adding is corelib, which was downloaded from 
>
http://labs.macromedia.com/wiki/index.php/ActionScript_3:resources:apis:
libraries#corelib. 
> I guess it's safe to assume that it was built with the Beta 1
compiler. 
> I would have thought this was the problem except for the fact that I
can 
> build the same project through Flex Builder. The very same corelib.swc

> is added as a library in the project properties.
> 
>  
> 
> When a library is added to a project using Flex Builder, is that the 
> same as adding a -library-path option to mxmlc? There are options 
> available in Flex Builder for added .swc files (Source attachment,
link 
> type, RSL URL, auto extract swf) that don't seem to translate directly

> to the command line.
> 
>  
> 
> Tobias.
> 
>  
> 
> I don't think the "copy the en_US directory" would work here. en_US
is 
> my current system locale, and it's also the folder pointed to by the 
> flex-config.xml file. The people who found this hack to work for them 
> were all in a different locale.
> 
>  
> 
>
------------------------------------------------------------------------
> 
> *From:* [email protected] [mailto:[EMAIL PROTECTED]

> *On Behalf Of *Roger Gonzalez
> *Sent:* Thursday, March 23, 2006 2:10 PM
> *To:* [email protected]
> *Subject:* RE: [flexcoders] Flex 2.0: mxmlc question
> 
>  
> 
> First, make certain you don't have any Beta1 SWCs being loaded by 
> Beta2.  That will break.
> 
>  
> 
> If you add corelib.swc (or its parent directory) to your library path,

> it will make it available to be linked in.
> 
>  
> 
> Its choking in the ResourceBundle code, which implies to me that 
> ListCollectionView isn't getting something it needs.  Have you done
the 
> same sort of "copy the en_us directory" locale hack that has worked
for 
> other people?
> 
>  
> 
> -rg
> 
>      
> 
>
------------------------------------------------------------------------
> 
>     *From:* [email protected]
>     [mailto:[EMAIL PROTECTED] *On Behalf Of *Tobias Patton
>     *Sent:* Thursday, March 23, 2006 8:15 AM
>     *To:* [email protected]
>     *Subject:* RE: [flexcoders] Flex 2.0: mxmlc question
> 
>     Hi Roger;
> 
>     So, to link corelib.swc into my application, you'd supply the path
>     to corelib as an argument to the -library-path option? Here's the
>     command-line I'm using:
> 
>     mxmlc
>
-actionscript-classpath=D:\PerforceDepot\galiano\Galiano.Tobias_Patton\C
lient\classes
>     -library-path
>
D:\PerforceDepot\galiano\Galiano.Tobias_Patton\tools\compiler\Flex2b2\fr
ameworks\libs\
>
D:\PerforceDepot\galiano\Galiano.Tobias_Patton\Client\oem\corelib\bin\co
relib.swc 
>     --
>
D:\PerforceDepot\galiano\Galiano.Tobias_Patton\Client\DashboardJobsView\
DashboardJobsView.mxml
> 
>     This compiles, but I get the following runtime error when I launch
>     my application:
> 
>     Error: Key outOfBounds was not found in resource bundle
SharedResources
> 
>                 at mx.resource::ResourceBundle/getObject()
> 
>                 at mx.resource::ResourceBundle/getString()
> 
>                 at
mx.collections::ListCollectionView$/::loadResources()
> 
>                 at mx.managers::SystemManager$/registerInitCallback()
> 
>                 at mx.collections::ListCollectionView$cinit()
> 
>                 at global$init()
> 
>                 at global$init()
> 
>                 at _DashboardJobsView_FlexInit$/init()
> 
>                 at mx.managers::SystemManager/::frameEndHandler()
> 
>     This used  to work in Beta 1.
> 
>     If I remove the reference to corelib.swc from the command line
(and
>     comment out any code that depends on corelib), I can compile and
run
>     the application.
> 
>     Can you suggest what might be wrong with the way I'm building the
>     application?
> 
> 
>     Thanks.
> 
>     Tobias.
> 
>     BTW: The reason flex-config.xml couldn't be found was that I was
>     running mxmlc with 'java -jar mxmlc.jar'
> 
>
------------------------------------------------------------------------
> 
>     *From:* [email protected]
>     [mailto:[EMAIL PROTECTED] *On Behalf Of *Roger Gonzalez
>     *Sent:* Wednesday, March 22, 2006 8:09 PM
>     *To:* [email protected]
>     *Subject:* RE: [flexcoders] Flex 2.0: mxmlc question
> 
>     library-path makes SWCs available for resolving class
dependencies. 
>     This is normally what you want.
> 
>     include-libraries forces all symbols in the SWCs to be included in
>     the application, whether they are needed or not.
> 
>     I don't know why you'd get that error unless you're not using
mxmlc
>     or Flex Builder.  By default, the compiler tries to load
>     flex-config.xml out of ${flexlib}, which for mxmlc.exe is relative
>     to the bin directory, and I suspect is set explicitly by Flex
Builder.
> 
>     I don't know what the "does not use a config file by default"
>     means.  mxmlc certainly loads a flex-config.xml file by default. 
>     I'm not positive what Flex Builder does, though.
> 
>     In beta 2, you should be able to use -load-config+=otherfile.xml
to
>     overlay your config on top of the default config.
> 
>     In other words, the config file isn't required, but there are some
>     default settings that are trying to load it.  Something about your
>     setup sounds broken.
> 
>     -rg
> 
>
------------------------------------------------------------------------
> 
>         *From:* [email protected]
>         [mailto:[EMAIL PROTECTED] *On Behalf Of *Tobias
Patton
>         *Sent:* Wednesday, March 22, 2006 4:38 PM
>         *To:* [email protected]
>         *Subject:* [flexcoders] Flex 2.0: mxmlc question
> 
>         Can someone explain the difference between the
>         "-include-libraries" and "-library-path" compiler options?
> 
>         The documentation states that "-include-libraries" is commonly
>         used to link in an .swc file containing localized resources.
But
>         what about .swc file containing other .swc files used by the
>         application? The documentation for "-library-path" implies
that
>         this option should be used to link in custom components. What
is
>         the difference? When I add a library in Flex Builder, does
this
>         translate to an "-include-libraries" option of a
"-library-path"
>         option?
> 
>         Also, the documentation states that the Flex compilers do not
>         use a config file by default. However, unless I specify the
>         "-load-config" option, I get the error: defaults: Error:
unable
>         to open './flex-config.xml'. Is this flag required or not?
> 
>         Thanks.
> 
>         Tobias.
> 
>         **Creo Inc., a subsidiary of Kodak**
> 
>         Tobias Patton | Software Developer | Tel: +1.604.451.2700 ext:
>         5148 | mailto:[EMAIL PROTECTED] _| http://www.creo.com
> 
>      
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> 
> 
>
------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
> 
>     *  Visit your group "flexcoders
>       <http://groups.yahoo.com/group/flexcoders>" on the web.
>        
>     *  To unsubscribe from this group, send an email to:
>        [EMAIL PROTECTED]
>
<mailto:[EMAIL PROTECTED]>
>        
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>. 
> 
> 
>
------------------------------------------------------------------------
> 


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to