Re: Spark components in flexJS

classic Classic list List threaded Threaded
22 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: Spark components in flexJS

Piotr Zarzycki
What exactly did you try ? Could you post some code, and add a bit more details ?

I'm moving that discussion to Royale mailing list.

Thanks, Piotr

2017-12-06 22:41 GMT+01:00 pol2095 <[hidden email]>:
I just tried



but labelField not work, it display [object Object]



--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki

Reply | Threaded
Open this post in threaded view
|

Re: Spark components in flexJS

pol2095
Hello,





I try this code



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Spark components in flexJS

pol2095
How to add mxml code, it doesn't appear



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Spark components in flexJS

Piotr Zarzycki
Hello,

Try to some paste [1] and post link here.


Thanks, Piotr


2017-12-07 14:01 GMT+01:00 pol2095 <[hidden email]>:
How to add mxml code, it doesn't appear



--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki

Reply | Threaded
Open this post in threaded view
|

Re: Spark components in flexJS

pol2095
This post was updated on .
My project :

-  Main.mxml
-  MainView.mxml 

but labelField not work, it display [object Object]



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Spark components in flexJS

Piotr Zarzycki
It looks to me that you are missing namespaces [1], but also I recommend you to try out nightly build of Royale. You can download it from here [2] and example of Hello World  [3] which you can try to build. Once you pass through that - Try to yours one. [4]

It should definitely work.

[1] xmlns:js="library://ns.apache.org/royale/basic

Thanks, Piotr


2017-12-07 14:07 GMT+01:00 pol2095 <[hidden email]>:
My project :

-  Main.mxml <https://paste.ofcode.org/xSGMYDVWL5FdH8cLTC667x>
-  MainView <https://paste.ofcode.org/Lwa6fnbukZnmHQMQZW28D5>

but labelField not work, it display [object Object]






--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki

Reply | Threaded
Open this post in threaded view
|

Re: Spark components in flexJS

pol2095
It doesn't exist an installer ?



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Spark components in flexJS

Olaf Krueger
In reply to this post by pol2095
Hi,
I've also just checked it out by using one of the latest Royale builds and
it just works for me.
Notice that the "VerticalLayoutWithPaddingAndGap" bead has to be placed as a
child of the list to make it work.
If you've still no luck please don't hesitate to ask!
I am pretty sure that anybody here would be happy to help!

Hope this helps,
Olaf


[1] https://gist.github.com/ok-at-github/e7901afecafa934daf03353b93e813d8
[2] https://snag.gy/i3AxBs.jpg



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Spark components in flexJS

pol2095
How to install Royale, I can download an installer ?



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Spark components in flexJS

Piotr Zarzycki
It is enough if you upack it from the zip, and you can use it in the IDE. What IDE are you using ?

Thanks, Piotr

2017-12-07 22:31 GMT+01:00 pol2095 <[hidden email]>:
How to install Royale, I can download an installer ?



--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki

Reply | Threaded
Open this post in threaded view
|

Re: Spark components in flexJS

Piotr Zarzycki

2017-12-07 22:41 GMT+01:00 Piotr Zarzycki <[hidden email]>:
It is enough if you upack it from the zip, and you can use it in the IDE. What IDE are you using ?

Thanks, Piotr

2017-12-07 22:31 GMT+01:00 pol2095 <[hidden email]>:
How to install Royale, I can download an installer ?



--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki




--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki

Reply | Threaded
Open this post in threaded view
|

Re: Spark components in flexJS

pol2095
In reply to this post by Piotr Zarzycki
It work, I need to specify "-target-player=27"



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Spark components in flexJS

pol2095
Other question : creationComplete Event not work ?



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Spark components in flexJS

Piotr Zarzycki
In reply to this post by pol2095

If you want to build your app only to JS it is enough to have in compiler option -targets=JSRoyale.
Not sure what do you mean by specifying -target-player.

Thanks, Piotr


On Thu, Dec 7, 2017, 23:04 pol2095 <[hidden email]> wrote:
It work, I need to specify "-target-player=27"



--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Spark components in flexJS

Piotr Zarzycki
In reply to this post by pol2095
For Application there is event: applicationComplete and for individual components initComplete

Piotr

2017-12-07 23:16 GMT+01:00 pol2095 <[hidden email]>:
Other question : creationComplete Event not work ?



--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki

Reply | Threaded
Open this post in threaded view
|

Re: Spark components in flexJS

Piotr Zarzycki
In reply to this post by pol2095
Royale want be anymore provided by installer. Once we release it it will be available through npm or simple download of package. W haven't released any version since project split as a new one. The one which I have provided you is a nightly build.

Thanks, Piotr

2017-12-07 21:37 GMT+01:00 pol2095 <[hidden email]>:
It doesn't exist an installer ?



