Re: [FlexJS] StatesTest example app broken?

2013-09-20 Thread OmPrakash Muppirala
On Fri, Sep 20, 2013 at 5:40 PM, Alex Harui wrote: > Maybe I'm not understanding what Peter wrote, but I think he also said > that it worked once the main app matched the project name. IOW, if you > create a FlexProject called OmTest, then when you copy the code from > DataBindingTest.mxml, you

Re: [FlexJS] StatesTest example app broken?

2013-09-20 Thread Alex Harui
Maybe I'm not understanding what Peter wrote, but I think he also said that it worked once the main app matched the project name. IOW, if you create a FlexProject called OmTest, then when you copy the code from DataBindingTest.mxml, you should copy that into your OmTest.mxml. You should have to f

Re: [FlexJS] StatesTest example app broken?

2013-09-20 Thread OmPrakash Muppirala
On Fri, Sep 20, 2013 at 5:23 PM, Alex Harui wrote: > In theory, if the project name matches the application.mxml name, then the > external tool should overwrite the swf and you shouldn't need to mess > around with the external tools and templates. > The problem is what Peter explained. The debu

Re: [FlexJS] StatesTest example app broken?

2013-09-20 Thread Alex Harui
In theory, if the project name matches the application.mxml name, then the external tool should overwrite the swf and you shouldn't need to mess around with the external tools and templates. Is that not working for you or does the application name have a different name than the project? Thanks, -

Re: [FlexJS] StatesTest example app broken?

2013-09-20 Thread OmPrakash Muppirala
I fixed this for myself by doing this: In the FlexJS debug and release build external tool's arguments: Change: -output="${project_loc}\bin-debug\${project_name}.swf" to: -output="${project_loc}\bin-debug\${project_name}_flexjs.swf" Then, for each FlexJS project, we need to change index.template'

Re: [FlexJS] StatesTest example app broken?

2013-09-20 Thread Alex Harui
On 9/20/13 10:53 AM, "Erik de Bruin" wrote: >Before we decide to work on a FlexJS 'alpha' version, the process of >actually building an app needs to be way more accessible. For sure. >Maybe we >should abandon Flash Builder and start to work with a tool that's a >bit more 'open', which we are ab

Re: [FlexJS] StatesTest example app broken?

2013-09-20 Thread Erik de Bruin
Before we decide to work on a FlexJS 'alpha' version, the process of actually building an app needs to be way more accessible. Maybe we should abandon Flash Builder and start to work with a tool that's a bit more 'open', which we are able to modify/adapt for a more transparent workflow? Ideas? EdB

Re: [FlexJS] StatesTest example app broken?

2013-09-20 Thread Peter Ent
With a little direction from Alex, I'm able to run the app too. Here's what happened to me: I created a new Flex project and then imported the code from DataBindingTest. I deleted the default application Flash Builder created and I then changed the project's properties and made DataBindingTest.mxm

Re: [FlexJS] StatesTest example app broken?

2013-09-19 Thread Alex Harui
I stepped through my working copy of DataBindingTest. The initHandler in Application.as gets called first, and sets up the ValueManager. Then, the MyInitialView gets addedToParent, which fires off the MXMLDataIntepreter which assigns the states. Which made me look at the call stack and again, th

Re: [FlexJS] StatesTest example app broken?

2013-09-19 Thread Peter Ent
As far as I can tell, this is what is happening: "states" is a property of ViewBase and the property is being set very quickly upon application load. The states setter function is assuming there is a valuesImpl loaded into the ValuesManager, but that's not the case because the Application's initHa

Re: [FlexJS] StatesTest example app broken?

2013-09-19 Thread Alex Harui
I'll let you do the digging, but make sure the capitalization is right, and that it is using the same ValuesImpl as DataBindingTest. On 9/19/13 9:02 AM, "Peter Ent" wrote: >I'm not making any headway on this. There is a global style declaration >which should associate a state implementation with

Re: [FlexJS] StatesTest example app broken?

2013-09-19 Thread Peter Ent
I'm not making any headway on this. There is a global style declaration which should associate a state implementation with any class: global { iStatesImpl: ClassReference("org.apache.flex.core.SimpleStatesImpl"); } I don't know why this isn't being picked up. I'm going to try DataBindingTest

Re: [FlexJS] StatesTest example app broken?

2013-09-19 Thread Peter Ent
I am looking into this. --peter On 9/19/13 1:03 AM, "Alex Harui" wrote: >I haven't tried StatesTest in a while. Can you work with DataBindingTest >instead? It should have everything StatesTest has and more. > >-Alex > >On 9/18/13 9:58 PM, "OmPrakash Muppirala" wrote: > >>I picked this project

Re: [FlexJS] StatesTest example app broken?

2013-09-18 Thread Alex Harui
I haven't tried StatesTest in a while. Can you work with DataBindingTest instead? It should have everything StatesTest has and more. -Alex On 9/18/13 9:58 PM, "OmPrakash Muppirala" wrote: >I picked this project up [1] after a while and when I run the app, I am >getting this RTE: > >TypeError:

[FlexJS] StatesTest example app broken?

2013-09-18 Thread OmPrakash Muppirala
I picked this project up [1] after a while and when I run the app, I am getting this RTE: TypeError: Error #1009: Cannot access a property or method of a null object reference. at org.apache.flex.core::ViewBase/set states()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\ap