Category: ActionScript
Posted by: teon
function testS(){
	testSound = new Sound();
	testSound.attachSound("test_se");
	testSound.start();
}

» 詳しく

Category: PHP
Posted by: teon
$path = ini_get('include_path');
$path .= ":/var/www/example.com/lib/PEAR/";
ini_set('include_path', $path);

» 詳しく

2008/03/05: 変数チェック

Category: PHP
Posted by: teon
function getTypeCheck($getchk){
	if(preg_match("/^[0-9,a-z,A-Z,_]+$/", $getchk) || $getchk == ""){
		return $getchk;
	}else{
		exit('Errer');
	}
}

» 詳しく

Category: .htaccess
Posted by: teon
<Files index.html>
	AddType application/x-httpd-php .html
</Files>
Category: ActionScript
Posted by: teon
xmlobject = new XML();

xmlobject.onData = function(source_str){
	lines = new Array();
	csv = new Array();
	lines = source_str.split("\n");	//1行の区切り文字(ここでは改行コード)
	
	for(i=0;i<lines.length;i++){
		tmp_array = new Array();
		tmp_array = lines[i].split("\t");	//1項目の区切り文字(ここではTab)
		tmpNo = Number(tmp_array[0]);
		tmpCode = tmp_array[1];
		tmpName =  tmp_array[2];
		tmpEn = tmp_array[3];
		tmpObj = {no:tmpNo,code:tmpCode,nm:tmpName,en:tmpEn};
		csv.push(tmpObj);
	}
}

xmlobject.load("list.csv");	//外部のCSVファイルまでのパス

» 詳しく

Category: ActionScript
Posted by: teon
String.prototype.replace = function( from_str, to_str ){
	return this.split(from_str).join(to_str);
}

» 詳しく

Category: ActionScript
Posted by: teon
function rand(min,max) {
	sa = max - min;
	randNum = Math.random() ;
	if (randNum == 1){
		randNum=0;
	}
	result = Math.floor(randNum* (sa+1))+min;
	return result;
}

» 詳しく

2007/04/12: 【ご注意】

Category: 【ご注意】
Posted by: teon
掲載している情報に対しての注意・免責事項ですが、

このblogに掲載しているスクリプトは個人で作成したものであり、
そしてあくまでメモ程度のレベルです。
このblogに掲載しているスクリプトを使用したことによる、
いかなる損害も作者(teon)は一切の責任を負いません。


すべてのスクリプトは、すべての環境での動作を保証するものではありません。
当然、ソフト・ハードウェアの設定などに依存しますし
作者(teon)がスクリプトを十分な検証せずに掲載してしまう場合もあります。
また、掲載しているスクリプトの設置や設定方法に関するサポートの義務も
作者(teon)は一切を負いません。


作者(teon)は公開しているスクリプトを予告なく削除、修正する場合があります。

2007/04/12: テスト

Category: PHP
Posted by: teon
テスト

» 詳しく