Re: Javascript functions

2017-08-23 Thread Harbs
Typedefs makes the signatures known, but the javascript needs to be loaded. Generally, loaded javascript is in the global space and is attached to the window. If you have typedefs defined you can just access the global MyFoo.doSomething() directly. If you don’t have typedefs defined, you can do

Re: Javascript functions

2017-08-23 Thread Olaf Krueger
Piotr, whats about just creating some TypeDefs? Olaf -- View this message in context: http://apache-flex-development.247.n4.nabble.com/Javascript-functions-tp63954p63956.html Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: Javascript functions

2017-08-23 Thread Piotr Zarzycki
Hi Jim, Yes we can, but you have to assume that your library is part of your loaded webpage. [1] - In this html template you can see that material.min.js is included. We are doing calls of JS functions from AS in MDL module. Example is UpgradeElement bead (method: upgradeElement) which just gets o