[20100524]-[素材]-[顏色]-[一組簡單顏色]-[FusionChart使用]



posted @ 2010-05-24 01:31 至尊貝貝 閱讀(183) | 評論 (0) | 編輯 收藏
隨筆 - 25, 文章 - 1, 評論 - 0, 引用 - 0
|
[20100524]-[素材]-[顏色]-[一組簡單顏色]-[FusionChart使用]![]() ![]() ![]() posted @ 2010-05-24 01:31 至尊貝貝 閱讀(183) | 評論 (0) | 編輯 收藏 [Flex4]-[20100524]-[文件上傳]需要用到的Flex原生態(tài)對象 1.FileReferenceList 2.FileReference 3.URLRequest 4.URLVariables
參考代碼: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() posted @ 2010-05-24 01:28 至尊貝貝 閱讀(606) | 評論 (0) | 編輯 收藏 [Flex]-[20100524]-[Stream]-[從服務(wù)端讀取圖片]Flex 如何從服務(wù)端讀取流信息 使用的原生態(tài)對象 封裝對象: 源碼如下: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
![]() ![]() ![]() ![]()
posted @ 2010-05-24 01:21 至尊貝貝 閱讀(490) | 評論 (0) | 編輯 收藏 Ajax從服務(wù)端讀取圖片數(shù)據(jù)
服務(wù)端代碼:
@Action(value = "/imageload")
public String imageLoad ()throws Exception { File f = new File ("d:/down.jpg"); FileInputStream in = new FileInputStream (f); byte[] b = new byte[in.available()]; in.read(b); HttpServletResponse response = ServletActionContext.getResponse(); // response.setCharacterEncoding("UTF-8"); response.setContentType("image"); OutputStream pwt = response.getOutputStream(); pwt.write(b); pwt.flush(); pwt.close(); return null; } 客戶端代碼:
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Insert title here</title> <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script> </head> <body> <img id="img1" src=""></img> <script type="text/javascript"> function load() { $('#img1').attr('src', 'subject/imageload.action'); } </script> <button onclick=load();>點(diǎn)擊獲取</button> </body> </html> posted @ 2010-05-19 17:20 至尊貝貝 閱讀(1241) | 評論 (0) | 編輯 收藏 無語
問題又始于IE與Firefox
試問你用一個(gè)最新版的Firefox去與遠(yuǎn)古級的IE6做比較有意義么,
可是偏偏有許多人喜歡這么去比較,借此來宣傳Firefox.
馬克思說了很多費(fèi)話,但還是有一句說的蠻對的,我們要辯證地看待事物.
劉翔他跑了世界冠軍破了世界紀(jì)錄也與我無關(guān),
臨場退賽也與我無關(guān),他跑了第一也不代表黃種人就怎么怎么樣了
我一直用IE 我也用Firefox 我也用Chrome 我也用Safari
我也不用殺毒軟件,我也不中木馬病毒.
我就知道,倒賣大蒜,白癡都能掙錢,我也知道,程序員同樣龍魚混雜.我們很少聽到龍嘯,看到的都是魚在冒泡.
每天都是IE與Firefox ,Windows與Linux, C與Java
posted @ 2010-05-18 10:10 至尊貝貝 閱讀(120) | 評論 (0) | 編輯 收藏 [20100514]-[FLEX4]-[在SWF中嵌入字體]
起因是 Flex4中使用的仍然是MX的DataGrid 但是因?yàn)樽煮w原因 ,使得DataGrid在某些效果上(如Fade|Rotate)可能無效甚至失去響應(yīng),解決的辦法是把字體嵌入到SWF中去.參考代碼:
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() posted @ 2010-05-14 16:33 至尊貝貝 閱讀(727) | 評論 (0) | 編輯 收藏 [20100427]-[源碼]-[Java]-[讀取文件并輸出]![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() posted @ 2010-05-06 23:08 至尊貝貝 閱讀(161) | 評論 (0) | 編輯 收藏 Flex報(bào)錯(cuò) : CreateProcess error=2
新安裝了一個(gè)FlexBuilder3
可是在運(yùn)行 Application的時(shí)候 報(bào)出 CreateProcess: "%ProgramFiles%\Internet Explorer\iexplore.exe" G:\java\Flex\........html error=2 Error=2好像是Windows系統(tǒng)返回的錯(cuò)誤 且不去管他. ~ 打開Eclipse的--Preferences---General---Web Browser---將Default system Web browser 修改成Internet Explorer或Firefox 問題得以解決 `~ 至此問題原因 也很明了 因?yàn)槲业南到y(tǒng)已經(jīng)使用了很多年了~ Windows默認(rèn)的是IE6吧~ 已經(jīng)早就升級成了IE8 但是參數(shù)Default Web Browser應(yīng)該還是指向IE6 , 所以出了問題~~ 與Eclipse無關(guān)~~ posted @ 2010-03-14 11:36 至尊貝貝 閱讀(1739) | 評論 (0) | 編輯 收藏 Google Chrome 離線下載安裝包地址下載地址:dl.google.com/chrome/install/472.53/chrome_installer.exe 472.53為Chrome版本號 posted @ 2010-01-28 00:56 至尊貝貝 閱讀(376) | 評論 (0) | 編輯 收藏 Mysql 中文亂碼問題![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() posted @ 2010-01-25 00:17 至尊貝貝 閱讀(117) | 評論 (0) | 編輯 收藏 |
|