In FlexJS, is there a way to call a Javascript function from ActionScript?
I did not see an obvious way to do it but I may have missed something.
Thanks,
Jim
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
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
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.
Simple question:
I cannot install air 26, getting the same error (1000, 1009) errors.
What is the solution? Are there detailed instructions for dummies to show
how to get around the error? Interesting this has been an issue since March
and still not corrected.
--
View this message in