On 11/7/13 3:42 AM, "Erik de Bruin" <e...@ixsoftware.nl> wrote:

>Alex,
>
>I tried the new FlexJSOverlay and I encountered a few issues.
>
>First: the deploy.sh and setuplaunches.sh don't handle spaces in the
>file paths and don't handle relative paths. I've put the fixed files
>here:
>
>http://people.apache.org/~erikdebruin/flexjs/
Thanks.
>
>Second: the compiler.jar (Closure) you've added to the overlay seems
>to be a bit out of date. Replacing it with the latest version makes
>the various warnings generate by the most recent library go away.
OK, I'll look into upgrading.
>
>Third: when I use the overlay and import the correct launchers, and
>select 'Run/External Tools/FlexJS (Debug Build)', all seems well. But
>when I want to run it - it doesn't launch when I use the launcher - by
>selecting 'Run/Debug', I get the following error:
>
>ReferenceError: Error #1056: Cannot create property itemsFactory on
>mx.states.AddItems.
>at 
>mx.states::AddItems/initializeFromObject()[/Users/aharui/git/flex/master/f
>lex-asjs/frameworks/as/src/mx/states/AddItems.as:61]
>at 
>MyInitialView()[/Users/erik/Documents/ApacheFlex/git/flex-asjs/examples/Da
>taBindingTest/src/MyInitialView.mxml:23]
>at DataBindingTest/_DataBindingTest_MyInitialView1_c()
>at 
>DataBindingTest()[/Users/erik/Documents/ApacheFlex/git/flex-asjs/examples/
>DataBindingTest/src/DataBindingTest.mxml:26]
>
>Any idea what I'm doing wrong?
Whenever you get an error running the SWF version, first thing to look for
is methods in the call stack ending with "_c()" or "_i()" like
"DataBindingTest/_DataBindingTest_MyInitialView1_c()".  This means the SWF
was last built by MXMLC and not Falcon (or was built by Falcon without the
-compiler.mxml.children-as-data flag).  Every once in a while, FB will
suddenly re-build the SWF when you launch it.  Not sure why.  Om says it
happens every time for him.  For me, I just run the external tool again
and it goes away.

-Alex

Reply via email to