Embedded swf does not play - Using IIS - html

I have a SWF file called myswf.swf...
If i Drag and Drop the file into my Browser, it runs normaly and i can click buttons in it.
But if i embed this SWF file with this code:
<object width="850" height="688">
<embed src="myswf.swf" allowScriptAccess="always" type="application/x-shockwave-flash" width="850" height="688"></embed>
</object>
it displays the swf file and "mouse of buttons" works but i cant click the buttons (nothing happens if i click a button).
i also included the "swfobject.js" but doesnt do anything.
Is my problem understandable?
Thx for answers.

Have a look at the example from documentation:
http://code.google.com/p/swfobject/wiki/documentation
and at this thread:
How to embed a SWF file in an HTML page?

Related

Youtube video isn't showing in Chrome, but shows in Firefox

Thank you for your help.
On my site I am embedding youtube videos. Where the video is suppose to be it isn't showing up, in chrome. It works on a macs and it also works on PCs, but only on firefox. Where the video is suppose to be you can "click" on the video and it will start playing, but it is not visible. How do I get it to show up. I thought it might be hiding behind stuff, so I messed with some z-index stuff, but it isn't working. Is there something else I should be looking at?
This is how the code is:
<object type="application/x-shockwave-flash" id="myytplayer" data="https://www.youtube.com/v/FJqOb-TS-0o&enablejsapi=1&playerapiid=ytplayer&version=3&controls=0&showinfo=0&rel=0" width="500" height="348">
<param name="allowScriptAccess" value="always">
</object>
The video is being pulled from my data base, but is being hosted by YouTube.
Here is the code on firefox:
<object id="myytplayer" width="500" height="348" type="application/x-shockwave-flash" data="https://www.youtube.com/v/FJqOb-TS-0o&enablejsapi=1&playerapiid=ytplayer&version=3&controls=0&showinfo=0&rel=0">
<param name="allowScriptAccess" value="always">
</object>
I have tried updating my flash drives to see if that is a problem. I have deleted my cookies. I have even had other people try it out and it just doesn't show up in chrome. Any help would be awesome.
Both your snippet of codes works fine in my Chrome 34 Windows 8.1 machine. Not sure where your issue is coming from. Maybe a system/network/proxy settings specific to Chrome on machines where you are trying from (sometimes Youtube URL are banned from company network).
I would point to the Youtube documentation anyway. Maybe trying another form of embed can help:
Best practice: IFrame embeds are the recommended method for embedding a YouTube player because the IFrame will select the appropriate player based on the client's capabilities and available YouTube file formats.
If you use the object tag you should have an embed tag falback inside (see the doc).

how to embed .swf (in html) so it can be visible in mobile browser?

I have a .swf file that is currently embed in my Web site , i try to use this codes:
<object data="media/images/animacija-mkd.swf" type="application/x-shockwave-flash" width="843" height="240" style="undefined" id="Unior" name="Unior">
<param name="movie" value="media/images/animacija-mkd.swf" />
<!-- If flash is not installed -->
<p>You need Adobe Flash Player to view this content</p>
</object>
Before that code i try to use:
<embed type="application/x-shockwave-flash" src="media/images/animacija-mkd.swf" width="843" height="240" style="undefined" id="Unior" name="Unior" quality="high" wmode="opaque" bgcolor="#0655B8" />
But with both embed codes when i open the website from ipad or mobile chrome-firefox browsers it cant be loaded (visible), except from firefox where u must click on the banner where it sais: "Tap here to activate plugin"
I try using Google Swiffy but when i convert my .swf file via google-swiffy its not looking good as it is now, its gettin slower to load and etc...
I also try to use CreatJS (in Adobe CS6 Flash Pro) but that way somehow my .fla file using background images, some text and etc.
Is there any other way to embed my .swf so it will be visible on smartphones or tablets ?
iOS doesn't support Flash, so you need to use Html5.
maybe try this, but writing the html5 version by yourself is the best option :)

AS3 .swf file not playing or previewing when uploaded to server

Help needed.
I have a .swf file of a flash game created using AS3. I have added it to a HTML file using object tag. When I test file locally in a browser window on my MAC it plays .swf file. The file is contained in the same folder as html file. When I upload it to server and review on FF/Chrome/Safari it will only display white boxes.
Previously I tried using jquery swfobject, same issue.
I've stripped down the code to bear minimun and used to different examples found online and am having no luck.
Code Sample:
<!DOCTYPE html>
<html>
<body>
<object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash /swflash.cab#version=8,0,0,0">
<param name="SRC" value="BodyShopGame.swf">
<embed src="BodyShopGame.swf"></embed>
</object>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="339" height="513">
<param name="movie" value="BodyShopGame.swf">
<embed src="BodyShopGame.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="339" height="513"></embed>
</object>
</body>
</html>
Site Link: http://www.stellacurley.com/flashtest.html
I've also tested on a PC and issue is the same. I know I have overlooked something obvious but have spent a long time trying to figure out the answer. I'm new to this, so any help would be much appreciated thanks.
A white box commonly indicates the movie failed to load. Use your browser's developer console to see if the request for the SWF is returning a 404 (file not found) error.
Checklist:
Ensure you're using the correct path to the SWF
Ensure your SWF has been uploaded
Ensure your SWF is properly named (case-sensitive on some servers)
Ensure your server is configured to host SWF files (mime type application/x-shockwave-flash should be enabled)

Issue in streaming mov file in browsers using quicktime player plugin

I am embedding .mov file in the webpage using following HTML code
<embed border="1"
autoplay="false"
cache="false"
loop="false"
setcontrollervisible="true"
scale="tofit"
src="movie.mov"
controller="true"
qtsrc="movie.mov"
type="video/quicktime">
</embed>
In this case the video is first totally downloaded and then played in browser. Forsome videos size is around 100MB and so it takes huge amount of time to first download and then play.
Is there any way to force browser to only stream video and not to download and play?
I found the solution. It was issue with my video file.
"The MOOV atom, an important piece of metadata needed to make it progressively playable, was located at the end of the file. It needed to be at the beginning".
I used "qt-faststart" program to arrange atoms and it is working.

Flash SWF not playing!

I created a custom video skin for my movie, and published the swf. The file plays on my Mac (using Flash player v9) but it will not play on my PC (using Flash player 10). When I uploaded it to the host, neither players will play the swf. The bitmaps in the flash file show up, but the movie won't play. I don't know if it is how I exported it or what, but it will not play! Any Idea why this is happening?
The video is hosted here:
http://hqinternetsolutions.com/YOGIPATCH/index.html
Here is my Actionscript:
flvPlayback.playPauseButton = playpausebtn;
flvPlayback.muteButton = mutebtn;
flvPlayback.volumeBar = volbar;
flvPlayback.seekBar = seekbar;
And my HTML embedded flash:
<div id="movie">
<object id="movie" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="440" height="273">
<param name="movie" value="file.swf">
<param name="quality" value="high">
<embed src="file.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="440"
height="273"></embed></object>
</div>
Just had a look using Firebug. Your swf appears to be referencing the following URL:
http://hqinternetsolutions.com/Users/larrykain/Desktop/flash%20skin/fullaquatic.flv
It's returning a 404 so it can't find the file. Looking at the URL, check the reference to how you've embedded it in the swf file.
This might be caused by different things:
Make sure the flv file is uploaded to the server along with the SWF.
Your FLV file might be blocked on the web server. Make sure it's not by pointing your browser to the actual FLV file directly (example: http://hqinternetsolutions.com/YOGIPATCH/myvideo.flv)
The flv path set in the FLVPlayback component might be too long.
Try adding a preceding / to the path of FLV in the component.