flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Rovira <carlosrov...@apache.org>
Subject Re: [FlexJS][SpriteFlexJS][Maven] Trying to write some example with FlexJS and SpriteFlexJS
Date Sat, 25 Feb 2017 17:10:59 GMT
Hi, could someone take a look to this?
thanks

2017-02-24 12:03 GMT+01:00 Carlos Rovira <carlosrovira@apache.org>:

> Hi,
>
> I created a test project with FlexJS and SpriteFlexJS. I use MDL for
> structure the example equally as I did before with MDLExample.
>
> It's here: https://github.com/carlosrovira/sprite-flexjs-examples
>
> So, the first thing I'm trying is this example by Lizhi:
> https://codepen.io/matrix3d/pen/mAZmVy
>
> But I found the following problems:
>
> 1.- If I remove in pom.xml (https://github.com/carlosrovira/sprite-flexjs-
> examples/blob/master/pom.xml) the spriteflexjs maven dependency (line 81
> to 86), the project still build successfully
>
> 2.- Although build succeed, at runtime I find errors:
>
>    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?
>
>
> 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?
>
>
>
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>


-- 
Carlos Rovira
http://about.me/carlosrovira

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message