Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Flash Problem View modes: 
User avatar
Member
Member
michael-thefamousgroup.com - 2/9/2010 1:19:42 AM
   
Flash Problem
Hi

When you insert Flash SWF files through the "insert/edit image or media" control it automatically creates the following code within the source of the page:

<param name="movie" value="FILE.swf?ext=.swf" />
<param name="quality" value="high" />
<param name="play" value="false" />
<param name="loop" value="false" />
<param name="menu" value="false" />
<param name="scale" value="default" />

Our Flash files are intended to work full screen so we need to add the following line to that code:

<param name="allowFullScreen" value="true" />

How can we achieve that?

Thanks
Michael

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 2/12/2010 9:49:19 AM
   
RE:Flash Problem
Hello,

You can ensure this 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 in Defining custom media types article.

Best Regards,

Martin Dobsicek