473,406 Members | 2,259 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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:
Expand|Select|Wrap|Line Numbers
  1. wizardWin = desktop.createWindow({
  2.                         id: 'StartWizard/' + expId,
  3.                         title: 'Wizard: ' + expName,
  4.                         width: win_wd,                
  5.                         iconCls: 'view_wizard',
  6.                         height: win_ht,
  7.                         resizable: true,
  8.                         tbar:tb,
  9.                         minimizable: false,
  10.                         draggable:true,
  11.                         autoScroll:false,
  12.                         items:[{
  13.                                 xtype: 'flashpanel',
  14.                                 border :true,
  15.                                 id: 'flash-wiz',
  16.                                 width: win_wd,
  17.                                 height: win_ht,
  18.                                 hideMode : 'nosize',
  19.                                 mediaCfg : {
  20.                                     mediaType:'SWF',
  21.                                     url: path,
  22.                                     id: 'flash-wiz',
  23.                                     start: true,
  24.                                     controls: true,
  25.                                     status: true,
  26.                                     params: {
  27.                                         allowScriptAccess: 'always',
  28.                                         wmode: 'opaque',
  29.                                         scale: 'exactfit',
  30.                                         salign: 't'
  31.                                     }
  32.                                 } 
  33.                          }]                
  34.                      });
  35.  
Sep 9 '10 #1
3 2315
gits
5,390 Expert Mod 4TB
i assume you use the uxMedia plugin for ExtJs? ... have you tried to set the autosize config option according to the doc?

Expand|Select|Wrap|Line Numbers
  1. mediaCfg: {Object}
  2.      { mediaType : mediaClass defined by ux.Media.mediaTypes[mediaClass]
  3.       ,url       : Url resource to load when rendered
  4.       ,requiredVersion : may specify a specific player/plugin version (for use with inline plugin updates where implemented)
  5.       ,loop      : (true/false) (@macro enabled)
  6.       ,scripting : (true/false) (@macro enabled)
  7.       ,start     : (true/false) (@macro enabled)
  8.       ,volume    : (number%, default: 20 ) audio volume level % (@macro enabled)
  9.       ,height    : (default: 100%) (@macro enabled)
  10.       ,width     : (default: 100%) (@macro enabled)
  11.       ,scale     : (default: 1) (@macro enabled)
  12.       ,status    : (default: false) (@macro enabled)
  13.       ,autoSize  : (true/false) If true the rendered <object> consumes 100% height/width of its
  14.                      containing Element.  Actual container height/width are available to macro substitution
  15.                      engine.
  16.       ,controls  : optional: show plugins control menu (true/false) (@macro enabled)
  17.       ,unsupportedText: (String,DomHelper cfg) Text to render if plugin is not installed/available.
  18.       ,listeners  : {"mouseover": function() {}, .... } DOM listeners to set each time the Media is rendered.
  19.       ,params   : { }  members/values unique to Plugin provider
  20.      }
Sep 11 '10 #2
Yes gits. I am using uxMedia plugin. I tried setting autoSize but still the same error. Only title is visible.
Sep 14 '10 #3
gits
5,390 Expert Mod 4TB
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.
Sep 14 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: vKp | last post by:
I'm having a problem with file(). If I try to open a url of the form "http://example.com/find?one,two", I get an error of the following form: ....failed to create stream: Bad file descriptor... ...
2
by: Eric Caron | last post by:
Hi Here's my problem, I create a windows service with Config.xml file. All setup for my service is in this file. I create a windows application to manage these settings (Config.XML File). This...
14
by: Mike - EMAIL IGNORED | last post by:
Using RH9, from this fragment: fstream theStream_; string fPath = "myFile"; int mode = O_EXCL | O_CREAT; theStream_.open(fPath.c_str(),mode); I get the failure shown below. ...
1
by: Alfons | last post by:
Hello, I have build a program that can do file transferring between a Windows XP computer and a DOS computer via a serial port. The Windows program I have build in C++ with Visual Studio 6.0....
28
by: Madhur | last post by:
Hello what about this nice way to open a file in single line rather than using if and else. #include<stdio.h> void main() { FILE *nd; clrscr();...
5
by: Brad | last post by:
In several aspx applications I export crytal reports to pdf, xls and doc files and then the aspx page writes the selected export file to the client browser. This all works with one small quirk: ...
11
by: aldrin | last post by:
I'm trying to run this code under windows xp sp2 using codeblocks v1.0 compiler with great difficulty.There is no problem with running this under KDevelop in linux. Any help would be greatly...
1
by: Bob Alston | last post by:
Really wierd problem opening a form with selection. I use this code on a button: On Error GoTo Err_Command8_Click Dim stDocName As String Dim stLinkCriteria As String stDocName =...
5
by: bimeldip | last post by:
Hi, I an tryin to create a html page where users can choose a file and open it however, i keep getting it wrong.So far this is wat i've worked on: (open.html) <html> <head> <title>Opening...
6
by: SUNIL TYATA | last post by:
Once the program goes through the while loop which is checking the file existence like in this code #include<iostream> #include<fstream> using name space std; int main() { read_emails();...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.