Changeset 14511

Show
Ignore:
Timestamp:
07/18/08 13:42:36 (6 months ago)
Author:
BradNeuberg
Message:

Fixes #7236

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dojox/trunk/flash/_base.js

    r14310 r14511  
    102102         
    103103        setSwf: function(/* String */ url, /* boolean? */ visible){ 
     104                //console.debug("setSwf, url="+url); 
    104105                // summary: Sets the SWF files and versions we are using. 
    105106                // url: String 
     
    394395                //      information. Optional value; defaults to false. 
    395396                 
    396                 // determine our container div's styling 
    397                 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 BiDi 
    402                 } 
    403  
    404397                // figure out the SWF file to get and how to write out the correct HTML 
    405398                // for this Flash version 
     
    479472                        var div = document.createElement("div"); 
    480473                        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 
    482485                        div.innerHTML = objectHTML; 
    483          
     486 
    484487                        var body = document.getElementsByTagName("body"); 
    485488                        if(!body || !body.length){ 
     
    508511         
    509512        setVisible: function(/* Boolean */ visible){ 
    510           //console.debug("setVisible, visible="+visible); 
     513                //console.debug("setVisible, visible="+visible); 
    511514                 
    512515                // summary: Sets the visibility of this Flash object.            
     
    556559        // JavaScript, using Flash 8's ExternalInterface.  
    557560        _addExternalInterfaceCallback: function(methodName){ 
     561                //console.debug("addExternalInterfaceCallback, methodName="+methodName); 
    558562                var wrapperCall = dojo.hitch(this, function(){ 
    559563                        // some browsers don't like us changing values in the 'arguments' array, so 
     
    576580        // present even in Flash 9. 
    577581        _encodeData: function(data){ 
     582                //console.debug("encodeData, data=", data); 
    578583                if(!data || typeof data != "string"){ 
    579584                        return data; 
     
    602607        // present even in Flash 9. 
    603608        _decodeData: function(data){ 
     609                //console.debug("decodeData, data=", data); 
    604610                // wierdly enough, Flash sometimes returns the result as an 
    605611                // 'object' that is actually an array, rather than as a String; 
     
    634640        // create on dojox.flash.comm. 
    635641        _execFlash: function(methodName, methodArgs){ 
     642                //console.debug("execFlash, methodName="+methodName+", methodArgs=", methodArgs); 
    636643                var plugin = dojox.flash.obj.get(); 
    637644                methodArgs = (methodArgs) ? methodArgs : [];