--

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki

Reply | Threaded
Open this post in threaded view
|

Re: Spark components in flexJS

pol2095
This post was updated on .
In reply to this post by Piotr Zarzycki
it work but I have error at compilation

dÚc. 08, 2017 8:46:07 AM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: C:/Users/users/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/core/HTMLElementWrapper.js:102: WARNING - Type annotation references non-existent type org.apache.royale.core.WrappedHTMLElement.
 * @type {org.apache.royale.core.WrappedHTMLElement}
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 08, 2017 8:46:07 AM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: C:/Users/users/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/core/HTMLElementWrapper.js:290: WARNING - Type annotation references non-existent type org.apache.royale.core.WrappedHTMLElement.
  * @type {org.apache.royale.core.WrappedHTMLElement} */
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 08, 2017 8:46:07 AM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: C:/Users/users/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/core/IRenderedObject.js:26: WARNING - Type annotation references non-existent type org.apache.royale.core.WrappedHTMLElement.
/**  * @type {org.apache.royale.core.WrappedHTMLElement}
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 08, 2017 8:46:07 AM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: C:/Users/users/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/core/IViewportModel.js:28: WARNING - Type annotation references non-existent type org.apache.royale.geom.Rectangle.
/**  * @type {org.apache.royale.geom.Rectangle}
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 08, 2017 8:46:07 AM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: C:/Users/users/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/core/UIBase.js:849: WARNING - Type annotation references non-existent type org.apache.royale.core.WrappedHTMLElement.
  var /** @type {org.apache.royale.core.WrappedHTMLElement} */ e = document.body;
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 08, 2017 8:46:07 AM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: C:/Users/users/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/core/UIBase.js:877: WARNING - Type annotation references non-existent type org.apache.royale.core.WrappedHTMLElement.
  var /** @type {org.apache.royale.core.WrappedHTMLElement} */ p = this.positioner.parentNode;
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 08, 2017 8:46:07 AM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: C:/Users/users/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/core/UIBase.js:990: WARNING - Type annotation references non-existent type org.apache.royale.core.WrappedHTMLElement.
  * @type {org.apache.royale.core.WrappedHTMLElement} */
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 08, 2017 8:46:07 AM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: C:/Users/users/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/core/UIBase.js:1007: WARNING - Type annotation references non-existent type org.apache.royale.core.WrappedHTMLElement.
  * @type {org.apache.royale.core.WrappedHTMLElement} */
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 08, 2017 8:46:07 AM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: C:/Users/users/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/html/beads/controllers/ItemRendererMouseController.js:115: WARNING - Type annotation references non-existent type org.apache.royale.core.WrappedHTMLElement.
  var /** @type {org.apache.royale.core.WrappedHTMLElement} */ element = org.apache.royale.utils.Language.as(this._strand, org.apache.royale.core.UIBase).element;
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 08, 2017 8:46:07 AM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: C:/Users/users/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/html/beads/models/ViewportModel.js:36: WARNING - Type annotation references non-existent type org.apache.royale.geom.Rectangle.
 * @type {org.apache.royale.geom.Rectangle}
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 08, 2017 8:46:07 AM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: C:/Users/users/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/html/beads/models/ViewportModel.js:43: WARNING - Type annotation references non-existent type org.apache.royale.geom.Rectangle.
 * @type {org.apache.royale.geom.Rectangle}
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 08, 2017 8:46:07 AM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: C:/Users/users/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/html/beads/models/ViewportModel.js:83: WARNING - Type annotation references non-existent type org.apache.royale.geom.Rectangle.
  * @type {org.apache.royale.geom.Rectangle} */
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 08, 2017 8:46:07 AM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: C:/Users/users/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/html/beads/models/ViewportModel.js:89: WARNING - Type annotation references non-existent type org.apache.royale.geom.Rectangle.
  * @type {org.apache.royale.geom.Rectangle} */
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 08, 2017 8:46:07 AM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: C:/Users/users/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/html/supportClasses/StringItemRenderer.js:50: WARNING - Type annotation references non-existent type org.apache.royale.core.WrappedHTMLElement.
 * @type {org.apache.royale.core.WrappedHTMLElement}
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 08, 2017 8:46:07 AM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: C:/Users/users/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/html/supportClasses/Viewport.js:96: WARNING - Type annotation references non-existent type org.apache.royale.geom.Size.
 * @param {org.apache.royale.geom.Size} contentSize
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 08, 2017 8:46:07 AM com.google.javascript.jscomp.LoggerErrorManager println
SERIOUS: goog/base.js:2515: ERROR - functions can only be declared at top level or immediately within another function in strict mode
      function visitNode(path) {
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 08, 2017 8:46:07 AM com.google.javascript.jscomp.LoggerErrorManager printSummary
WARNING: 1 error(s), 15 warning(s)
The project 'Main' has been successfully compiled and optimized.
Reply | Threaded
Open this post in threaded view
|

Re: Spark components in flexJS

Piotr Zarzycki

It is warnings, but compilation went ok. The result of compilation should be probably in bin folder.

Thanks, Piotr


On Thu, Dec 7, 2017, 23:53 pol2095 <[hidden email]> wrote:
it work but I have error at compilation

/dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/core/HTMLElementWrapper.js:102:
WARNING - Type annotation references non-existent type
org.apache.royale.core.WrappedHTMLElement.
 * @type {org.apache.royale.core.WrappedHTMLElement}
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/core/HTMLElementWrapper.js:290:
WARNING - Type annotation references non-existent type
org.apache.royale.core.WrappedHTMLElement.
  * @type {org.apache.royale.core.WrappedHTMLElement} */
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/core/IRenderedObject.js:26:
WARNING - Type annotation references non-existent type
org.apache.royale.core.WrappedHTMLElement.
/**  * @type {org.apache.royale.core.WrappedHTMLElement}
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/core/IViewportModel.js:28:
WARNING - Type annotation references non-existent type
org.apache.royale.geom.Rectangle.
/**  * @type {org.apache.royale.geom.Rectangle}
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/core/UIBase.js:849:
WARNING - Type annotation references non-existent type
org.apache.royale.core.WrappedHTMLElement.
  var /** @type {org.apache.royale.core.WrappedHTMLElement} */ e =
document.body;
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/core/UIBase.js:877:
WARNING - Type annotation references non-existent type
org.apache.royale.core.WrappedHTMLElement.
  var /** @type {org.apache.royale.core.WrappedHTMLElement} */ p =
this.positioner.parentNode;
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/core/UIBase.js:990:
WARNING - Type annotation references non-existent type
org.apache.royale.core.WrappedHTMLElement.
  * @type {org.apache.royale.core.WrappedHTMLElement} */
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/core/UIBase.js:1007:
WARNING - Type annotation references non-existent type
org.apache.royale.core.WrappedHTMLElement.
  * @type {org.apache.royale.core.WrappedHTMLElement} */
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/html/beads/controllers/ItemRendererMouseController.js:115:
WARNING - Type annotation references non-existent type
org.apache.royale.core.WrappedHTMLElement.
  var /** @type {org.apache.royale.core.WrappedHTMLElement} */ element =
org.apache.royale.utils.Language.as(this._strand,
org.apache.royale.core.UIBase).element;
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/html/beads/models/ViewportModel.js:36:
WARNING - Type annotation references non-existent type
org.apache.royale.geom.Rectangle.
 * @type {org.apache.royale.geom.Rectangle}
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/html/beads/models/ViewportModel.js:43:
WARNING - Type annotation references non-existent type
org.apache.royale.geom.Rectangle.
 * @type {org.apache.royale.geom.Rectangle}
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/html/beads/models/ViewportModel.js:83:
WARNING - Type annotation references non-existent type
org.apache.royale.geom.Rectangle.
  * @type {org.apache.royale.geom.Rectangle} */
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/html/beads/models/ViewportModel.js:89:
WARNING - Type annotation references non-existent type
org.apache.royale.geom.Rectangle.
  * @type {org.apache.royale.geom.Rectangle} */
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/html/supportClasses/StringItemRenderer.js:50:
WARNING - Type annotation references non-existent type
org.apache.royale.core.WrappedHTMLElement.
 * @type {org.apache.royale.core.WrappedHTMLElement}
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/html/supportClasses/Viewport.js:96:
WARNING - Type annotation references non-existent type
org.apache.royale.geom.Size.
 * @param {org.apache.royale.geom.Size} contentSize
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
SERIOUS: goog/base.js:2515: ERROR - functions can only be declared at top
level or immediately within another function in strict mode
      function visitNode(path) {
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
printSummary
WARNING: 1 error(s), 15 warning(s)
The project 'Main' has been successfully compiled and optimized./





--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Spark components in flexJS

Alex Harui-2
In reply to this post by pol2095
That's strange.  If you look at your goog/base.js, is "function visitNode"
somehow not declared at the top-level or immediately within another
function?

-Alex

On 12/7/17, 2:53 PM, "pol2095" <[hidden email]> wrote:

>it work but I have error at compilation
>
>dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
>println
>SERIOUS: goog/base.js:2515: ERROR - functions can only be declared at top
>level or immediately within another function in strict mode
>      function visitNode(path) {
>      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
>--
>Sent from:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-roy
>ale-users.20374.n8.nabble.com%2F&data=02%7C01%7Caharui%40adobe.com%7C04e44
>26dd6d44348e48108d53dc55506%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6
>36482840102100409&sdata=y%2FaG0pRCecXhwkYrtEcw2KOG6J4uf3BjAMZnV50Rjjo%3D&r
>eserved=0

Reply | Threaded
Open this post in threaded view
|

Re: Spark components in flexJS

Alex Harui-2
In reply to this post by Piotr Zarzycki
There is an error near the end.  Looks like Google made a change about a month ago that isn't ES5Strict compatible.  I've asked on their commit list.

For now, I've updated the build to use an older Closure Library.  It should be available in the next nightly build which takes about an hour.

HTH,
-Alex

From: Piotr Zarzycki <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, December 7, 2017 at 3:05 PM
To: "[hidden email]" <[hidden email]>
Subject: Re: Spark components in flexJS

It is warnings, but compilation went ok. The result of compilation should be probably in bin folder.

Thanks, Piotr


On Thu, Dec 7, 2017, 23:53 pol2095 <[hidden email]> wrote:
it work but I have error at compilation

/dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/core/HTMLElementWrapper.js:102:
WARNING - Type annotation references non-existent type
org.apache.royale.core.WrappedHTMLElement.
 * @type {org.apache.royale.core.WrappedHTMLElement}
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/core/HTMLElementWrapper.js:290:
WARNING - Type annotation references non-existent type
org.apache.royale.core.WrappedHTMLElement.
  * @type {org.apache.royale.core.WrappedHTMLElement} */
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/core/IRenderedObject.js:26:
WARNING - Type annotation references non-existent type
org.apache.royale.core.WrappedHTMLElement.
/**  * @type {org.apache.royale.core.WrappedHTMLElement}
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/core/IViewportModel.js:28:
WARNING - Type annotation references non-existent type
org.apache.royale.geom.Rectangle.
/**  * @type {org.apache.royale.geom.Rectangle}
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/core/UIBase.js:849:
WARNING - Type annotation references non-existent type
org.apache.royale.core.WrappedHTMLElement.
  var /** @type {org.apache.royale.core.WrappedHTMLElement} */ e =
document.body;
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/core/UIBase.js:877:
WARNING - Type annotation references non-existent type
org.apache.royale.core.WrappedHTMLElement.
  var /** @type {org.apache.royale.core.WrappedHTMLElement} */ p =
this.positioner.parentNode;
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/core/UIBase.js:990:
WARNING - Type annotation references non-existent type
org.apache.royale.core.WrappedHTMLElement.
  * @type {org.apache.royale.core.WrappedHTMLElement} */
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/core/UIBase.js:1007:
WARNING - Type annotation references non-existent type
org.apache.royale.core.WrappedHTMLElement.
  * @type {org.apache.royale.core.WrappedHTMLElement} */
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/html/beads/controllers/ItemRendererMouseController.js:115:
WARNING - Type annotation references non-existent type
org.apache.royale.core.WrappedHTMLElement.
  var /** @type {org.apache.royale.core.WrappedHTMLElement} */ element =
org.apache.royale.utils.Language.as(this._strand,
org.apache.royale.core.UIBase).element;
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/html/beads/models/ViewportModel.js:36:
WARNING - Type annotation references non-existent type
org.apache.royale.geom.Rectangle.
 * @type {org.apache.royale.geom.Rectangle}
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/html/beads/models/ViewportModel.js:43:
WARNING - Type annotation references non-existent type
org.apache.royale.geom.Rectangle.
 * @type {org.apache.royale.geom.Rectangle}
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/html/beads/models/ViewportModel.js:83:
WARNING - Type annotation references non-existent type
org.apache.royale.geom.Rectangle.
  * @type {org.apache.royale.geom.Rectangle} */
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/html/beads/models/ViewportModel.js:89:
WARNING - Type annotation references non-existent type
org.apache.royale.geom.Rectangle.
  * @type {org.apache.royale.geom.Rectangle} */
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/html/supportClasses/StringItemRenderer.js:50:
WARNING - Type annotation references non-existent type
org.apache.royale.core.WrappedHTMLElement.
 * @type {org.apache.royale.core.WrappedHTMLElement}
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
WARNING:
C:/Users/jcs/Desktop/DropDownList/mxml/bin/js-debug/org/apache/royale/html/supportClasses/Viewport.js:96:
WARNING - Type annotation references non-existent type
org.apache.royale.geom.Size.
 * @param {org.apache.royale.geom.Size} contentSize
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
println
SERIOUS: goog/base.js:2515: ERROR - functions can only be declared at top
level or immediately within another function in strict mode
      function visitNode(path) {
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^

dÚc. 07, 2017 11:49:30 PM com.google.javascript.jscomp.LoggerErrorManager
printSummary
WARNING: 1 error(s), 15 warning(s)
The project 'Main' has been successfully compiled and optimized./





--
Sent from: http://apache-royale-users.20374.n8.nabble.com/
12