This file contains hidden or 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
public interface IDisplayObject | |
{ | |
function get asDisplayObject():DisplayObject; | |
} |
This file contains hidden or 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
//-------------------------------------------------------------------------- | |
// | |
// FacebookAPI処理のためのModelクラス、FacebookProxyのテストケースサンプル | |
// | |
//-------------------------------------------------------------------------- | |
public class FacebookProxyTest extends PureMVCTestCase | |
{ | |
private static var facade : ApplicationFacade; | |
private static var appProxy : AppProxy; | |
This file contains hidden or 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
// http://d.hatena.ne.jp/amachang/20060924/1159084608 | |
// ここのやつがリンク切れしてたのでarchiveからもってきた | |
var _si_nativeSetInterval = setInterval; | |
var _si_nativeClearInterval = clearInterval; | |
var _si_intervalTime = 10; | |
var _si_counter = 1; | |
var _si_length = 0; | |
var _si_functions = {}; | |
var _si_counters = {}; |
This file contains hidden or 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
time:Number //ループの秒数 | |
fps:int=20 //fps | |
radius:int=5 //スプライン曲線の大きさ | |
line_weight:Number=0.5 //線の太さ | |
line_densitydensity:Number=0.3 //密度 0-1 | |
color:int=-1 //色(-1だと読み込んだBitmapdataの色が使われる) | |
is_sync:Boolean=false //同期か非同期か |
This file contains hidden or 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
//-------------------------------------------------------------------------- | |
// | |
// | |
// @author : ${user} | |
// @date : ${date} | |
// | |
//-------------------------------------------------------------------------- | |
//-------------------------------------------------------------------------- |
This file contains hidden or 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
// -------------------------------------------------------------------------- | |
// | |
// 1つのMediatorに複数のViewComponentを割り当てる | |
// | |
// -------------------------------------------------------------------------- | |
// -------------------------------------------------------------------------- | |
// 1. ステージ上に配置された任意のMovieClipに割り当て | |
// -------------------------------------------------------------------------- | |
mediatorMap.mapView(MovieClip, BaseButtonMediator, null, false); |
This file contains hidden or 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
// -------------------------------------------------------------------------- | |
// | |
// | |
// @author : nowri.ka | |
// @date : 2012/05/29 | |
// | |
// -------------------------------------------------------------------------- | |
package | |
{ | |
public class ChildView extends Sprite implements IModule |
This file contains hidden or 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
preg_replace('/.*v=([\d\w]+).*/', '$1', 'http://www.youtube.com/watch?v=1O6aOHb4Zv0') |
This file contains hidden or 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 number:Number = 123; | |
var n100:int; | |
var n10:int; | |
var n0:int; | |
n100 = Math.floor(number/100); | |
n10 = Math.floor(number/10)%10; | |
n0 = number%100%10; |
This file contains hidden or 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
private function removeParagraphString(str:String):String | |
{ | |
//操作したい文字列が入るよ | |
//\nを削除 | |
str= str.replace( /\n/g, "" ); | |
//\rを削除 | |
str= str.replace( /\r/g, "" ); | |
return str; | |
} |