On 2/25/17, 9:10 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
<carlos.rov...@gmail.com on behalf of carlosrov...@apache.org> wrote:

>>
>>    a) In. SpriteFlexjsMain.base.js. ---->.
>>goog.inherits(SpriteFlexjsMain,
>> flash.display.Sprite);                   <--  ReferenceError: Can't find
>> variable: flash
>>
>>
>>    b) In EventDispatcher.js.    --------->          TypeError:
>> SpriteFlexjsMain.base is not a function. (In
>>'SpriteFlexjsMain.base(this,
>> 'constructor')', 'SpriteFlexjsMain.base' is undefined)
>>
>>
>>
>> One thing that could be happen is that projects are outside the
>>flex-asjs
>> folder umbrella. Could this be making some troubles and make the
>> spritelfexjs maven artifact not recognized by the sample project?

It isn't whether a bunch of code is outside of flex-asjs folder, it is
whether that code is using goog.require or not.  So look at
flash.display.Sprite.js and see if it is or not.  If it is, then the issue
may be whether flash.display.Sprite.js is in the SWCs or specified via
-sdk-js-lib.  If it isn't, then it may not be usable as a base class in
FlexJS.  I think Google Closure expects goog.require.

>>
>>
>> Further problems will be: If I get compilation ok, is that I think I
>>will
>> need to do some "addChild()" or "addElement()" in mxml in order to
>>display
>> the example on screen. Right now the object is created, but not added to
>> display list.
>> How this could be done in FlexJS?

Components have to be made into MXML-ready components to be used as the
top tag in MXML.  Look for components in flex-asjs that have a
generateMXMLAttributes method.

Components can be child tags in MXML without as much overhead, but I think
we currently require children to implement IUIBase.

HTH,
-Alex

Reply via email to