Do everything with so much love in your heart that you would never want to do it any other way. - Brahma Kumaris

— [Progression]setPropertiesが便利

Posted: Feb 21, 2009, 1:49 pm | Author: cyberryo | Category: Dialy | Tags: , , ,

ディスプレイオブジェクトの位置を決めるとき、

mc.x = 100;
mc.y = 100;
addCommand(
new Prop({x:100,y:100})
);

とか、ありますが

mc.setProperties({x:100,y:100});

こんな感じで複数のプロパティを一括設定できます。
なんといっても一目でプロパティ確認できるのがオツ。


Facebook Comments