Changeset 14511
- Timestamp:
- 07/18/08 13:42:36 (6 months ago)
- Files:
-
- 1 modified
-
dojox/trunk/flash/_base.js (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dojox/trunk/flash/_base.js
r14310 r14511 102 102 103 103 setSwf: function(/* String */ url, /* boolean? */ visible){ 104 //console.debug("setSwf, url="+url); 104 105 // summary: Sets the SWF files and versions we are using. 105 106 // url: String … … 394 395 // information. Optional value; defaults to false. 395 396 396 // determine our container div's styling397 var containerStyle = "";398 containerStyle += ("width: " + this.width + "px; ");399 containerStyle += ("height: " + this.height + "px; ");400 if(!this._visible){401 containerStyle += "position: absolute; z-index: 10000; top: -1000px; left: -1000px; "; //FIXME: avoid horizontal positioning off-page for BiDi402 }403 404 397 // figure out the SWF file to get and how to write out the correct HTML 405 398 // for this Flash version … … 479 472 var div = document.createElement("div"); 480 473 div.id = this.id + "Container"; 481 div.style = containerStyle; 474 475 div.style.width = this.width + "px"; 476 div.style.height = this.height + "px"; 477 if(!this._visible){ 478 div.style.position = "absolute"; 479 div.style.zIndex = "10000"; 480 div.style.top = "-1000px"; 481 div.style.left = "-1000px"; 482 //FIXME: avoid horizontal positioning off-page for BiDi 483 } 484 482 485 div.innerHTML = objectHTML; 483 486 484 487 var body = document.getElementsByTagName("body"); 485 488 if(!body || !body.length){ … … 508 511 509 512 setVisible: function(/* Boolean */ visible){ 510 //console.debug("setVisible, visible="+visible);513 //console.debug("setVisible, visible="+visible); 511 514 512 515 // summary: Sets the visibility of this Flash object. … … 556 559 // JavaScript, using Flash 8's ExternalInterface. 557 560 _addExternalInterfaceCallback: function(methodName){ 561 //console.debug("addExternalInterfaceCallback, methodName="+methodName); 558 562 var wrapperCall = dojo.hitch(this, function(){ 559 563 // some browsers don't like us changing values in the 'arguments' array, so … … 576 580 // present even in Flash 9. 577 581 _encodeData: function(data){ 582 //console.debug("encodeData, data=", data); 578 583 if(!data || typeof data != "string"){ 579 584 return data; … … 602 607 // present even in Flash 9. 603 608 _decodeData: function(data){ 609 //console.debug("decodeData, data=", data); 604 610 // wierdly enough, Flash sometimes returns the result as an 605 611 // 'object' that is actually an array, rather than as a String; … … 634 640 // create on dojox.flash.comm. 635 641 _execFlash: function(methodName, methodArgs){ 642 //console.debug("execFlash, methodName="+methodName+", methodArgs=", methodArgs); 636 643 var plugin = dojox.flash.obj.get(); 637 644 methodArgs = (methodArgs) ? methodArgs : [];