Sorry, but I still have not been able to run the FlexJS example projects.

I got the latest overlay zip file (this morning) and set it up as per
instructions.  I am not making any changes to the config tools.

When I compile the DataBindingTest app using the FlexJS (Debug Build) run
config, I am getting this warning:

==============================================================================
Loading configuration:
C:\p\flex_os\workspace\FlexJS\FlexJSSDK\frameworks\flex-config.xml

outputBindingInfoAsData
C:\p\flex_os\workspace\flexroot\git\flex-asjs\examples\DataBindingTest\src\MyInitialView.mxml:131
Warning: Data binding will not be able to detect assignments to 'strings'.

dataProvider="{MyModel(applicationModel).strings}" />

^

78613 bytes written to
C:\p\flex_os\workspace\flexroot\git\flex-asjs\examples\DataBindingTest\bin-debug\DataBindingTest.swf
in 3.193 seconds
==============================================================================

But, it does output the swf file.  When I run it in a browser, I am getting
this RTE:

==============================================================================
TypeError: Error #1007: Instantiation attempted on a non-constructor.
    at org.apache.flex.core::UIBase/get
model()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\UIBase.as:173]
    at org.apache.flex.html.staticControls::Label/set
width()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\html\staticControls\Label.as:61]
    at
org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLArray()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\utils\MXMLDataInterpreter.as:135]
    at
org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLInstances()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\utils\MXMLDataInterpreter.as:224]
    at
org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLArray()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\utils\MXMLDataInterpreter.as:200]
    at
org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLInstances()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\utils\MXMLDataInterpreter.as:224]
    at
org.apache.flex.core::ViewBase/addedToParent()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\ViewBase.as:43]
    at
org.apache.flex.core::Application/addElement()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\Application.as:131]
    at
org.apache.flex.core::Application/initHandler()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\Application.as:61]
==============================================================================


UIBase.as line 173 has this [1]:
addBead(new (ValuesManager.valuesImpl.getValue(this, "iBeadModel")) as
IBead);

I opened up the defaults.css [2] file inside FlexJSUI.swc and there is no
entry for an 'iBeadModel' under Label.  The CSS entry for Label looks like
this:

Label

{


        width: 95;

        height: 18;

   IBeadModel: 
ClassReference("org.apache.flex.html.staticControls.beads.models.TextModel");

   IBeadView: 
ClassReference("org.apache.flex.html.staticControls.beads.TextFieldView");

        iMeasurementBead:
ClassReference("org.apache.flex.html.staticControls.beads.TextFieldLabelMeasurementBead");

}


Should we be changing 'iBeadModel' to 'IBeadModel' in UIBase.as?

Thanks,
Om

[1]
https://fisheye6.atlassian.com/browse/flex-asjs/frameworks/as/src/org/apache/flex/core/UIBase.as?hb=true
[2]
https://fisheye6.atlassian.com/browse/flex-asjs/frameworks/as/defaults.css?hb=true

Reply via email to