On Thu, Sep 26, 2013 at 6:17 AM, Alex Harui <aha...@adobe.com> wrote:

>
>
> On 9/25/13 11:57 PM, "OmPrakash Muppirala" <bigosma...@gmail.com> wrote:
>
> >On Wed, Sep 25, 2013 at 8:41 PM, Alex Harui <aha...@adobe.com> wrote:
> >
> >> Turns out there is a bug in the Falcon code that the search for
> >>IFlexInfo
> >> only is in the baseclass and not deeper.
> >>
> >> JQuery's app does not directly implement IFlexInfo.  Adding that is
> >> probably the cheapest workaround for you.
> >
> >
> >Awesome, thanks for looking into this.  So, what exactly should the get
> >info() method look like?  I dont see an example anywhere.
> org.apache.flex.core.Application defines this stub:
>
>         public function get info():Object
>         {
>             return {};
>         }
>
> The compiler overrides it to return an object with some properties in it.
> I don't believe we've documented what goes in it.  You shouldn't need to
> know that to get the jQuery_Sample to run, just add "implements IFlexInfo"
> to the jQuery Application class.
>
>
> The contents of the info() structure have changed from release to release,
> and FlexJS currently ignores most of it (RSLs, ResourceBundle list etc).
> You can see it by using -keep with MXMLC.  Falcon doesn't support -keep.
>
> HTH,
> -Alex
>
>
Hi,

I am still trying to get the jQuery_Sample app to run.  I added 'implements
IFlexInfo' to the jquery application class.  Now I am getting this error:

=====================================================================================================================
13 beads
5 beads
8 id
11 beads
14 _id
[SWF]
C:\p\flex_os\workspace\flexroot\git\flex-asjs\examples\FlexJSTest_jquery\bin-debug\jQuerySample_flexjs.swf
- 74,377 bytes after decompression
TypeError: Error #1009: Cannot access a property or method of a null object
reference.
    at
org.apache.flex.core::SimpleCSSValuesImpl/getValue()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\SimpleCSSValuesImpl.as:237]
    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
text()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\html\staticControls\Label.as:46]
    at org.apache.flex.binding::SimpleBinding/set
strand()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\binding\SimpleBinding.as:51]
    at
org.apache.flex.core::UIBase/addBead()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\src\org\apache\flex\core\UIBase.as:231]
    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:153]
    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:133]
    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:63]

=====================================================================================================================

It seems like the iBeadModel property is not available in the Label
instance.  I see that in defaults.css, we do set IBeadModel, though:

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");
}

I did spend quite a bit of time figuring out why it is not being set.  Any
idea what is going on here?

Also, there seems to be an inconsistent usage of "iSomething" vs.
"ISomething" throughout the codebase.  Could that be causing these issues?
Maybe we should standardize on one naming convention.

Thanks,
Om

Reply via email to