Sha256: a3de535e6090abbb38d1f7bd14e2810d021b7c0e73c7c0744293559e9ce694d3
Contents?: true
Size: 660 Bytes
Versions: 7
Compression:
Stored size: 660 Bytes
Contents
import flash.external.ExternalInterface; import mx.utils.Delegate; dynamic class Example extends MovieClip { function Example() { this.info = createTextField("info", getNextHighestDepth(), 0, 0, Stage.width, Stage.height); this.log(_level0.message ? _level0.message : "Hello, world!\n"); ExternalInterface.addCallback("sendFlash", this, this.receiveFromJS); } function callJS(arg) { ExternalInterface.call("receiveFromFlash", arg); } function receiveFromJS(arg) { this.log("Received from JS: "+arg+"\n"); this.callJS("Thanks for: "+arg); } function log(txt) { this.info.text += txt; } private var info: TextField; }
Version data entries
7 entries across 7 versions & 3 rubygems