-
1. Re: Mediaoutput to play flash
sen.cool Aug 25, 2009 9:55 AM (in response to sen.cool)The code used by me is the same as in demo.
<a4j:outputPanel id="flashPanelDynamic">
<a4j:mediaOutput element="a" id="swfLink" style="display: none;" cacheable="false" session="true"
createContent="#{mediaBean.paint}" value="http://ads.diga.stage.adobe.com.s3.amazonaws.com/4/Asset10015_6_1251103832924.swf" />
<a4j:outputPanel layout="block" id="myFlashContent" style="width: 200px; height: 200px">
</a4j:outputPanel>
var flashvars = {};
var params = {};
var attributes = {};
swfobject.embedSWF(#{rich:element('swfLink')}.href, "#{rich:clientId('myFlashContent')}", "200", "200", "9.0.0", false, flashvars, params, attributes);
</a4j:outputPanel> -
2. Re: Mediaoutput to play flash
sen.cool Aug 25, 2009 9:58 AM (in response to sen.cool)Sorry.javascript code was not displayed in the previous post.
var flashvars = {};
var params = {};
var attributes = {};
swfobject.embedSWF(#{rich:element('swfLink')}.href, "#{rich:clientId('myFlashContent')}", "200", "200", "9.0.0", false, flashvars, params, attributes);
This is the same as in demo. I just copied from the demo. But i am getting the error. -
3. Re: Mediaoutput to play flash
ilya_shaikovsky Aug 25, 2009 10:09 AM (in response to sen.cool)JSP not allows such EL usage inside script. use document.getElementById('formId:swfLink') instead to get element.