This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//------------------------------ | |
// JSONを読み込む | |
//------------------------------ | |
NSError *error0 = nil; | |
NSBundle *bundle = [NSBundle mainBundle]; | |
NSString *path = [bundle pathForResource:@"local" ofType:@"json"]; | |
NSString *jsonString = [[NSString alloc] initWithContentsOfFile:path encoding:NSUTF8StringEncoding error: &error0]; | |
NSData *jsonData = [jsonString dataUsingEncoding:NSUnicodeStringEncoding]; | |
if(error0){NSLog(@"よみこみえらー");} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//ダブルクォートをシングルクォートにし、改行をとる | |
NSStirng * string = @"hogehoge"; | |
string = [string stringByReplacingOccurrencesOfString:@"\"" withString:@"\'"]; | |
string = [string stringByReplacingOccurrencesOfString:@"\n" withString:@""]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
/** | |
*============================================================ | |
* copyright(c) 2011 www.romatica.com | |
* @author itoz | |
* 2011/03/08 | |
*============================================================ | |
* android wallpaper manifest.xml template. | |
* アンドロイドライブ壁紙用 マニフェストXML テンプレート |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
*============================================================ | |
* copyright(c) 2011 www.romatica.com | |
* @author itoz | |
* 2011/03/05 | |
*============================================================ | |
*/ | |
package ****.****.*****; | |
import android.content.res.Resources; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
/** | |
*============================================================ | |
* copyright(c) 2011 www.romatica.com | |
* @author itoz | |
* 2011/03/05 | |
*============================================================ | |
*/ | |
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ボタンイベントで配信された状態値が引数に渡される。obj["type"] が各キャラの状態値。 | |
private function search(bit : uint) : Array{ | |
var result : Array = []; | |
for (var i : int = 0; i < _arr.length; i++) { | |
var obj : Object = _arr[i]; | |
if ((bit & parseInt(obj["type"], 2)) == bit) | |
result.push(node); | |
} | |
return result; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<sample> | |
<chara> | |
<user name="キャラA" type="1010100" /> | |
<user name="キャラB" type="0010100" /> | |
<user name="キャラC" type="0101000" /> | |
<user name="キャラD" type="0011000" /> | |
<user name="キャラE" type="1111111" /> | |
<user name="キャラF" type="0001001" /> | |
<user name="キャラG" type="1000001" /> | |
<user name="キャラH" type="1000010" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* EixfのOrientation(回転情報)から、正の位置に補正したBitmapDataを返す. | |
* @param bitmapData 補正前のBitmapData | |
* @param exifOrient exifのOrient情報 1~8 | |
* @see http://sylvana.net/jpegcrop/exif_orientation.html | |
*/ | |
public static function correctExifOrient(bitmapData : BitmapData, exifOrient : int) : BitmapData | |
{ | |
var correctBMD : BitmapData; | |
var mat : Matrix = new Matrix(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
*============================================================ | |
* copyright(c) 2011 | |
* @author itoz | |
* 2011/04/01 | |
*============================================================ | |
*/ | |
package com.romatica.display | |
{ | |
import caurina.transitions.Tweener; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var flashvars={}; | |
if( location.search != "" ){ | |
var str = location.search.substring( 1 ); | |
var params = str.split( "&" ); | |
for( var i = 0; i < params.length; i++ ) | |
{ | |
var values = params[ i ].split( "=" ); | |
flashvars[ values[ 0 ] ] = values[ 1 ]; | |
} | |
} |
OlderNewer