« FIVe3D | メイン | FIVe3D 03 FuseKitと連携 »

FIVe3D 02

del.icio.us it!   hatena bookmark

マウスにあわせて動かしてみた

http://labs.un-q.net/flash/five3d/03/ Screenshot_3.png

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

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;

container.target = this;
container.onEnterFrame = function() {

    this._rotationy = -(root._xmouse/5);
    this._rotationx = (root._ymouse/4);

}


トラックバック

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

コメントを投稿

crossreview