You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2020/01/12 16:44:51 UTC

[GitHub] [royale-asjs] carlosrovira commented on issue #674: How to use standard Web APIs such as Web Speech API?

carlosrovira commented on issue #674: How to use standard Web APIs such as Web Speech API?
URL: https://github.com/apache/royale-asjs/issues/674#issuecomment-573433785
 
 
   Hi @vinidiktov, you have some ways to do that.
   
   1. Creating an AS3 externs class. This is more near to the rest of your AS3 code, since you can expose methods available in JS and call it through "dot" access.
   2. Using bracket access by linking the js library in your `index.html` template, and just use the api from js `window`object as you show in the description. That's the most simple way, but you loose the AS3 power.
   
   Both options are described in detail in this blog example: https://royale.apache.org/using-external-javascript-libraries-in-apache-royale/

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services