how link a swf file with a image click event - html

i want create a simple video gallery , where many images show in tables and when we click on any image related swf file play on that place..
here is my swf file -
<embed src="intro.swf" height="200" width="200">
i tried this but not work-
<a href=<embed src="intro.swf" width="200" height="200">
<img border="0" src="5.jpg" width="340" height="185"><p>If you cannot see this, your computer doesn't support the format</p>
</a>

This is the embed tag
<embed src="helloworld.swf">
And you can see the working demo from w3schools here .
The reason you can't open may :
You may given the file path as wrong
You may given wrong permissions to the folder that contains the .swf file

Related

how should we link videos and audios on our html file?

<video width="500" height="500" controls="contrlos">
<source src="hope.mp4" type="video/mp4">
</video>
this is the code I tried on vscode, the video file is stored in my drive c, but I don't know why when I run it, it doesn't work, and I cannot play the video. by the way I open it in Chrome. and when I google a video and copy the link address in src="" the same problem repeat. does the audio and video files we want to put in html need to be stored in a special place in my computer?? plz help me! I'm beginner.
There are 2 solutions of this problem:
Keep the video file in same folder where you have stored your html file or
Wrrite the full path of the video file where you have stored.

Is it possible to use Ruffle within an Iframe?

So ive been trying to use Ruffle (a flash emulator written in Rust) on a website for some flash games. This works like a charm with flash games in my website source files, but it doesnt work for iframes. This is the code that ive been trying to get working, but at this point im not sure if its possible at all. any help?
<script src="ruffle/ruffle.js"></script>
<iframe id="cppscreatorCPPS" src="https://play.cppscreator.xyz/embed/24436" scrolling="no" width="960" height="600" frameborder=0></iframe>
<br /><br />```
Instead of an <iframe>, I would recommend you used an <object> and <embed>component. I will leave a code snippet below (You need to replace the value of the param and the src of the embed with your swf file link. In your case, it is the play.cppscreator.xyz/embed link. ). Also, you are using cppscreator.xyz, which does not really work, as it is not an SWF file.
<script src="https://flash-games.penguinbotcoder.repl.co/ruffle/ruffle.js"></script>
<object width="600" height="400">
<param name="movie" value="https://flash-games.penguinbotcoder.repl.co/flashgames/thinice.swf">
<embed src="https://flash-games.penguinbotcoder.repl.co/flashgames/thinice.swf">
</embed>
</object>

Embedding SWF file in HTML5 - How to add alternative content?

I'd like to embed an SWF file in HTML5. It works fine with this code:
<embed src="main.swf" width="550" height="400" />
But how could I show alternative content (an animated GIF image, or a static JPEG or PNG) just in cases which swf file is not supported (and still validating in w3! ;) )
Thank you!
Use the object tag instead of the embed tag like so:
<object width="550" height="400" data="main.swf">Alertnative Content Here</object>
See: EMBED vs. OBJECT

Embedded swf does not play - Using IIS

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?

html link in swf object

I have a swf file but I dont have the source. I need to add a link to the object swf but I dont know how. I need to do something like this:
<a href='http://www.mypage.com'><object ....> </a>
is there a way to achieve this?
Thanks in advance
You have to embed it:
<embed width="550" height="400" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://www.mypage.com" quality="high"></embed>
And then change the src attribute into the website where your swf is uploaded.