Hi, there's a way to make @extern classes (like stubs in AS3 that wraps JS code), so you call as3 class with dot notation, not bracketed.
The problem with this is that we actually have a bug that causes the @extern works in Royale projects but not in libraries. I want to try to fix this in the compiler if possible, or if I can get it others like Josh or Alex will need to fix. So for now it's ok to stick with your current windows bracketed access. thanks El vie., 31 may. 2019 a las 21:09, QA (<[email protected]>) escribió: > I stumbled on Josh's post on How to transpile AS3 to node js here, > > https://royale.codeoscopic.com/hello-node-how-to-transpile-actionscript-for-node-js/ > and see he has a config option set to "node". Interestingly, I added > this option to the example here and code intelligence was available for > node.js variables and classes. > > But I think they are for the Main process. In the Royale example I use: > > window["require"] and window["require"]("electron") to get around > compiler errors > > It would be great to add the Renderer process code intelligence to the > Royale projects if anyone knows how. > > Jude > > On 5/28/19 5:59 AM, Piotr Zarzycki wrote: > > Hi Antonis, > > > > I took some time and I have created this example using Moonshine Jewel > > Hello World. Basically I have created new project and added steps related > > to Electron and I was able to run it using console window. If you are > > interested - Example is here with instruction. [1][2] > > Currently for some reason I cannot download Nightly build of Royale cause > > Jenkins doesn't work, but I hope Alex launch it today. > > > > Judah, > > > > Great work! > > > > I bump into a small issue - When I copied content of main.js file it > failed > > launch application initially due to some characters -> () => { > > > > [1] > https://github.com/prominic/Royale-Examples/tree/master/ElectronRoyale > > [2] > > > https://github.com/prominic/Royale-Examples/blob/master/ElectronRoyale/README.md > > > > Thanks, > > Piotr > > > > > > > > pon., 27 maj 2019 o 20:40 Antonis Kalodimos <[email protected] > > > > napisał(a): > > > >> Yes i didn't send you the whole file i was the end part only > >> The whole part is from this page > >> > >> > https://royale.codeoscopic.com/how-to-create-a-desktop-application-with-royale-and-electron/ > >> the same as in this page the HelloWorld.mxml and above > >> the <js:initialView> tag im inserted the script showed in the same > page. > >> > >> The first error i found during truing to compile is from this line > showed > >> in the example > >> > >> <js:Application xmlns:fx="//ns.adobe.com/mxml/2009" that i changed to > >> this > >> <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009" > >> > >> after the build task know with apache-royale-0.9.4-bin-js usedfor > >> building i am receiving this in log shoewd in terminal vscode window > >> > >> last lines > >> using source file: > >> c:\Works\NodeWorks\myElectron02\bin\js-debug\HelloWorld.js > >> The project 'HelloWorld' has been successfully compiled and optimized. > >> Error: File not found: > org.apache.royale.events.utils.MouseEventConverter > >> > >> 90.8037847 seconds > >> The terminal process terminated with exit code: 3 > >> > >> Terminal will be reused by tasks, press any key to close it. > >> > >> > >> Στις Δευ, 27 Μαΐ 2019 στις 9:08 μ.μ., ο/η Harbs <[email protected]> > >> έγραψε: > >> > >>> The XML is likely not well formed. > >>> > >>> Is the opening tag <fx:script> or <fx:Script> ? > >>> > >>>> On May 27, 2019, at 8:47 PM, Antonis Kalodimos < > >>> [email protected]> wrote: > >>>> Yes i had this tag > >>>> . > >>>> . > >>>> . > >>>> > >>>> </fx:Script> > >>>> <js:initialView> > >>>> <js:View> > >>>> <js:Label id="helloLabel" text="Hello World" x="240" y="20"/> > >>>> <j:Button id="helloButton" text="Hello" x="20" y="20" click=" > >>>> clickHandler(event)"/> > >>>> </js:View> > >>>> </js:initialView> > >>>> </js:Application> > >>>> > >>>> I found that i was trying to compile it with > >>> apache-royale-0.9.6-bin-js-swf > >>>> when i changed that with apache-royale-0.9.4-bin-js > >>>> problem resolved but nothing showed (with > >> apache-royale-0.9.6-bin-js-swf > >>>> the button and the text was showed.) > >>>> > >>>> > >>>> > >>>> Στις Δευ, 27 Μαΐ 2019 στις 8:39 μ.μ., ο/η Carlos Rovira < > >>>> [email protected]> έγραψε: > >>>> > >>>>> Hi Antonis, > >>>>> > >>>>> are you adding it in the HelloWorld.mxml file > >>>>> before <js:initialView>? > >>>>> The error seems like you are trying to add it in other part of the > >> file > >>> or > >>>>> in other different file. > >>>>> > >>>>> Thanks > >>>>> > >>>>> > >>>>> > >>>>> El lun., 27 may. 2019 a las 18:21, Antonis Kalodimos (< > >>>>> [email protected]>) escribió: > >>>>> > >>>>>> Trying to folow this tutorial have these compile errors after > putting > >>> the > >>>>>> <fx:script> tag > >>>>>> col: 1 Error: This tag is unexpected. It will be ignored. > >>>>>> > >>>>>> <fx:Script> > >>>>>> ^ > >>>>>> > >>>>>> My code is the same as in the tutorial and it worked as expected > >> until > >>>>> the > >>>>>> step i n which fx:script tag need to be added > >>>>>> > >>>>>> > >>>>>> > >>>>>> Στις Δευ, 27 Μαΐ 2019 στις 6:39 μ.μ., ο/η Carlos Rovira < > >>>>>> [email protected]> έγραψε: > >>>>>> > >>>>>>> Hi, > >>>>>>> > >>>>>>> new arcticle from Judah Frangipane is up! > >>>>>>> > >>>>>>> https://twitter.com/ApacheRoyale/status/1133025119075479552 > >>>>>>> > >>>>>>> don't forget to share the new tweet please! :) > >>>>>>> > >>>>>>> and enjoy!! > >>>>>>> > >>>>>>> -- > >>>>>>> Carlos Rovira > >>>>>>> http://about.me/carlosrovira > >>>>>>> > >>>>> > >>>>> -- > >>>>> Carlos Rovira > >>>>> http://about.me/carlosrovira > >>>>> > >>> > > > -- Carlos Rovira http://about.me/carlosrovira
