Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tkmr/as2js
Object bridge from ActionScript 3.0 to JavaScript
https://github.com/tkmr/as2js
Last synced: 3 months ago
JSON representation
Object bridge from ActionScript 3.0 to JavaScript
- Host: GitHub
- URL: https://github.com/tkmr/as2js
- Owner: tkmr
- Created: 2008-05-31T16:58:02.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2011-10-28T06:14:16.000Z (about 13 years ago)
- Last Synced: 2024-06-23T19:35:26.924Z (5 months ago)
- Language: ActionScript
- Homepage: http://blog.tkmr.org/as2js-test.html?twitter=tkmr&ustream=tkmr
- Size: 89.8 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
- awesome-actionscript-sorted - as2js - Object bridge from ActionScript 3.0 to JavaScript (File Formats / JavaScript)
README
as2js
by Tatsuya Takamura== DESCRIPTION:
You can call JavaScript function or object from ActionScript by this libraly
Please confirm demo page http://blog.tkmr.org/as2js-test.html?twitter=tkmr&ustream=tkmr== SAMPLE CODE:
(in the ActionScript)
//Alert from ActionScript
var window:AS2JS = AS2JS.register("window");
window.alert("Alert from ActionScript!!");//Change a DOM
var document:AS2JS = AS2JS.register("document");
document.getElementById("title1").innerHTML="Hello World from ActionScript normal";//With prototype.js
var element:AS2JS = AS2JS.register("Element");
var title2:AS2JS = window.$("title2");
element.update(title2, "Hello World from ActionScript with prototype.js");