SWFObject.hx 611 B

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