Prefixing the path with a forward slash works for the 'classic' mxmlc. Using 'classic' I can now compile my project from the command line.
EdB On Fri, Sep 6, 2013 at 5:49 PM, Alex Harui <aha...@adobe.com> wrote: > I assume this SWF compiles via other means like as an FB project? FB > seems to do stuff that makes paths fix up differently than from the > command line and have not found a compiler option to make MXMLC work from > the commandline. I've seen lots of test cases that work in FB where > there's a src/assets folder and the following works from sub-folders in > the src path > [Embed(source="/assets/someasset.png")] > > But even MXMLC can't compile that from the command line. So that's why > I'm suggesting that if you are running Falcon from the command line that > you first get the SWF to build by running MXMLC from the command line. > > Or maybe I'm missing something... > -Alex > > On 9/6/13 8:34 AM, "Erik de Bruin" <e...@ixsoftware.nl> wrote: > >>The 'main' mxml is one level up, in 'src'; the AS class that has the >>Embeds in it is in the 'application' package. >> >>I'm not comparing anything, I'm just trying to get this project to >>compile from the command line for Falcon testing. I have never done >>any compilation from the command line - as may be obvious from my last >>two JIRA tickets - so I'm asking for help distinguishing between my >>errors and possible Falcon issues. >> >>EdB >> >> >> >>On Fri, Sep 6, 2013 at 5:28 PM, Alex Harui <aha...@adobe.com> wrote: >>> >>> >>> On 9/6/13 8:05 AM, "Erik de Bruin" <e...@ixsoftware.nl> wrote: >>> >>>>Alex, while on the topic of Falcon: I'm trying to compile a large AIR >>>>application which uses embedded media from a path outside the "src" >>>>directory. The code is >>>> >>>>[Embed(source="./packagedMedia/buttons/notes/up.png")] >>>> >>>>If I throw this at Falcon, it complains: >>>> >>>>Error: Could not find Embed source >>>>'./packagedMedia/buttons/notes/up.png'. Searched >>>>'/Users/erik/Documents/Adobe Flash Builder >>>>4.7/pegasus-examSimPlayer/src/application/packagedMedia/buttons/notes/up >>>>.p >>>>ng', >>>>'./packagedMedia/buttons/notes/up.png' in SWCs on the library path >>>> >>>>Now, before I file another useless JIRA issue, is there a command line >>>>thingy that I need to set to tell the compiler where to look? I tried >>>>'source-path' with full and relative paths, but the error remains. >>> Did it look in the right place? IOW, was the current dir >>> '/Users/erik/Documents/Adobe Flash Builder >>> 4.7/pegasus-examSimPlayer/src/application' or is that where the main >>>mxml >>> file is? >>> >>> FB does some 'magic' with source paths. If you are comparing Falcon to >>> FB, that may not be a fair test. A better test is probably mxmlc from >>>the >>> command line against Falcon from the command line. >>> >>> -Alex >>> >> >> >> >>-- >>Ix Multimedia Software >> >>Jan Luykenstraat 27 >>3521 VB Utrecht >> >>T. 06-51952295 >>I. www.ixsoftware.nl > -- Ix Multimedia Software Jan Luykenstraat 27 3521 VB Utrecht T. 06-51952295 I. www.ixsoftware.nl