Foren

Embed flash in Web Content Display

lucky singh, geändert vor 11 Jahren.

Embed flash in Web Content Display

Junior Member Beiträge: 25 Beitrittsdatum: 30.07.12 Neueste Beiträge
I have a requirement where in a page is to be duplicated. This page has several image appearing with effects. It has images path stored in xml file & effects in flash files. I am using web content display, when i include just the plain swf files output is blank . I have included other .swf files in flash link they are working fine.But this .swf files need images so its blank. I have tried making a portlet, passing images in array and then giving transitions through javascript but the same effect is not achieved more over when i include portlet in my website my theme & other WCD is disturbed so i have dropped portlet way. But other than this how can the image be passed to WCD on a flash link.Please help as how the image & flash to be embeded in web content display.

My Actual page has xml :
<!--?xml version="1.0" encoding="utf-8" ?--> 
- <slides>
  <slide imageUrl="/images/home/A_397x930px.jpg" /> 
  <slide imageUrl="/images/home/B_397x930px.jpg" /> 
  <slide imageUrl="/images/home/C_397x930px.jpg" /> 
  <slide imageUrl="/images/home/D_397x930px.jpg" /> 
  </slides>


My flash code :
<script language="javascript" type="text/javascript">
var so = new SWFObject("/andiosp-flash.swf", "mymovie", "930", "398", "8", "#ffffff"); so.addParam("quality", "high");so.addParam("wmode", "transparent");so.addParam("allowFullScreen", "true");so.addParam("salign", "t");so.write("flashcontent");</script>


Any help is appreciated
thumbnail
Bart Simpson, geändert vor 11 Jahren.

RE: Embed flash in Web Content Display

Liferay Master Beiträge: 522 Beitrittsdatum: 29.08.11 Neueste Beiträge
Just an idea: -

I would suggest passing the images path like http://helpx.adobe.com/flash/kb/pass-variables-swfs-flashvars.html
You can create a structure of wcd and with attach image option. And when creating the web content apply structure and select images.
Create template and add the code as described in the link from adobe. You can get the image source path directly in template from structure variables, or use saxParserUtil to parse the xml and read path.
lucky singh, geändert vor 11 Jahren.

RE: Embed flash in Web Content Display

Junior Member Beiträge: 25 Beitrittsdatum: 30.07.12 Neueste Beiträge
I have stored all images in image repository. Now how can flash code access the folder.Please help.
thumbnail
Bart Simpson, geändert vor 11 Jahren.

RE: Embed flash in Web Content Display

Liferay Master Beiträge: 522 Beitrittsdatum: 29.08.11 Neueste Beiträge
You have placed them in image repository ? Is it not an option to place it into liferay's document library?
Otherwise their links have to be hardcoded in the template.
lucky singh, geändert vor 11 Jahren.

RE: Embed flash in Web Content Display

Junior Member Beiträge: 25 Beitrittsdatum: 30.07.12 Neueste Beiträge
Yes the same. While creating wcd, image icon has option to upload images and it get store there. You mean the same right.
thumbnail
Bart Simpson, geändert vor 11 Jahren.

RE: Embed flash in Web Content Display

Liferay Master Beiträge: 522 Beitrittsdatum: 29.08.11 Neueste Beiträge
No, I meant the structure fields. You can create a structure ion liferay and add a repetable image button and give it a name. So when creating the web content, you can use upload multiple images, and in the template get the url by somevariablename.getUrl()