width = size[0];
if (height < size[1])
height = size[1];
jpegIn.close();
}
Movie movie = new Movie(width, height, 1, 5, null);
for (int i = 0; i < image.length; i++) {
if (DelayTime[i] > 1000) {
for (int j = 0; j < (DelayTime[i]) / 1000; j++) {
Frame frame = movie.appendFrame();
frame.placeSymbol(image[i], 0, 0);
}
} else {
Frame frame = movie.appendFrame();
frame.placeSymbol(image[i], 0, 0);
}
}
// Http输出
((HttpServletResponse) Desc)
.setContentType("application/x-shockwave-flash");
((HttpServletResponse) Desc).setHeader("Content-Disposition",
" filename=animate.swf");
ServletOutputStream out = ((HttpServletResponse) Desc)
.getOutputStream();
movie.write(out);
out.flush();
out.close();
}
}