On Wed, Sep 18, 2013 at 4:54 PM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 9/18/13 4:43 PM, "OmPrakash Muppirala" <bigosma...@gmail.com> wrote:
>
> >On Sep 18, 2013 10:15 AM, "Alex Harui" <aha...@adobe.com> wrote:
> >>
> >>
> >>
> >> On 9/18/13 10:09 AM, "OmPrakash Muppirala" <bigosma...@gmail.com>
> wrote:
> >> >
> >> >Adding it as a source path instead, has an added advantage of being
> >>able
> >> >to
> >> >make edits to the SDK and see it reflect in your app immediately.
> >> I actually use a separate Flex library project for FlexJSUI.swc and link
> >> that project.
> >
> >Which compiler should I use for such a library project?
> I just use MXMLC for the library project.  You need Falcon only when
> compiling MXML files (and FalconJX for cross-compilation.
>

Cool, that worked for me.  Just one point to note, initially I tried Flex
4.10 with the option of including the AIR libraries.  This gave a compiler
error about a NativeMenu vs. ContextMenu issue in
utils.ViewSourceContextMenuOption .  When I created a library project
without AIR, the SDK compiled fine.

Also, here is the error I get when I debug with the default Debug option:

Error #1009: Cannot access a property or method of a null object reference.
TypeError: Error #1009: Cannot access a property or method of a null object
reference.
    at
mx.styles::StyleManager$/getStyleManager()[/Users/aharui/git/flex/master/flex-sdk/frameworks/projects/framework/src/mx/styles/StyleManager.as:147]
    at MyInitialView/
http://www.adobe.com/2006/flex/mx/internal::_MyInitialView_StylesInit()
    at
MyInitialView()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\examples\StatesTest\src\MyInitialView.mxml:23]
    at StatesTest/_StatesTest_MyInitialView1_c()
    at
StatesTest()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\examples\StatesTest\src\StatesTest.mxml:26]

I ran the FlexJS(debug build) multiple times, but everytime, FB's debug
build seems to be overwriting the swf file.

Thanks,
Om



> >
> >>
> >> >>In theory, you shouldn't need a separate Debug Configuration.
> >> >
> >> >This part did not work for me as you mention.  Which is why I had to
> >> >resort
> >> >to a different debug configuration.
> >> What happened when you tried it?  Sometimes, FB will run a build and
> >>then
> >> the result SWF will throw an exception and you have to run the external
> >> tool again, but otherwise the external tool should just swap in the
> >>right
> >> code.
> >
> >I will try this again tonight and let you know what the errors are.
> >
> >Thanks,
> >Om
> >
> >>
> >> -Alex
> >>
>
>

Reply via email to