Take a look on my codes:
> <object id="o" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> width="100%" height="100%"> <param name="movie"
> value="cooliris.swf"/> <param name="allowFullScreen" value="true"/>
> <param name="allowScriptAccess" value="never"/>
> <param name="flashvars" value="feed=http://IP/xml/cooliris.xml"/>
> <param name="wmode" value="opaque"/> <embed
> type="application/x-shockwave-flash"
> src="cooliris.swf"
> width="100%"
> height="100%"
> allowfullscreen="true"
> allowscriptaccess="never"
> flashvars="feed=http://IP/xml/cooliris.xml"
> wmode="opaque"> </embed> </object>
It's actually working fine but when i change the path from absolute to relative, the image file is not showing but other image info is shown except only in the image itself. How can i use relative path instead of absolute path?
You may use something like..
var _LOCAL_HOST = window.location.hostname;
$("#o").append('<embed id="embed" width="100%" height="100%" wmode="opaque"
allowscriptaccess="never" allowfullscreen="true" src="cooliris.swf" type="application/x-shockwave-flash"
flashvars="feed=http://'+_LOCAL_HOST+'/xml/cooliris.xml">');
Good luck...
Related
I am trying to show a locally stored PDF document on my MVC Web application.
What I have tried so far is not quite useful. I tried with the object tag in html but it just says : Access denied.
<object type="application/pdf" data="LocalPathToMyFile" width="958" height="726" id="fbContainer" style="visibility: visible;">
<param name="wmode" value="transparent">
<param name="allowScriptAccess" value="always">
<param name="bgcolor" value="#ffffff">
</object>
We put them in an iframe like this.
<iframe id="external" src"yourSource" width="100%" style="background:#FFF; height:100%; margin:0; padding:0; overflow:scroll"></iframe>
if that gives you a similar error probably permisions.
I have looked around, but still have not found a very good answer to my question.
I would like to know how I can embed a flash game into my website Via HTML or Java in order for it to play.
I have the SWF file, but am unable to put the file on the site, so I got this link "https://dl-web.dropbox.com/get/flight.swf?w=AAAYS8vwABuIJB3QbyhV1kSX778W0mXh4xRoQ0ADqm4w6g" that is JUST the flash game
Whats the best way to insert this into my site?
Below is a general script which will embed your flash movie in a html page, theres several ways to do this but below will work just copy and paste the code on to your html page in the body area.Check the adobe website if you need other parameters or more information.
<object id="yourmovie.swf" width="550" height="450" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" align="middle" bgcolor="#ffffff">
<param name="allowScriptAccess" value="sameDomain" />
<param name="quality" value="high" />
<param name="src" value="http://www.yourwebsite/yourmovie.swf" />
<param name="allowscriptaccess" value="sameDomain" />
<param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer" />
<embed id="slots.swf" width="476" height="321" type="application/x-shockwave-flash"src="http://www.yourwebsite/yourmovie.swf"
allowScriptAccess="sameDomain" quality="high" allowscriptaccess="sameDomain"
pluginspage="http://www.macromedia.com/go/getflashplayer" align="middle" bgcolor="#ffffff" />
</object>
To use a link from java my option will be create a button/link thats open another window with the above on that html page
I'm trying to keep our flash for our desktop visitors but made an animated gif solution for ipad users. I have this code below, the gif works great on ipad, and everything works great in Chrome, FFox and Safari, the flash shows as usual -- but realized today that in IE 8 & 9 -- the flash doesn't show anymore.
I would like to know if there is any additional code I can add - to work in IE -- OR, is there another bit of code I can add that will at least add a static image to IE. Obviously, I prefer to have the flash showing in IE again if anyone knows the solution. I thank you much in advance.
<!-- test of alternate image -->
<div id="altimage" style="display:none">
<img src="http://www.kqimageserver.com/kqimages/flash/1ST.gif">
</div>
<div id="aleosoftflash" style="display:block">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="540" height="140">
<param name="movie" value="flashmovie.swf" />
<param name="quality" value="high" />
<param name="allowScriptAccess" value="always" />
<param name="wmode" value="transparent" />
<embed src="https://www.kqimageserver.com/kqimages/flash/July27_2012.swf"
quality="high"
type="application/x-shockwave-flash"
WMODE="transparent"
width="510"
height="300"
pluginspage="http://www.macromedia.com/go/getflashplayer"
allowScriptAccess="always" />
</object>
</div>
<script language="javascript">
if ((navigator.userAgent.match(/iPad/i) != null) || (navigator.userAgent.match(/iPhone/i) != null) || (navigator.userAgent.match(/iPod/i) != null)) { document.getElementById("altimage").style.display = "block"; document.getElementById("aleosoftflash").style.display = "none"; }
</script>
<!-- end test -->
I have a flash object embedded in my website with the embed code that I got from a website. It does not show up in Safari, it's just a blank area where the flash object is supposed to be. What can I do to get the object to show up in Safari? Thanks.
Here is the embedded code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" height="250" width="258" id="sn_player" align="middle">
<param name="allowFullScreen" value="true" />
<param name="allowScriptAccess" value="always" />
<param name="wmode" value="transparent" />
<param name="allownetworking" value="all" />
<param name="bgcolor" value="#000000" />
<param name="movie" value="http://sermonplayer.com/swf/player45.swf">
<PARAM name="flashvars" value="file=http://sermonplayer.com/build_xml_wzd_sn.php?player=12031-recent-.xml&skin=http://sermonplayer.com/swf/modieus_arial_ond.swf&backcolor=#111111&frontcolor=#2ea0aa&lightcolor=#2ea0aa&=Save&player_name=name (no punctuation)&controlbar=bottom&autostart=false&displayclick=play&icons=true&mute=false&repeat=none&shuffle=false&stretching=fill&plugins=&viral.onpause=false" />
<embed src="http://sermonplayer.com/swf/player45.swf" quality="high" height="250" width="260" id="sn_player" align="middle" allowScriptAccess="always" allowfullscreen="true" bgcolor="#000000" wmode="opaque" type="application/x-shockwave-flash" flashvars="file=http://sermonplayer.com/build_xml_wzd_sn.php?player=12031-recent-.xml&skin=http://sermonplayer.com/swf/modieus_arial_ond.swf&backcolor=#000000&frontcolor=#888888&lightcolor=#2ea0aa&=Save&player_name=name (no punctuation)&controlbar=bottom&autostart=false&displayclick=play&icons=true&mute=false&repeat=none&shuffle=false&stretching=fill&plugins=&viral.onpause=false" pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed></object> <img src="http://www.sermonplayer.com/images/poweredby.gif" border="0" height="1px" width="1px">
I tested it in my safari browser in a clean rails app and it worked just fine. I'm using safari 5.2.1, also check to see if your flash player is updated to the latest version.
I would like to know how I can configure my Silverlight application to be able to change the UICulture of the current thread without having to recompile the application.
If I set the current thread culture in the app.xaml, I need to recompile each time to change the culture. If I add an Application Settings, how can I retrieve that information on the client to be able to change the current thread culture info?
any ideas ?
You can the culture from your html or aspx file that hosts the silverlight application. This would not require a recompile of your application but would require a refresh of the web page. This approach is dependent on the Culture Names list. Hope this helps.
Ex:
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
<param name="source" value="ClientBin/SL_Loc_Sample2.xap"/>
<param name="onError" value="onSilverlightError" />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="3.0.40624.0" />
<param name="autoUpgrade" value="true" />
<param name="culture" value="de" />
<param name="uiculture" value="de" />
<!--<param name="culture" value="fr" />
<param name="uiculture" value="fr" />-->
<!--<param name="culture" value="ja" />
<param name="uiculture" value="ja" />-->
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration:none">
<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/>
</a>
</object>