Re: The start of a FullCalendar Royale component...

2019-05-02 Thread Piotr Zarzycki
Hi Andrew, First of all Thank you for using Moonshine! I think there is one good advantage to going by your approach instead typedefs. You can redefine API to completely new if you don't like in the original component. Those new API may have a bit more of a AS3 style etc. Thanks, Piotr On Fri,

Build failed in Jenkins: royale-asjs_MXTests #742

2019-05-02 Thread Apache Royale CI Server
See -- [...truncated 2.04 MB...] [mxmlc] using source file:

Re: The start of a FullCalendar Royale component...

2019-05-02 Thread Alex Harui
Hi Andrew, That's cool! Thank you for demonstrating that such a thing can be done. I'm not sure there is a "best approach" for doing something like this. It really depends on how much time you want to put into it. If you want to use a 3rd-party component in your app and only want to use a

Build failed in Jenkins: royale-asjs_MXTests #741

2019-05-02 Thread Apache Royale CI Server
See -- [...truncated 2.03 MB...] [mxmlc] using source file:

RE: The start of a FullCalendar Royale component...

2019-05-02 Thread Jonathan Moore
Andrew, You might was to look it some native Actionscript classes. Flex comes to mind Flex 3.3 was the probably the best for animators Adobe and Apache, get familiar with Flex 3rd party frameworks. Thanks, Jonathan. From: Frost, Andrew

Build failed in Jenkins: royale-asjs_MXTests #740

2019-05-02 Thread Apache Royale CI Server
See Changes: [carlosrovira] tourdejewel: use new hljs class to show highlighted github code in TDJ -- [...truncated 2.03 MB...] [mxmlc]

The start of a FullCalendar Royale component...

2019-05-02 Thread Frost, Andrew
Hi Something that Dany Dhondt wrote recently, about using the "fullcalendar" React component, got me to wondering how easy it was to wrap these sorts of third party components into Royale. The answer turned out to be: it's pretty straightforward. I'm not sure I've used the best approach (no

Re: Using @extrens ( RE: Example of access external JS using Apache Royale)

2019-05-02 Thread Alex Harui
The word "package" has many meanings. In AS3 it is a way of avoiding API name collisions. AIUI, an AS3 package in SWF code has no object or function representation. It effectively just creates a longer "qualified name". IOW, in a SWF, if there is a class "mx.core.UIComponent", there is no

Re: Using @extrens ( RE: Example of access external JS using Apache Royale)

2019-05-02 Thread Carlos Rovira
Hi Dany, I only see TS convenient to gain more audience making TS a first language side to side with AS3, so people could code in TS his royale projects and/or AS3/MXML. But adding TS to Royale will require someone to make it happen, and the effort will be significative, so I don't expect this to

Re: Using @extrens ( RE: Example of access external JS using Apache Royale)

2019-05-02 Thread Josh Tynjala
Yes, it's possible to create for Node.js typedefs in that style. For instance, here are a couple of typedefs for Node.js modules that I needed in my asconfigc tool (which builds vscode-as3mxml projects from the command line):

Re: Using @extrens ( RE: Example of access external JS using Apache Royale)

2019-05-02 Thread Carlos Rovira
Thanks Alex and Josh, that worked! :) I'll be explaining that in blog example so people is aware they can't use package in this case :) thanks! El jue., 2 may. 2019 a las 19:57, Josh Tynjala () escribió: > Just for fun, here's another way that you could create a typedef for hljs > so that the

Build failed in Jenkins: royale-asjs_MXTests #739

2019-05-02 Thread Apache Royale CI Server
See Changes: [carlosrovira] tourdejewel: add hljs class extern to showcase how to do it in TDJ -- [...truncated 2.04 MB...] [mxmlc]

Re: Using @extrens ( RE: Example of access external JS using Apache Royale)

2019-05-02 Thread Dany Dhondt
Hi Josh, Aren’t most of the packages just functions? In ES6, you’d import packages as Import { myFunct, myVar } from ‘my-package’ In older javascript you’d: const myPackagePointer = require(‘my-package’) So your ‘fun’ example sounds like heaven to me! This is exactly what we need. About

Re: Using @extrens ( RE: Example of access external JS using Apache Royale)

2019-05-02 Thread Josh Tynjala
Just for fun, here's another way that you could create a typedef for hljs so that the highlightBlock() function is directly in a package (similar to flash.net.navigateToURL), instead of as a static method on a class: https://paste.apache.org/khVI If you did it this way, you'd need to import it

