Forked from: awef's 回転ネスト diff:16 forked from: 回転ネスト でかくした rotationZじゃなくてrotationをいじるようにした TweenerからTweenMaxにした awef forked:3favorite:6lines:32license : MIT License modified : 2009-09-19 01:34:42 Embed Tweet // forked from awef's 回転ネスト // でかくした // rotationZじゃなくてrotationをいじるようにした // TweenerからTweenMaxにした package { import flash.display.Sprite; [SWF(frameRate = "60")] public class main extends Sprite { public function main() { addChild(new ball(stage.stageWidth / 2, stage.stageHeight / 2, 400)); } } } import flash.display.Sprite; import gs.TweenMax; import gs.easing.*; class ball extends Sprite { function ball(arg_x:int, arg_y:int, arg_r:uint) { x = arg_x; y = arg_y; graphics.beginFill(0xFFFFFF); graphics.drawCircle(0, 0, arg_r /10 * 8); graphics.endFill(); graphics.beginFill(0); graphics.drawCircle(0, arg_r /10 * 2, arg_r /10 * 8); graphics.endFill(); TweenMax.to(this, Math.random() * 3 + 3, { rotation : 360, loop : 0, ease : Linear.easeNone } ); if(arg_r >= 10) addChild(new ball(0, arg_r /10 * 2, arg_r / 10 * 8)) } } Code Fullscreen Preview Fullscreen shi.mengqin twelvetoes heckmeck attunedesign.. teageek a440hlz : 視覚 視覚 rotation addChild Math.random uint Sprite int sort new page view favorite forked pv175 forked from: forked from: 回転ネス.. UA_ forked:0 favorite:0lines:32 (diff:1) pv163 forked from: forked from: 回転ネス.. Bacchus forked:0 favorite:0lines:32 (diff:6) pv175 forked from: forked from: 回転ネス.. coeyes forked:0 favorite:0lines:32 (diff:5)