« FIVe3D 02 | メイン | ROXIKの城戸さん »

FIVe3D 03 FuseKitと連携

del.icio.us it!   hatena bookmark

してみた

http://labs.un-q.net/flash/five3d/04/

import five3D.display.DynamicText;
import five3D.display.Scene;
import five3D.display.Sprite;
import five3D.utils.Drawing;

import com.mosesSupposes.fuse.*;
ZigoEngine.simpleSetup(Shortcuts, PennerEasing);

var scene:Scene = new Scene(this);
var root:Sprite = scene.getRoot();

root._x = 280;
root._y = 200;

var container:Sprite = root.createSprite("container", 0);
Drawing.rectanglePlace(container, -180, -150, 360, 300, 0x000000);

var text:DynamicText = container.createDynamicText("text", 1);
text._typography = five3D.typography.HelveticaBold;
text._size = 40;
text._color = 0xffffff;
text._text = "Unknown Quality";

text._y -= 20;
text._x -= 160;
text._z -= 20;


var text2:DynamicText = container.createDynamicText("text2", 0);
text2._typography = five3D.typography.HelveticaBold;
text2._size = 40;
text2._color = 0x999999;
text2._text = "Unknown Quality";

text2._y -= 20;
text2._x -= 160;
text2._z -= 10;

var square_mc:MovieClip = this.createEmptyMovieClip("btn", this.getNextHighestDepth());
square_mc.beginFill(0xFF0000, 0);
square_mc.moveTo(0, 0);
square_mc.lineTo(Stage.width, 0);
square_mc.lineTo(Stage.width, Stage.height);
square_mc.lineTo(0, Stage.height);
square_mc.lineTo(0, 0);
square_mc.endFill();

square_mc.onPress = function() {
    ZigoEngine.doTween(container, "_rotationy", -(root._xmouse/5), 0.5, Back.easeOut);
    ZigoEngine.doTween(container, "_rotationx", (root._ymouse/4), 0.5, Strong.easeInOut);    
}


トラックバック

このエントリーのトラックバックURL:
http://un-q.net/mt-tb.cgi/194

コメントを投稿

crossreview