Forums

Home » Liferay Portal » English » x. Miscellaneous

Combination View Flat View Tree View
Threads [ Previous | Next ]
Rahul Mantri
Embed flex4 .swf in Liferay portlet "view.jsp"
October 10, 2011 7:07 AM
Answer

Rahul Mantri

Rank: New Member

Posts: 4

Join Date: February 9, 2011

Recent Posts

Hi,
I want to embed the .swf file created using flex 4 into the view.jsp of Liferay portlet.
Here is the code that i am using to embed the same.
<portlet:defineObjects />
<object classid="clsidemoticon27CDB6E-AE6D-11cf-96B8-444553540000"
id="Dashboard" width="100%" height="100%"
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
<param name="movie" value="Dashboard.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#FFFFFF" />
<param name="allowScriptAccess" value="sameDomain" />
<param name="src" value="Dashboard.swf" />

<embed src="Dashboard.swf" quality="high" bgcolor="#FFFFFF"
width="100%" height="100%" name="SaaSDashboard" align="middle"
play="true"
loop="false"
quality="high"
allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer">
</embed>
</object>

With the code above, my portlet's size changes as per the value in object tag but i dont see my flex application . The portlet goes blank with white background emoticon
Am I missing something here? Please help