Showing posts with label js. Show all posts
Showing posts with label js. Show all posts

Saturday, September 11, 2010

JS via AS3

Heres a little script that runs javascript from flash.

swfjs.as

package {
import flash.display.*;
import flash.external.*;
public class swfjs extends Sprite {
function swfjs(){
ExternalInterface.call("function(){alert(1);}");
}
}
}


enjoy :D