首先,我们需要在服务器上安装Flash2Jpeg,可以在这里下载:
http://www.dotnetol.com/blogview.asp?logID=38&cateID=3
解压,然后在运行中输入regsvr32 组件注册该组件。
然后我们就可以进行操作。下面是我写的代码,原压缩包的ASP帮助中有点小错误。
<%
'//***********开始***********
'//author:allen
'//last update date:2004/12/24
'//设置flash所在路径
source=server.mappath("/flash/test.swf")
'//设置flash缩略图输出路径
target=server.mappath("/flash/test.jpg")
'//建立实例
Set Flash2Jpeg = Server.CreateObject("Flash2Jpeg.Flash2Jpeg")
''//生成缩略图
call Flash2Jpeg.Flash2Jpeg(source,120,90,target)
'//注销实例
set Flash2Jpeg=nothing
'//***********结束***********
%>
解压,然后在运行中输入regsvr32 组件注册该组件。
然后我们就可以进行操作。下面是我写的代码,原压缩包的ASP帮助中有点小错误。
<%
'//***********开始***********
'//author:allen
'//last update date:2004/12/24
'//设置flash所在路径
source=server.mappath("/flash/test.swf")
'//设置flash缩略图输出路径
target=server.mappath("/flash/test.jpg")
'//建立实例
Set Flash2Jpeg = Server.CreateObject("Flash2Jpeg.Flash2Jpeg")
''//生成缩略图
call Flash2Jpeg.Flash2Jpeg(source,120,90,target)
'//注销实例
set Flash2Jpeg=nothing
'//***********结束***********
%>