Jenkins build is back to normal : royale-asjs #2218

2019-05-02 Thread Apache Royale CI Server
See

Re: Using @extrens ( RE: Example of access external JS using Apache Royale)

2019-05-02 Thread Josh Tynjala
Exactly right. When you create a typedef class, you're trying to simulate how you would access the API as if you were writing in plain JavaScript. You call hljs.highlightBlock() in JavaScript, so you need a class that works the same way in ActionScript. Another option for organization would be

Build failed in Jenkins: royale-asjs #2217

2019-05-02 Thread Apache Royale CI Server
See Changes: [carlosrovira] tourdejewel: add hljs class extern to showcase how to do it in TDJ -- [...truncated 2.36 MB...] [get] Getting:

Re: Using @extrens ( RE: Example of access external JS using Apache Royale)

2019-05-02 Thread Alex Harui
Hi Carlos, I don’t think hljs is in a package called "externs". In Josh's example, hljs was in the top-level package. And that's because hljs is found at runtime off of the global window object, not some sub-object called "externs". So, the hljs.as file containing the externs has to go in

Re: Example of access external JS using Apache Royale

2019-05-02 Thread Alex Harui
FWIW, source externs might have bugs. I only tried it in one simple test case. But it should be possible to make it work and we want it to work. It would be like writing header files for 'C' programs. Both #2 and #3 are valid ways of integrating external JS in Royale. #2 is better for

Using @extrens ( RE: Example of access external JS using Apache Royale)

2019-05-02 Thread Carlos Rovira
Hi, in my latest commit I added hljs extern class like Josh show in package externs in TDJ Then I didn't commit the following since is not working for me: 1.- In HighlightCode class (in utils package TDJ) added: import externs.hljs; changed the method highlightBlock to: COMPILE::JS

Re: RE: Example of access external JS using Apache Royale

2019-05-02 Thread Carlos Rovira
Hi Josh, I think this piece of knowledge you just exposed here is key for the success of Royale. I'll try to use this in TDJ to experiment with it and will use in the blog example I plan to do. thanks! El jue., 2 may. 2019 a las 16:36, Josh Tynjala () escribió: > > Users can't do this, they

Re: Building a Faq for Royale

2019-05-02 Thread Alex Harui
IMO, the FAQ on the website can answer "What is Royale", and the FAQ on SO will answer "How to use Royale". And really, we could have a FAQ in the royale-asjs repo wiki that answer "How to fix bugs and add features to the Royale framework" and similar FAQ for all of our repos. My 2 cents,

RE: RE: Example of access external JS using Apache Royale

2019-05-02 Thread Yishay Weiss
Helpful, thanks. From: Josh Tynjala Sent: Thursday, May 2, 2019 5:36:35 PM To: dev@royale.apache.org Subject: Re: RE: Example of access external JS using Apache Royale > Users can't do this, they required that Royale framework devs add typedefs to > the

Re: RE: Example of access external JS using Apache Royale

2019-05-02 Thread Josh Tynjala
> Users can't do this, they required that Royale framework devs add typedefs to > the typedefs repo and wait to next SDK release. What does not seems very > useful. Users can create their own typedefs from scratch. I just created a quick example for hljs, that exposes the highlightBlock()

Build failed in Jenkins: royale-asjs_MXTests #738

2019-05-02 Thread Apache Royale CI Server
See -- [...truncated 2.04 MB...] [mxmlc] using source file:

Re: Building a Faq for Royale

2019-05-02 Thread Carlos Rovira
El mié., 1 may. 2019 a las 13:18, Dany Dhondt () escribió: > > A faq is literally an aggregation of questions that get asked over and > over again and therefore, I agree that the questions should be asked on SO > first and that the accepted answer (or a digest of the accepted answer) is > copied

Re: RE: Example of access external JS using Apache Royale

2019-05-02 Thread Carlos Rovira
Hi, to sumarize (let me know if I'm wrong), the current ways to integrate an existing library are 3: 1.- access vía brackets notation: This is the most easy and direct, an example is TourDeJewel in class utils.HighlightCode var hljs:Object = window["hljs"]; hljs["highlightBlock"](block); but

Re: How to try locally Royale-docs repo

2019-05-02 Thread Carlos Rovira
Hi, thanks. I have it running. I get the "_site" folder generated but when open "_site/index.html" file in safari locally I'm finding I don't get CSS files loaded (maybe other files too. So testing locally is hard. Could we make some changes that make files load in local and production? or maybe