0

I have a flash object as following

<object data="http://www.learnenglish.org.uk/kids/antics/monkey.swf" width="250" height="200"></object>

I want to make the flash file clickable without letting the flash play, so when the user click in its area navigate to the page that display it.

2
  • 1
    do that with a simple anchor, and an image. Commented Apr 6, 2015 at 13:22
  • @Aristos sorry I don't have the image and I can't add it. thanks for comment Commented Apr 6, 2015 at 16:03

2 Answers 2

2

Take a screenshot of your Flash file, some frame you think best represents the file. Perhaps use an image editor to add a title or other graphic.

Then you have the image, wrapped in an anchor:

<a href='/path/to/page/of/flash/file/'>
  <img src='/path/to/image' />
</a>
Sign up to request clarification or add additional context in comments.

7 Comments

Actually I have a dynamic website, so the user can only upload the game file, I have heard about div overlay so I can make div over div and make the second div clickable but I don't know who to apply this approach.
@Moatasembk Well, you can allow the user to upload their own screenshots (best option, and use a stock placeholder if they don't provide a screenshot). Or you can try to process the file on the server and generate an image. I don't think overlaying the flash is going to be a good use of resources.
I'm a little bit confused, the provided database doesn't allow uploading additional info like image, I have tried to manipulate the flash file and get the first frame but with no luck, I have tried swfdotnet and ffmpeg, but both doesn't work for me.
@Moatasembk So modify the database? Or ask a new question about how to obtain the image using one of those libraries (including the code you attempted)?
modifying the database is not my work, in according to the second question I have did that before.. stackoverflow.com/questions/29417337/…
|
0

I have done what I want by using Div overlay

<div style="cursor: copy; position: relative; z-index: 1">   
   <div id="overlay" onclick="window.alert('hi')" style="opacity: 0; sition: absolute; top: 0; bottom: 0; left: 0; right: 0; display: block; z-index: 2; background-color: red">
   </div>
   <object data="Handler.ashx?gameId" width="250" height="200"></object>
</div>

If anyone have another solution please post it.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.