Hi, if you want to integrate third party javascript libraries use @externs or @externalinterface ( https://apache.github.io/royale-docs/features-and-concepts#externalinterface-and-externs )
If you want just an existing AS3 library you can transpile to javascript directly, but you need to get rid of Flash dependencies. Some are emulated or there are other replacements. In this project I'm linking an extern library: https://github.com/codeoscopic/avant2-website But I'm using Maven not VSCode. You can check VSCode documentation to see how AS3 libraries are configured in json ( https://github.com/BowlerHatLLC/vscode-as3mxml/wiki) For ByteArray I think is COMPILE::SWF import flash.utils.ByteArray; COMPILE::JS import org.apache.royale.utils.BinaryData; and I see a mx.utils.ByteArray in emulation (MXRoyale) Maybe others can say more about that El sáb., 7 nov. 2020 a las 1:01, Todd Stevenson (<[email protected]>) escribió: > I'm migrating a flex app to Royale. I'm using the VS Code with > asconfig.json to handle configurations. > > I can't find any documentation on 3rd party libraries that I can > reference. (There is a link on one of the pages but it is broken > https://apache.github.io/royale-docs/frameworks-and-libraries) > > I need to know how I add 3rd party libraries to asconfig.json and > documentation on the functions and classes available. > > In particular I'm looking at a set of classes based on com.adobe.fiber and > flash.utils.ByteArray. > > Thank you very much. > > Todd Stevenson > > NOTICE: This e-mail is for the sole use of the intended recipient and may > contain confidential and privileged information. If you are not the > intended recipient, you are prohibited from reviewing, using, disclosing or > distributing this e-mail or its contents. If you have received this e-mail > in error, please contact the sender by reply e-mail and destroy all copies > of this e-mail and its contents. > -- Carlos Rovira Apache Member & Apache Royale PMC *Apache Software Foundation* http://about.me/carlosrovira
