我用的是1.5版!刚刚发现错误代码:
<%
'////////////////////////////////////////////////////////////////
'FlashCapture组件抓图,并进行缩放处理演示
'作者:陈林章 2005-1-11
'///////////////////////////////////////////////////////////////
Set FlashCapture = Server.CreateObject("Ironsoft.FlashCapture")
FlashCapture.FileName = Server.Mappath("game.swf")
response.write "<BR>反馈代码:" & FlashCapture.ErrorCode '这里是0
FlashCapture.CaptureFrame = 10
response.write "<BR>反馈代码:" & FlashCapture.ErrorCode '这里是4
Response.write "<BR>TotalFrame:" & FlashCapture.TotalFrame
response.write "<BR>反馈代码:" & FlashCapture.ErrorCode '这里是4
Response.write "<BR>Flash版本:" & FlashCapture.FlashVersion
FlashCapture.Save Server.Mappath("abc.Jpg")
response.write FlashCapture.ErrorCode
FlashCapture.Resize Round(FlashCapture.Width/2), Round(FlashCapture.Height/2)'缩放成原来图片的1/2
FlashCapture.Save Server.Mappath("abc2.Jpg")
'保存图片:图片的全路径,记住有权限的问题,应该把它保存在有权限的目录下面
Set FlashCapture = Nothing
%>
回复 引用