1、目錄樹:
2、demo_viewimage.mxml
2、leftimage.mxml<?xml version="1.0" encoding="utf-8"?>
xmlns:s="library:"
xmlns:mx="library:" minwidth="955" minheight="600" xmlns:viewimage="demo.viewimage.*" backgroundcolor="#000000">
count)
return true;
}if(i < 0)
return true;
}var littleimage:littleimage = new littleimage();
vb.addchild(littleimage);
littleimage.littleimg.source=dataimg[i].littleimg;
littleimage.setarg_littleimg = i.tostring();
if(i == start)
}return true;
}/*左翻頁處理*/
private function leftclick(event:mouseevent):void
else
}/*右翻頁處理*/
private function rightclick(event:mouseevent):void
else
}]]>
3、rightimage.mxml<?xml version="1.0" encoding="utf-8"?>
4、littleimage.mxml<?xml version="1.0" encoding="utf-8"?>
5、viewimageevent.as<?xml version="1.0" encoding="utf-8"?>
6、執行效果圖package myevents
public function get geteventvalue():string}}
用AJAX編寫乙個簡單的相簿
xml問題終於在今天還是解決了。最後在firefox裡還是使用了dom的一些老方法。我這裡就具體解釋一下方法吧.var xmlhttp 用來定義乙個xmlhttprequest物件 上面這段話是判斷當前瀏覽器版本,以定義給xmlhttp不同的xmlhttprequest物件.如果伺服器的響應沒有xm...
用AJAX編寫乙個簡單的相簿
var xmlhttp 用來定義乙個xmlhttprequest物件 上面這段話是判斷當前瀏覽器版本,以定義給xmlhttp不同的xmlhttprequest物件.如果伺服器的響應沒有xml mime type header,某些mozilla瀏覽器可能無法正常工作。所以需要xmlhttp.over...
編寫乙個makefile
什麼是makefile?對於大多數的windows程式設計師來講,makefile可能不是那麼重要,因為windows的ide都為程式設計師做好了這個工作。但是在linux下程式設計,會不會寫makefile,從側面上說明乙個人是否具備完成大型工程的能力。makefile的作用 makefile是用...