I have a drop down menu and a swf file on an asp.net page. When the menu drops down it is behind the swf file when it should appear in front.
Add the following parameter to the OBJECT tag:
<param name="wmode" value="transparent">
Add the following parameter to the EMBED tag:
wmode="transparent"
(Taken from the Adobe site)
Related
Hi I am trying to load a single page of my WordPress site into a Codeigniter project. But without using iframe. Is it possible?
Ajax call into particular div element ? Or html object tag.. ?
<object style="(width and height in pixels)" type="text/html" data="http://my-wpsite.com" typemustmatch="typemustmatch">
<param name="data" value="http://my-wpsite.com">
Object unavailable at this moment.
</object>
I want a quick and easy (plugin dependent) PDF embedded view, not just a download link for File items.
My custom File schema looks like:
class IBulletin(form.Schema):
...
form.primary('file')
file = NamedBlobFile(
title=_(u"File"),
required=False,
)
class Bulletin(Item):
grok.implements(IBulletin, IFile)
I follow instruction at http://www.kcsts.co.uk/blog/embedded-pdf-in-file-view-with-plone and it works for Archetypes File view, but seems not working for Dexterity File view.
I guess the critical part is within <object ...> and <embed ...>. My trial to the template looks as follows:
<metal:content-core define-macro="content-core"
tal:define="content_type context/file/contentType|nothing;
location string:${context/absolute_url}/##download/file/${context/file/filename};
v python:context.restrictedTraverse('contenttype_utils');">
<object class="viewembededfile" type="application/pdf" data=""
tal:condition="python:content_type.endswith('pdf')"
tal:attributes="data location; width string:100%; height string:900">
Please click here to download the PDF.
<embed src="" class="viewembededfile" type="application/pdf"
tal:attributes="src location">
</embed>
</object>
...
I also tried <object ... attributes="data context/absoulte_url;" and <embed ... attributes="src context/absolute_url" but does not work. It shows only a block with gray background. See the image for reference.
Any advice?
I faced the same problem and after some trial and error, I found out that if I don't include the file name at the end of the location of the pdf file then at least Firefox starts to show the embedded pdf.
<object type="application/pdf"
tal:attributes="data string:${context/absolute_url}/##download/file">
</object>
Same applies for links to the pdf file, with file name a download dialog is shown, and without the pdf file is rendered inside Firefox.
I just built a flex applcation with AS3 only.. the generated swf will expand as much as browser's window..I wish to reduce the dimension of swf file...any ideas?? Thanks..
You may need to specify your swf dimensions eg:
[SWF(width="640", height="480")]
If you're viewing it directly in your browser, you should embed your swf inside an html document and specify the dimensions of your swf.
If this is for a public facing website, I'd recommend using SwfObject.js. Or if you aren't comfortable with Javascript you can use the object tag:
<object width="640" height="480">
<param name="movie" value="your_file.swf">
<embed id="embed" src="your_file.swf" width="640" height="480"></embed>
</object>
I have a Wordpress site that has a large photo slider for the header. Within that slider, I have buttons to launch videos corresponding to the current image. These are being set by custom tags within multiple posts. All the data is being passed correctly (based off of looking at the source code), however, I can only get 1 video to play while the other 2 (3 total) just appear black and won't play anything at all.
Here is my embed code:
<div id="video-block'.$videoID.'" class="video-block-player hide">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'.$video_width[0].'" height="'.$video_height[0].'" id="video'.$videoID.'" name="video'.$videoID.'">
<param name="movie'.$videoID.'" value="player.swf">
<param name="allowfullscreen" value="true">
<param name="allowscriptaccess" value="always">
<param name="wmode" value="transparent">
<param name="flashvars" value="'.$video_link[0].'&autostart=true&icons=false&mute=true">
<embed
type="application/x-shockwave-flash"
id="video'.$videoID.'"
name="video'.$videoID.'"
src="player.swf"
width="'.$video_width[0].'"
height="'.$video_height[0].'"
bgcolor="undefined"
allowscriptaccess="always"
allowfullscreen="true"
wmode="transparent"
flashvars="file='.$video_link[0].'&autostart=true&icons=false&mute=true"
/>
</object>
</div>
The $videoID is being set dynamically to ensure that elements like the div id's are unique, all other variables are being set and pulled from custom tags (and again, appear correct when I view source).
Does anyone have any suggestions as to what I might do to get multiple video players working on a single page? (Please note that I am using JWPlayer, but am not forced to use it if someone has a better solution, but that this embed code is already being launched from within another Plug-In [SlidePress] so plug-in options may not be the best solution.)
Thanks in advance for any and all help!
J
Try Firebug to see what's loading and not loading and what errors you get.
i want to display swf document via Adobe Flash Paper software in our asp.net web page.
can any one describe how i embed flash paper API in .net?
The FlashPaper software produces an .swf file for your document. In order to embed such a document in your web page you need to embed the .swf file via FlashPlayer in your page.
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
WIDTH="550" HEIGHT="400" id="myDocument">
<PARAM NAME=movie VALUE="myFlashPaperFile.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED href="myFlashPaperFile.swf" quality=high bgcolor=#FFFFFF
WIDTH="550" HEIGHT="400" NAME="myDocument" ALIGN=""
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>
Where the example says myFlashPaperFile.swf, you'll need to put the URL where the swf containing your document can be retreived by the player. You also may want to adjust the width, height and bgcolor attributes and parameters. You'll need both the object and embed tags in order to support all browsers.
A good alternative for embedding Flash in web pages is to use SWFObject rather than to create the object/embed tags manually.