RTEs when I build FlexJSJX,etc. myself

2014-02-03 Thread OmPrakash Muppirala
I made some changes to the FlexJSJX classes and tried to use that with my exisisting FlexJS SDK. Here is what I am doing: 1. In the \flex-asjs\frameworks\as folder, run ant. The following swc files: FlexJSJX, FlexJSUI and MXMLCClasses get created under \flex-asjs\frameworks\as\libs folder. 2.

Re: RTEs when I build FlexJSJX,etc. myself

2014-02-03 Thread Alex Harui
Does your copy of ClassFactory (in FlexJSUI/src/mx/core) have a newInstance method? Did you shutdown and re-start FB? I think it caches SWC and locks them on the disk. Check a link-report and see which version of ClassFactory is being pulled in. -Alex On 2/3/14 11:23 AM, "OmPrakash Muppirala"

Re: RTEs when I build FlexJSJX,etc. myself

2014-02-03 Thread OmPrakash Muppirala
On Mon, Feb 3, 2014 at 12:16 PM, Alex Harui wrote: > Does your copy of ClassFactory (in FlexJSUI/src/mx/core) have a > newInstance method? > Yes, it does. > > Did you shutdown and re-start FB? I think it caches SWC and locks them on > the disk. > Tried shutting down FB, copying over the file

Re: RTEs when I build FlexJSJX,etc. myself

2014-02-03 Thread OmPrakash Muppirala
On Mon, Feb 3, 2014 at 12:32 PM, OmPrakash Muppirala wrote: > On Mon, Feb 3, 2014 at 12:16 PM, Alex Harui wrote: > >> Does your copy of ClassFactory (in FlexJSUI/src/mx/core) have a >> newInstance method? >> > > Yes, it does. > > >> >> Did you shutdown and re-start FB? I think it caches SWC and

Re: RTEs when I build FlexJSJX,etc. myself

2014-02-03 Thread Alex Harui
I think the issue is that the series itemRenderer may be set to actual ClassFactory class instead of an instance of ClassFactory. Can you check that in the debugger? Make sure that you don't have stale duplicates of classes like BarChartSeries and IChartSeries. The itemRenderer property should b

Re: RTEs when I build FlexJSJX,etc. myself

2014-02-03 Thread OmPrakash Muppirala
On Mon, Feb 3, 2014 at 2:10 PM, Alex Harui wrote: > I think the issue is that the series itemRenderer may be set to actual > ClassFactory class instead of an instance of ClassFactory. > > Can you check that in the debugger? > > You are right, the method MXMLDataInterpreter.generateMXMLArray() pas

Re: RTEs when I build FlexJSJX,etc. myself

2014-02-03 Thread Alex Harui
The correct behavior is for the itemRenderer to have an instance of ClassFactory (which should have a newInstance method as your source code indicated) and not the class ClassFactory which would not have newInstance on it since newInstance isn't static. If itemRenderer is an instance of ClassFacto

Re: RTEs when I build FlexJSJX,etc. myself

2014-02-03 Thread OmPrakash Muppirala
On Mon, Feb 3, 2014 at 3:43 PM, Alex Harui wrote: > The correct behavior is for the itemRenderer to have an instance of > ClassFactory (which should have a newInstance method as your source code > indicated) and not the class ClassFactory which would not have newInstance > on it since newInstance

Re: RTEs when I build FlexJSJX,etc. myself

2014-02-03 Thread Alex Harui
On 2/3/14 4:31 PM, "OmPrakash Muppirala" wrote: >On Mon, Feb 3, 2014 at 3:43 PM, Alex Harui wrote: > >> The correct behavior is for the itemRenderer to have an instance of >> ClassFactory (which should have a newInstance method as your source code >> indicated) and not the class ClassFactory w

Re: RTEs when I build FlexJSJX,etc. myself

2014-02-03 Thread OmPrakash Muppirala
On Mon, Feb 3, 2014 at 4:47 PM, Alex Harui wrote: > > > On 2/3/14 4:31 PM, "OmPrakash Muppirala" wrote: > > >On Mon, Feb 3, 2014 at 3:43 PM, Alex Harui wrote: > > > >> The correct behavior is for the itemRenderer to have an instance of > >> ClassFactory (which should have a newInstance method a

Re: RTEs when I build FlexJSJX,etc. myself

2014-02-03 Thread OmPrakash Muppirala
In fact, I am seeing a very similar error when I compile and run examples/ListsTest via ant (no FB involved) ReferenceError: Error #1069: Property mx.core:IFactory::newInstance not found on mx.core.ClassFactory and there is no default value. at org.apache.flex.core::ItemRendererClassFactory/cr

Re: RTEs when I build FlexJSJX,etc. myself

2014-02-04 Thread Alex Harui
I can reproduce this on my windows machine. The SWF does have what looks like the correct code, but the player does not find the renderer class when it is supposed to. I'll dig more Tuesday evening since that's my home computer. -Alex On 2/3/14 5:05 PM, "OmPrakash Muppirala" wrote: >On Mon, F

Re: RTEs when I build FlexJSJX,etc. myself

2014-02-04 Thread Peter Ent
I can't repo this on my Mac. I ran the build.xml from the BarChartExample directory and opened the HTML pages for both AS and JS. Both ran without issues. --peter On 2/4/14 3:10 AM, "Alex Harui" wrote: >I can reproduce this on my windows machine. The SWF does have what looks >like the correct

Re: RTEs when I build FlexJSJX,etc. myself

2014-02-04 Thread Alex Harui
Crud. It was right in front of me the whole time. Next time I'll look more closely at the link-report. Should be fixed now. -Alex On 2/4/14 11:17 AM, "Peter Ent" wrote: >I can't repo this on my Mac. I ran the build.xml from the BarChartExample >directory and opened the HTML pages for both AS

Re: RTEs when I build FlexJSJX,etc. myself

2014-02-05 Thread OmPrakash Muppirala
All good now! BarChartExample compiles fine from ant and FB (with locally built swcs) as well. Thanks for the fix :-) Regards, Om On Tue, Feb 4, 2014 at 9:37 PM, Alex Harui wrote: > Crud. It was right in front of me the whole time. Next time I'll look > more closely at the link-report. Sho