Problem opening SWF file in ExtJS 2.3

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vibhakhushi
    New Member
    • Mar 2010
    • 33

    Problem opening SWF file in ExtJS 2.3

    Hi All,
    When i try to open the window, i get only the title. When I re-size it manually, I can see the loaded SWF file.
    Please help me in fixing this bug.

    Following is the code:
    Code:
    wizardWin = desktop.createWindow({
    		                id: 'StartWizard/' + expId,
    		                title: 'Wizard: ' + expName,
    						width: win_wd,                
    		                iconCls: 'view_wizard',
    						height: win_ht,
    		                resizable: true,
    		                tbar:tb,
    		                minimizable: false,
    		                draggable:true,
    			            autoScroll:false,
    			            items:[{
    			                	xtype: 'flashpanel',
    			                    border :true,
    			                    id: 'flash-wiz',
    					            width: win_wd,
    					            height: win_ht,
    					            hideMode : 'nosize',
    			                    mediaCfg : {
    			                        mediaType:'SWF',
    			                        url: path,
    			                        id: 'flash-wiz',
    			                        start: true,
    			                        controls: true,
    			                        status: true,
    			                    	params: {
    			                        	allowScriptAccess: 'always',
    			                        	wmode: 'opaque',
    			                        	scale: 'exactfit',
    			                        	salign: 't'
    			                    	}
    			                    } 
    			             }]                
    			         });
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5388

    #2
    i assume you use the uxMedia plugin for ExtJs? ... have you tried to set the autosize config option according to the doc?

    Code:
    mediaCfg: {Object}
         { mediaType : mediaClass defined by ux.Media.mediaTypes[mediaClass]
          ,url       : Url resource to load when rendered
          ,requiredVersion : may specify a specific player/plugin version (for use with inline plugin updates where implemented)
          ,loop      : (true/false) (@macro enabled)
          ,scripting : (true/false) (@macro enabled)
          ,start     : (true/false) (@macro enabled)
          ,volume    : (number%, default: 20 ) audio volume level % (@macro enabled)
          ,height    : (default: 100%) (@macro enabled)
          ,width     : (default: 100%) (@macro enabled)
          ,scale     : (default: 1) (@macro enabled)
          ,status    : (default: false) (@macro enabled)
          ,autoSize  : (true/false) If true the rendered <object> consumes 100% height/width of its
                         containing Element.  Actual container height/width are available to macro substitution
                         engine.
          ,controls  : optional: show plugins control menu (true/false) (@macro enabled)
          ,unsupportedText: (String,DomHelper cfg) Text to render if plugin is not installed/available.
          ,listeners  : {"mouseover": function() {}, .... } DOM listeners to set each time the Media is rendered.
          ,params   : { }  members/values unique to Plugin provider
         }

    Comment

    • vibhakhushi
      New Member
      • Mar 2010
      • 33

      #3
      Yes gits. I am using uxMedia plugin. I tried setting autoSize but still the same error. Only title is visible.

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5388

        #4
        then you might try to wrap that in a fit-layout - you might use a surrounding border-layout or another panel with the layout: 'fit', config.

        Comment

        Working...