SWF Adverts [message #1016881] |
Thu, 07 March 2013 22:25  |
Eclipse User |
|
|
|
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 #1017487 is a reply to message #1017061] |
Mon, 11 March 2013 19:13  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03621 seconds