a:15:{s:9:"#provides";s:18:"dojox.embed.Object";s:9:"#resource";s:15:"embed/Object.js";s:9:"#requires";a:3:{i:0;a:3:{i:0;s:6:"common";i:1;s:13:"dijit._Widget";i:2;s:5:"dijit";}i:1;a:2:{i:0;s:6:"common";i:1;s:17:"dojox.embed.Flash";}i:2;a:2:{i:0;s:6:"common";i:1;s:21:"dojox.embed.Quicktime";}}s:18:"dojox.embed.Object";a:5:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:13:"dijit._Widget";}s:4:"call";a:1:{i:0;s:13:"dijit._Widget";}}s:7:"summary";s:64:"A widget you can use to embed either a Flash or Quicktime movie.";s:8:"examples";a:2:{i:0;s:80:"From markup:
";i:1;s:86:"Programmatic: var mov=new dojox.embed.Object({ src: "path/to/movie.swf" }, node);";}s:9:"classlike";b:1;}s:24:"dojox.embed.Object.width";a:4:{s:9:"prototype";s:18:"dojox.embed.Object";s:8:"instance";s:18:"dojox.embed.Object";s:4:"type";s:6:"Number";s:7:"summary";s:75:"The width of the movie. If not provided, the width of this.domNode is used.";}s:25:"dojox.embed.Object.height";a:3:{s:9:"prototype";s:18:"dojox.embed.Object";s:4:"type";s:6:"Number";s:7:"summary";s:77:"The height of the movie. If not provided, the height of this.domNode is used.";}s:22:"dojox.embed.Object.src";a:3:{s:9:"prototype";s:18:"dojox.embed.Object";s:4:"type";s:6:"String";s:7:"summary";s:30:"The URL of the movie to embed.";}s:24:"dojox.embed.Object.movie";a:4:{s:9:"prototype";s:18:"dojox.embed.Object";s:8:"instance";s:18:"dojox.embed.Object";s:4:"type";s:9:"HTMLEmbed";s:7:"summary";s:125:"The eventual reference to the movie embedded. If you are looking to script control over the movie, you'd access it this way.";}s:25:"dojox.embed.Object.params";a:4:{s:9:"prototype";s:18:"dojox.embed.Object";s:8:"instance";s:18:"dojox.embed.Object";s:4:"type";s:6:"Object";s:7:"summary";s:188:"A property bag that is created postCreate. Any additional attributes you define on your domNode will be collected and placed into this, which will then be passed to the movie constructor.";}s:26:"dojox.embed.Object.reFlash";a:3:{s:9:"prototype";s:18:"dojox.embed.Object";s:4:"type";s:6:"RegExp";s:7:"summary";s:79:"Expression used on the src property to determine if this is Flash or Quicktime.";}s:28:"dojox.embed.Object.reQtMovie";a:3:{s:9:"prototype";s:18:"dojox.embed.Object";s:4:"type";s:6:"RegExp";s:7:"summary";s:79:"Expression used on the src property to determine if this is Flash or Quicktime.";}s:28:"dojox.embed.Object.reQtAudio";a:3:{s:9:"prototype";s:18:"dojox.embed.Object";s:4:"type";s:6:"RegExp";s:7:"summary";s:79:"Expression used on the src property to determine if this is Flash or Quicktime.";}s:29:"dojox.embed.Object.postCreate";a:4:{s:9:"prototype";s:18:"dojox.embed.Object";s:4:"type";s:8:"Function";s:6:"source";s:2926:"dojo.provide("dojox.embed.Object"); dojo.experimental("dojox.embed.Object"); dojo.require("dijit._Widget"); dojo.require("dojox.embed.Flash"); dojo.require("dojox.embed.Quicktime"); dojo.declare("dojox.embed.Object", dijit._Widget, { // summary: // A widget you can use to embed either a Flash or Quicktime // movie. // // example: // From markup: // | // // example: // Programmatic: // | var mov=new dojox.embed.Object({ // | src: "path/to/movie.swf" // | }, node); // // width: Number? // The width of the movie. If not provided, the width of this.domNode is used. // height: Number? // The height of the movie. If not provided, the height of this.domNode is used. // src: String // The URL of the movie to embed. // movie: HTMLEmbed // The eventual reference to the movie embedded. If you are looking to script // control over the movie, you'd access it this way. // params: Object // A property bag that is created postCreate. Any additional attributes you // define on your domNode will be collected and placed into this, which will // then be passed to the movie constructor. // reFlash: RegExp // Expression used on the src property to determine if this is Flash or Quicktime. // reQtMovie: RegExp // Expression used on the src property to determine if this is Flash or Quicktime. // reQtAudio: RegExp // Expression used on the src property to determine if this is Flash or Quicktime. width: 0, height: 0, src: "", movie: null, params: null, reFlash: /\.swf|\.flv/gi, reQtMovie: /\.3gp|\.avi|\.m4v|\.mov|\.mp4|\.mpg|\.mpeg|\.qt/gi, reQtAudio:/\.aiff|\.aif|\.m4a|\.m4b|\.m4p|\.midi|\.mid|\.mp3|\.mpa|\.wav/gi, postCreate: function(){ // summary // Constructs the movie and places it in the document. if(!this.width || !this.height){ // get the width and height from the domNode var box=dojo.marginBox(this.domNode); this.width=box.w, this.height=box.h; } // the default embed constructor. var em=dojox.embed.Flash; // figure out what kind of movie this is. if(this.src.match(this.reQtMovie) || this.src.match(this.reQtAudio)){ em=dojox.embed.Quicktime; } // loop through any attributes and set up our params object. if(!this.params){ this.params={}; if(this.domNode.hasAttributes()){ // ignore list var ignore = { dojoType: "", width: "", height: "", "class": "", style: "", id: "", src: "" }; var attrs=this.domNode.attributes; for(var i=0, l=attrs.length; i