Home > ActionScript 3.0 > 複数のSpriteやMCのプロパティを一括/指定traceできるクラスSanzoku.as[ActionScript3.0][SparkProject]

複数のSpriteやMCのプロパティを一括/指定traceできるクラスSanzoku.as[ActionScript3.0][SparkProject]

ちょっと前から参加しているyossyさん運営のSPARKProjectに、遅ればせながら初コミットしてみました。

SparkProject/Sanzoku

Sanzoku.as

このSanzokuは複数のSpriteやMovieClip?のプロパティを一括・指定でtraceしたりfirebugのコンソールに出力するクラス です。

Sanzoku.peep(target)とするだけで、MCやSpriteのビルドインプロパティを覗くことができます。

以下、例:ルートでSanzoku.peep(this)を実行した場合の出力結果

/*$=root1[class Test]*/
accessibilityProperties=>null
alpha=>1
blendMode=>normal
buttonMode=>false
cacheAsBitmap=>false
constructor=>[class Test]
contextMenu=>null
currentFrame=>1
currentLabel=>null
currentLabels=>
currentScene=>[object Scene]
doubleClickEnabled=>false
dropTarget=>null
enabled=>true
filters=>
focusRect=>null
framesLoaded=>1
graphics=>[object Graphics]
height=>0
hitArea=>null
loaderInfo=>[object LoaderInfo]
mask=>null
mouseChildren=>true
mouseEnabled=>true
mouseX=>550
mouseY=>127
name=>root1
numChildren=>0
opaqueBackground=>null
parent=>[object Stage]
root=>[object Test]
rotation=>0
scale9Grid=>null
scaleX=>1
scaleY=>1
scenes=>[object Scene]
scrollRect=>null
soundTransform=>[object SoundTransform]
stage=>[object Stage]
tabChildren=>true
tabEnabled=>false
tabIndex=>-1
textSnapshot=>[object TextSnapshot]
totalFrames=>1
trackAsMenu=>false
transform=>[object Transform]
useHandCursor=>true
visible=>true
width=>0
x=>0
y=>0
/*--------------------------------*/

詳しい使い方は上記のwikiをご覧ください。

よかったらお使いくださいませ

Summer Camp 2010 野中文雄のActionScript 3.0による 三次元表現

無料  ActionScript 3.0による 三次元表現 in アップルストア 銀座

フィジカルコンピューティング ラボラトリー

Comments:0

Comment Form

コメントを表示する前にこのブログのオーナーの承認が必要になることがあります。

Trackbacks:0

TrackBack URL for this entry
http://xingxx.com/mt/mt-tb.cgi/18
Listed below are links to weblogs that reference
複数のSpriteやMCのプロパティを一括/指定traceできるクラスSanzoku.as[ActionScript3.0][SparkProject] from xingxx

Home > ActionScript 3.0 > 複数のSpriteやMCのプロパティを一括/指定traceできるクラスSanzoku.as[ActionScript3.0][SparkProject]

Search
Feeds
Tag Cloud

Return to page top