
一直想學 Flash,但有時又超懶 ,剛好今天颱風天,下午放假,稱這個休假機會用 Flash 寫了
個彈球的小程式做練習,用的是 ActionScript 3.0 的語法,參考了以下網站。
http://flashgameu.com/
是 ActionScript 3.0 Game Programming University 這本書作者開設的網站,書寫的很棒,





<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Check File Size</title>
</head>
<script type="text/javascript">function check(){var size=document.getElementById("file1").files.item(0).size;if(size>10240000){alert("上傳檔案不得超過 10M ");return false;}return true;}</script>
<body>
<form action="#" method="post" enctype="multipart/form-data" onsubmit="return check();">
<input type="file" name="file1" id="file1" />
<input type="submit" />
</form>
</body>
</html>






#yum install vsftpd
