ASPX templates
Version 5.x > ASPX templates > SWF problem: Anyone know how to force wmode to stay as a parameter on a flash file? View modes: 
User avatar
Member
Member
jshapiro-hodesiq - 3/30/2010 7:13:37 PM
   
SWF problem: Anyone know how to force wmode to stay as a parameter on a flash file?
Hi All,

I'm having trouble finding a way to embed a flash file (SWF) with a parameter that is more than height & width the kentico's pseudocode supports.

When you insert a SWF into a page, it generates code like this (kentico code) (I am using a static HTML web part if it matters):


{^Media|(type)swf|(url)http://www.hodesiq.com/Flash/hodesiQ_main.aspx?ext=.swf|(width)930|(height)225^}

which rips the appropriate code on the page.

However, the web page needs the wmode to be set to transparent (so some drop down menus can work)

THe code "should" render with:

<param name="quality" value="high" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="menu" value="false" />
<param name="scale" value="default" />
<param name="wmode" value="transparent" />

but I can't made the wmode stick in the kentico pseudocode.

Anyone run into this?

thanks,
j

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 4/1/2010 7:17:50 AM
   
RE:SWF problem: Anyone know how to force wmode to stay as a parameter on a flash file?
Hi,


Regrettably, we do not support this parameter in the current version.

You can ensure this functionality in Page_PreRender method in ~/CMSInlineControls/MediaControl.ascx.cs control. Particularly in following part of code:

else if (MediaHelper.IsFlash(this.Type))
{
CreateFlash();
}

You can either remove CreateFlash(); method and define full custom code for flash, or you can leave this method here and then just modify generated HTML code in this.ltlMedia.Text property after calling this method.

You can inspire by code for custom FLV object as described at Defining custom media types documentation


Best regards,
Helena Grulichova