【散100分】用flex2实现的JSP上传进度条!
这段时间正在学习FLEX2,以前公司用的上传进度条是用AJAX实现的,于是乎有了个新的想法,用FLEX2实现一下看看,结果实现的效果还行!
1、下载fileUpload.swf文件 http://www.v246.com/download/fileUpload.swf
2、下载 fileUploadConfig.xml 上传配置文件 http://www.v246.com/download/fileUploadConfig.xml
3、在您要上传的页面插入下载下来的fielUpload.swf
<object classid= "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 "
id= "fileUpload " width= "578 " height= "70 "
codebase= "http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab ">
<param name= "movie " value= "fileUpload.swf?xmlFile=fileUploadConfig.xml " />
<param name= "quality " value= "high " />
<param name= "bgcolor " value= "#869ca7 " />
<param name= "allowScriptAccess " value= "sameDomain " />
<param name= "WMode " value= "Transparent ">
<embed src= "fileUpload.swf " quality= "high " bgcolor= "#869ca7 "
width= "415 " height= "70 " name= "fileUpload " align= "middle "
play= "true "
loop= "false "
quality= "high "
allowScriptAccess= "sameDomain "
type= "application/x-shockwave-flash "
pluginspage= "http://www.adobe.com/go/getflashplayer ">
</embed>
</object>
注意这其中的: <param name= "movie " value= "fileUpload.swf?xmlFile=fileUploadConfig.xml " />
xmlFile您可以随意指定,这样就可以实现多页面上传共用
4、打开fileUploadConfig.xml文件进行配置,里边有中文注释!
5、OK,现在你可以用了,来张截图:
效果图片:http://www.v246.com/UserFiles/upload.JPG
http://www.sinomic.net 正在实用这个上传进度条:)
因为公司不同意开源,所以就写了一个配置文件!喜欢的就拿去用吧,好久没上CSDN了!
没了!周六还在上班郁闷!
------解决方案--------------------顶,不错!JF
------解决方案--------------------学习!
------解决方案--------------------地板~
------解决方案--------------------做得确实不错,学习.
------解决方案--------------------不错,赞一个.
------解决方案--------------------MARK 一个
我周日还上班那..
------解决方案--------------------好东西,flash和jsp做的吗?