Re: ASJS question - MXML vs. AS

2013-01-27 Thread Alex Harui
On 1/27/13 7:18 PM, "Om" wrote: > Alex, I think you would be the best person to answer this. > > What would be the Actionscript equivalent of this mxml file: > > http://svn.apache.org/viewvc/flex/asjs/branches/develop/examples/FlexJSTest_ag > ain/FlexJSTest.mxml?view=markup > > I was readin

Re: ASJS question - MXML vs. AS

2013-01-27 Thread Om
On Sun, Jan 27, 2013 at 8:33 PM, Alex Harui wrote: > > > > On 1/27/13 7:18 PM, "Om" wrote: > > > Alex, I think you would be the best person to answer this. > > > > What would be the Actionscript equivalent of this mxml file: > > > > > http://svn.apache.org/viewvc/flex/asjs/branches/develop/examp

Re: ASJS question - MXML vs. AS

2013-01-27 Thread Alex Harui
On 1/27/13 10:50 PM, "Om" wrote: >>> But they dont seem to match up. Can you please respond with how the mxml >>> would look when redone as a pure actionscript file? >>> >> There are two possible answers to this question. One is for the question: >> what would the generated AS for the MXML

Re: ASJS question - MXML vs. AS

2013-01-28 Thread Om
On Sun, Jan 27, 2013 at 11:20 PM, Alex Harui wrote: > > > > On 1/27/13 10:50 PM, "Om" wrote: > > >>> But they dont seem to match up. Can you please respond with how the > mxml > >>> would look when redone as a pure actionscript file? > >>> > >> There are two possible answers to this question.

Re: ASJS question - MXML vs. AS

2013-01-28 Thread Alex Harui
OK, I'll put together the AS version of the app. On 1/28/13 3:35 PM, "Om" wrote: > On Sun, Jan 27, 2013 at 11:20 PM, Alex Harui wrote: > >> >> >> >> On 1/27/13 10:50 PM, "Om" wrote: >> > But they dont seem to match up. Can you please respond with how the >> mxml > would look whe

Re: ASJS question - MXML vs. AS

2013-01-28 Thread Alex Harui
OK, here it is: FlexJSTest.as: package { import controllers.MyController; import flash.display.Sprite; import flash.text.TextField; import models.MyModel; import org.apache.flex.core.Application; public class FlexJSTest extends Application {

Re: ASJS question - MXML vs. AS

2013-01-28 Thread Alex Harui
And you will need to update MXMLDataInterpreter.as from SVN. On 1/28/13 5:21 PM, "Alex Harui" wrote: > OK, here it is: > > FlexJSTest.as: > package > { > import controllers.MyController; > > import flash.display.Sprite; > import flash.text.TextField; > > import models

Re: ASJS question - MXML vs. AS

2013-01-28 Thread Om
That worked. Thanks! Om On Mon, Jan 28, 2013 at 6:22 PM, Alex Harui wrote: > And you will need to update MXMLDataInterpreter.as from SVN. > > > On 1/28/13 5:21 PM, "Alex Harui" wrote: > > > OK, here it is: > > > > FlexJSTest.as: > > package > > { > > import controllers.MyController; > > >

Re: ASJS question - MXML vs. AS

2013-01-29 Thread Om
Any particular reason the TextButton instance is displayed using this.addChild(button) instead of a button.addToParent(this) ? On Mon, Jan 28, 2013 at 11:52 PM, Om wrote: > That worked. Thanks! > > Om > > > On Mon, Jan 28, 2013 at 6:22 PM, Alex Harui wrote: > >> And you will need to update MX

Re: ASJS question - MXML vs. AS

2013-01-29 Thread Alex Harui
Not really, mostly just to see what happens if you use widgets that are not based on UIBase. As of right now, buttons are based on SimpleButton to save writing a bunch of code and are not a UIBase, but yesterday I started leaning towards making an IUIBase and making Button implement that. Feel fr

Re: ASJS question - MXML vs. AS

2013-01-29 Thread Om
On Jan 29, 2013 9:16 AM, "Alex Harui" wrote: > > Not really, mostly just to see what happens if you use widgets that are not > based on UIBase. As of right now, buttons are based on SimpleButton to save > writing a bunch of code and are not a UIBase, but yesterday I started > leaning towards maki