-
24 Jan 2008 7:16 AM #11
@kenshin - Thanks. Yes I'm still playing with the Office suite trials
"be dom-ready..."
Doug Hendricks
Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.
Got Sencha licensing questions? Find out more here.
-
24 Jan 2008 10:12 AM #12
Doug -
You save me too much time... I feel like you should be on the payroll!
(not that I could afford you
)
anyways... I'm trying to use this like:
but nothing is showing up in the panel... any idea?PHP Code:
{
id:'clockPortlet',
xtype: 'flashpanel',
title: 'Clock',
hideMode : 'visibility',
height: 150,
autoWidth: true,
collapsible:true,
border:true,
mediaType:'SWF',
url: '/media/flash/clock.swf',
controls:true,
start:true
}
-
24 Jan 2008 10:20 AM #13
Still need the mediaCfg for 'flashpanel':
I take checks!Code:{ id:'clockPortlet', xtype: 'flashpanel', title: 'Clock', hideMode : 'visibility', height: 150, autoWidth: true, collapsible:true, border:true, mediaCfg:{ url: '/media/flash/clock.swf' ,controls:true ,start:true //Commas MUST be on the other side :)) ,width: 150 ,height:150 ,params: { wmode : 'transparent' } //might want this too. } }
"be dom-ready..."
Doug Hendricks
Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.
Got Sencha licensing questions? Find out more here.
-
24 Jan 2008 10:29 AM #14
-
24 Jan 2008 10:39 AM #15
The seemingly redundant w,h is for the embedded <object> element itself, not its container (Panel.body).
Looking ahead you might want to handle w/h with CSS. Each mediaType has a classNames generated for it as well:
#SWFClock.x-media-swf { ... }Code:mediaCfg:{ url: '/media/flash/clock.swf' ,id : 'SWFClock' ,controls:true ,start:true ,width: 150 ,height:150 ,params: { wmode : 'transparent' } //might want this too. }"be dom-ready..."
Doug Hendricks
Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.
Got Sencha licensing questions? Find out more here.
-
24 Jan 2008 10:50 AM #16
As long as the object defaults to 100% w/h then I'm happy with it (seems to be the case)
Thanks, btw This works for me:
PHP Code:{
id:'clockPortlet',
xtype: 'flashpanel',
title: 'Clock',
height: 150,
autoWidth: true,
collapsible:true,
border:true,
mediaCfg:{
mediaType:'SWF',
url: '/media/flash/clock.swf',
controls:true,
start:true
}
}
-
24 Jan 2008 10:54 AM #17
MediaPanel.Flash ignores the mediaType as it's known by the class anyway.
For what you're doing, this would be equivalent:
Code:{ id:'clockPortlet', xtype: 'mediapanel', title: 'Clock', height: 150, autoWidth: true, collapsible:true, border:true, mediaCfg:{ mediaType:'SWF', //here it would be required url: '/media/flash/clock.swf', unsupportedText:'You need Flash to tell the time.', controls:true, start:true } }"be dom-ready..."
Doug Hendricks
Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.
Got Sencha licensing questions? Find out more here.
-
24 Jan 2008 11:14 AM #18
Gotcha ...
Anyways, I think I might have found a bug, where this panel covers the next item [panel]'s header when expanded.


...hmm...
-
24 Jan 2008 11:23 AM #19
Unfortunately the nature of portlets requires hideMode:'display' in order for collapse to work (reflow) as designed.
try putting that params:{wmode : 'transparent'} in the mediaCfg.
or
or Extend MediaPanel to create a MediaPortlet as in the Portlet examples. I believe it has anchor in there, no ?
Short of that, post more of your Portlets code."be dom-ready..."
Doug Hendricks
Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.
Got Sencha licensing questions? Find out more here.
-
24 Jan 2008 11:33 AM #20
params:{wmode : 'transparent'}
resulted in this:

The thing is, the clock is not defined as "portlet" The portal is beneath:
PHP Code://init Sidebar
new Ext.Panel({
region: 'east',
title: "Sidebar",
id: 'SideBarPanel',
layout: 'rowfit',
split: true,
width: 250,
minSize: 250,
maxSize: 250,
titlebar: true,
collapsible:true,
animate: true,
border: false,
frame: true,
tbar : ['->',
{
id: 'addWidgetbtn',
text: 'Add Widget',
handler:dsExt.widgetDialog,
cls: 'x-btn-text-icon',
icon: dsExt.vars.ImgPath+'silk/cog_add.png',
tooltip:'Add Widgets to Your Sidebar'
}],
items: [{
id:'clockPortlet',
xtype: 'flashpanel',
title: 'Clock',
height: 150,
autoWidth: true,
collapsible:true,
border:true,
mediaCfg:{
mediaType:'SWF',
url: '/media/flash/clock.swf',
controls:true,
start:true,
params:{wmode : 'transparent'}
}
},{
//Portal goes here
xtype:'portal',
autoScroll:true,
items:[{
id: 'SideBarPortal',
columnWidth:.99,
items:[{
title: 'Welcome Message',
plugins: new Ext.ux.MaximizeTool(),
html : '<p>Welcome to the blah blah blah.</p>',
draggable : true,
tools: tools
}]//end portal items def
}]
}]
}),//end Sidebar





Reply With Quote
