Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » SWF Adverts(not running in web viewer)
SWF Adverts [message #1016881] Fri, 08 March 2013 03:25 Go to next message
David Good is currently offline David GoodFriend
Messages: 41
Registered: September 2012
Member
HI,

I have a report which I am trying to embed a .swf banner ad.

I have tested the code [below] in a simple webpage and can see the ad from the BIRT designer viewer. I am using BIRT Indigo SP1 and web viewer v4.2.1.

// in text control type HTML

<body>
<object type="application/x-shockwave-flash" style="width:590px; height:90px;" data="C:/Ads/Car-speakers-590x90.swf">
<param name="movie" value="C:/Ads/Car-speakers-590x90.swf" />
<param name="quality" value="high" />
<embed src="C:/Ads/Car-speakers-590x90.swf"
allowscriptaccess="always"
quality="high"
pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash" width="590" height="90">
</embed>
</object>
</body>

I find that it needs the <body> tags to run, which may be the issue. I remove them and try the same file in my web viewer with no success. It creates the sized object, but does not run the .swf.

I assume that I need some sort of Flash plugin but am confused as to why swf plays from the designer and not web viewer. I am running the viewer through Tomcat 7 on localhost and have Adobe Flash Player v11 ActiveX installed.

Can someone please offer some advice?

Thanks,
David
Re: SWF Adverts [message #1017061 is a reply to message #1016881] Fri, 08 March 2013 19:18 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

David

I changed the links to be http instead of being a file pointer and your example worked fine. BTW I changed the body tags to be div tags:
http://localhost:8080/myswffiles/test.swf

Jason
Re: SWF Adverts [message #1017487 is a reply to message #1017061] Mon, 11 March 2013 23:13 Go to previous message
David Good is currently offline David GoodFriend
Messages: 41
Registered: September 2012
Member
HI Jason,

Thanks for your response, they are always appreciated!

I logged on to provide something similar which I worked out. If I place the ads in a directory relative to the html file they are being called from (i.e. in the htdocs directory on Apache HTTP), I can just list the file name:

<DIV>
<object type="application/x-shockwave-flash" style="width:590px; height:90px;" data="Car-speakers-590x90.swf">
<param name="movie" value="Car-speakers-590x90.swf" />
<param name="quality" value="high" />
<embed src="Car-speakers-590x90.swf"
allowscriptaccess="always"
quality="high"
pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash" width="590" height="90">
</embed>
</object>
</DIV>

I believe that that is the same principal as your solution but you have placed the files in htdocs/myswffiles/

Thanks for the div tip, it makes sense.

Cheers,
David
Previous Topic:Different header on the first page of report
Next Topic:Alternative charts for birt
Goto Forum:
  


Current Time: Tue Apr 23 17:12:42 GMT 2024

Powered by FUDForum. Page generated in 0.03482 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top