font

import caurina.transitions.Tweener;
import caurina.transitions.properties.CurveModifiers;
CurveModifiers.init();

// フレームアクションでPapervision3D
import org.papervision3d.cameras.Camera3D;
import org.papervision3d.events.*;
import org.papervision3d.events.InteractiveScene3DEvent;
import org.papervision3d.objects.DisplayObject3D;
import org.papervision3d.objects.primitives.*;
import org.papervision3d.materials.WireframeMaterial;
import org.papervision3d.materials.utils.MaterialsList;
import org.papervision3d.view.BasicView;
import org.papervision3d.view.*
import org.papervision3d.materials.*

import org.papervision3d.materials.special.*;
import org.papervision3d.typography.fonts.*;
import org.papervision3d.typography.*;

// 3D表示用のインスタンス制作

var world:BasicView = new BasicView(500,500,true,true);
addChild(world);
world.startRendering();

//textマテリアル制作
var textMaterial:Letter3DMaterial = new Letter3DMaterial(0xFF0000,1);
//フォント生成
var font:HelveticaBold = new HelveticaBold();
//テキスト3D制作
var text3D:Text3D = new Text3D("Hello World.", font, textMaterial);
world.scene.addChild(text3D);

//textマテリアル制作
var textMaterial2:Letter3DMaterial = new Letter3DMaterial(0xFF2222,1);
//フォント制作
var font2:HelveticaBold = new HelveticaBold();
//テキスト3D制作
var text3D2:Text3D = new Text3D("Hello World.", font2, textMaterial2);
world.scene.addChild(text3D2);

text3D.rotationX = 55;

stage.addEventListener(MouseEvent.CLICK,clickHandler);
function clickHandler(e:MouseEvent):void{
var ramX = Math.floor(Math.random()*500);
var ramY = Math.floor(Math.random()*500);
var ramZ = Math.floor(Math.random()*500);
var bezierram = Math.floor(Math.random()*500);
Tweener.addTween(text3D,{rotationX:ramZ,z:ramZ,x:ramX,y:ramY,_bezier:{x:bezierram,y:bezierram},
time:1});
Tweener.addTween(text3D2,{rotationX:ramX,z:ramZ,x:ramY,y:ramX,_bezier:{x:bezierram,y:bezierram},
time:1});
}