ASP.net swf游戏文件预览(缩略图) [英] ASP.net swf game file preview (thumbnail)

查看:330
本文介绍了ASP.net swf游戏文件预览(缩略图)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

情景



我真的需要你的帮助。
我有多个swf游戏文件,我想在页面上查看他们的缩略图,让访客点击它来玩游戏。



需要:



我想要一个可以从swf文件缩略图的工具,也许是文件的第一帧作为图像来查看它。 / p>

也许如果有另一种方式预览asp.net页面中的文件,而不需要以下方式可以更好。



坏消息



我已经查看了StackOverFlow甚至Google上的所有可能的答案,但没有运气,他们带领我以下:




  • 使用: https ://swf.codeplex.com/ :我已经尝试了,现在结果

  • 使用ffmpeg:但是该功能尚不可用,我得到以下内容错误
    'swf:找不到编解码器参数'


解决方案

我已经习惯查看SWF文件,并制作一个div叠加层,以阻止用户与之交互,之后我将该div可点击,以便用户导航到文件页面

 < div style =cursor:pointer;位置:亲戚; z-index:1> 
< div id =overlayonclick =window.location.href ='Game.aspx?gameId = 7'; return false;style =opacity:0;职位:绝对顶部:0;底部:0;左:0;右:0;显示:块; z-index:2; background-color:red>
< / div>
< object data =Handler.ashx?gameId = 7width =250height =200>对象>
< / div>


Scenario:

I really in need for your help. I have multiple swf game files which I want to view them on the page as thumbnails and let the visitor click on it to play the game.

Required:

I want a tool that let make take a thumbnail from swf file, maybe the first frame of the file as image to view it.

maybe if there another way to preview the files in asp.net pages without the need to the following way could be better.

Bad news

I have viewed all the possible answers on StackOverFlow and even on Google but with no luck, they lead my to the following:

  • use: https://swf.codeplex.com/: I have tried it and now result
  • use ffmpeg: but the feature is not available yet, and I'm getting the following error 'swf: could not find codec parameters'

解决方案

I have used to view the SWF file and make a div overlay to stop user interaction with it, after that I have made the div clickable so the user will navigate to the file page

<div style="cursor: pointer; position: relative; z-index: 1">
    <div id="overlay" onclick="window.location.href='Game.aspx?gameId=7'; return false;" style="opacity: 0; position: absolute; top: 0; bottom: 0; left: 0;     right: 0; display: block; z-index: 2; background-color: red">
    </div>
    <object data="Handler.ashx?gameId=7" width="250" height="200"></object>
</div>

这篇关于ASP.net swf游戏文件预览(缩略图)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