SWFObject.hx 597 B

12345678910111213141516171819
  1. package js;
  2. extern class SWFObject {
  3. function new( swf : String, id : String, width : Int, height : Int, ver : String, color : String /*...*/ ) : Void;
  4. function addParam( param : String, value : String ) : Void;
  5. function getSWFHTML() : String;
  6. function write( elementId : String ) : Bool;
  7. function addVariable( param : String, value : String ) : Void;
  8. function setAttribute( id : String, value : String ) : Void;
  9. private static function __init__() : Void untyped {
  10. #if !noEmbedJS
  11. haxe.macro.Tools.includeFile("js/swfobject-1.5.js");
  12. #end
  13. js.SWFObject = deconcept.SWFObject;
  14. }
  15. }