Quantcast
Channel: Adobe Community : Popular Discussions - Archived Discussions
Viewing all articles
Browse latest Browse all 21156

Calling JS functions from AIR

$
0
0

Problem: I have a bunch of .js files that I would like to not share with the world. Instead, I would like to create an AIR application (desktop only) that can make use of the JS functions without including the .js files to the people I give the AIR app too.

 

Question: Is there a way to do this? I'm familiar with developing applications with as3 but not for AIR at all.

 

Sample code:

as code:

var returnValue:String = ExternalInterface.call("sendReturn",tempStr).toString();

 

bla.js

function sendReturn(val){          alert(val);          var tempData = "Hello from JS";       return tempData + ' :return'; }

Viewing all articles
Browse latest Browse all 21156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>