Hi Jude! El lun., 3 jun. 2019 a las 22:32, QA (<[email protected]>) escribió:
> Great job! :) I have a few comments: > thanks! > > In the introduction I would add at the end, "It also allows an IDE to > provide code completion, type checking, etc." You mention the advantages > later in the post. > > added! :) > />Note: Currently the inject_html injection only works if your @externs > class is located in a Royale library. It will not work if is located in > the application project./ > > Does that mean my externs class in my project directory, src, will work > but it cannot add html to the template? Do I need to move my AS class > somewhere else, or manually add the script tags to my template or is > this a temporary issue that will be fixed in the future? > I think this is a temporary issue that will be fixed sometime. I asked for help so I can know where I could look to fix it, since it's not clear to me. Maybe others like Alex or Josh could give a hand here or take directly a look. > > In the example, the *hljs* class is not declared locally in the project > because it is declared already in Royale. Does that mean it is available > via code hinting automatically? > Is available in Jewel, so if you have Jewel added (that use to be since is an official Royale lib) you'll have it. > > When I create my extern classes for my own project where do I put them? > in a library project, like a did in jewel library project > > What is the code component? Does that a code tag? > I don't understand that question... the code of hljs.as is posted in the example text. and for code tag, it can't be used that way since it doesn't implement the IMXMLDocument interface you need to make a component that support that feature. > > Is it possible in the example code you use to remove the large comment > at the top? :) > I prefer not to do it since is official Royale project, and it's been shared there as is, so I think I should not do it, sorry :( Thanks! :) > > Jude > > On 6/3/19 1:25 PM, Carlos Rovira wrote: > > Hi Andrew! > > > > just finished the last blog example, could you please take a look and fix > > whatever aggression against the English language that may have been > > committed? :) > > > > > https://royale.codeoscopic.com/using-external-javascript-libraries-in-apache-royale/ > > > > To the rest of folks: please let me know if you thing something is wrong > or > > must be modified in some way. > > > > thanks in advance > > > > > -- Carlos Rovira http://about.me/carlosrovira
