I just purchased this cool solution. I have a couple of questions.
How would i put multiple rotating images on the stage in Plane3d_AS3_demo1?
Also how do I get rid of the Focal Length area in the upper left hand corner of the stage?
Jonster
I just purchased this cool solution. I have a couple of questions.
How would i put multiple rotating images on the stage in Plane3d_AS3_demo1?
Also how do I get rid of the Focal Length area in the upper left hand corner of the stage?
Jonster
Hi Chamboow – this is excellent stuff.
I’d like to access the texture path in the AS3 version
Above you showed someone how to do it in AS2 by changing
private var frontTextureHolder:MovieClip; private var backTextureHolder:MovieClip;
to
public var frontTextureHolder:MovieClip; public var backTextureHolder:MovieClip;
But the AS3 works differently?
Also in the AS2 version i was able to control a loaded movieclip (for example rollover state) by using
3DPlane.frontTextureHolder.tx.gotoAndStop(1);
Can i do something similar in the AS3 version too?
Thanks
Phil
import flash.net.URLRequest;
import flash.display.Loader;
import flash.events.Event;
var front = new TxFront01();
var back = new TxBack01();
myPlane3D.setFrontTexture(front); // set FRONT texture
myPlane3D.setBackTexture(back); // set BACK texture
var loaderFront = new Loader();
loaderFront.contentLoaderInfo.addEventListener(Event.COMPLETE, function(e:Event) {
front.addChild(e.currentTarget.loader.content); });
loaderFront.load(new URLRequest("1.jpg"));
var loaderBack = new Loader();
loaderBack.contentLoaderInfo.addEventListener(Event.COMPLETE, function(e:Event) {
back.addChild(e.currentTarget.loader.content); });
loaderBack.load(new URLRequest("2.jpg"));
Hi,
i just puchased the class, i want to know how can i animate an existing static MovieClip onto my stage. (not from library through linkage, etc)
i have this mc called mcPhoto.. it’s static, and i just want to yRotate it when i click a button.
the class is able to do that? .. without linkage
thanks
Ricardo
Hello, can these classes (AS2) work also with SwishMax 3? http://www.swishzone.com/index.php?area=products&product=max
hi this is great just what i need for player 9 as3, example 6 is what I am looking for and was wondering, I just need the front image and the rotation x to rotate as the y, which I have seen is possible in the code, my only question is, can the front movieclip be like 6 different movieclips acting as buttons with mouse over effects? please let me know as soon as you can as i need this urgently, the tilt fuction, it is perfect! Thank you!
dUde you are a genius, this is just what I was looking for. Thanks a mil!
@Chamboow
Awesome file. Wanted to ask if it would be possible to add these functions to onStage MC’s, rather then having MC reading from the library through Linkage?
Any help would mean a lot. -Thanks
Hi there.
Just bought the item, and have configured it a bit.
It’s lovely stuff
But i’m not a flash programmer so I’m struggeling a bit when configuring it
I’m trying to have 4 different frontTextures, allo f them with the same backTexture.
This is what I came up with:
import mx.transitions.Tween; import mx.transitions.easing.*; import net.chamboow.tiny3D.plane.Plane3D;
var pW = 200; // plane width var pH = 200; // plane height
var myPlane3D = new Plane3D(this,pW,pH); // new plane instance
myPlane3D.setFrontTexture(“framsida01”); // set FRONT1 texture myPlane3D.setBackTexture(“baksida”); // set BACK1 texture
myPlane3D.startRender(); // start rendering
var tw1,step = 0;
// plane animation/rotation function doRotation() {
var cx = myPlane3D.xRotation; // current X rotation var cy = myPlane3D.yRotation; // current Y rotation var cz = myPlane3D.zRotation; // current Z rotation
switch (step) {
case 0 :
myPlane3D.focalLength = 200; // change focal length
tw1 = new Tween(myPlane3D, "xRotation", Back.easeInOut, cx, cx+180, 50,false);
break;
case 1 :
myPlane3D.focalLength = 200; // change focal length
myPlane3D.setFrontTexture("framsida02");
tw1 = new Tween(myPlane3D, "xRotation", Back.easeInOut, cx, cx+180, 50,false);
break;
case 2 :
myPlane3D.focalLength = 200; // change focal length
myPlane3D.setFrontTexture("framsida03");
tw1 = new Tween(myPlane3D, "xRotation", Back.easeInOut, cx, cx+180, 50,false);
break;
case 3 :
myPlane3D.focalLength = 200; // change focal length
myPlane3D.setFrontTexture("framsida");
tw1 = new Tween(myPlane3D, "xRotation", Back.easeInOut, cx, cx+180, 50,false);
break;
}
step++;
if (step==4) step=0;
// loop animation sequence
tw1.onMotionFinished = doRotation;
}
doRotation();
But when i use the expression myPlane3D.setFrontTexture(“framsida02”); in case2 the rotation changes to “framsida03” in the middle of the flip?
Also: I never return to “framsida01”, from here on the rotation just rotates between case1 and case2?
Please help, what can I do? I’m certain it’saquick fix
Best! //Daniel
COPYRIGHT © 2012 ENVATO| TERMS OF USAGE| SUPPORT/HELP| ICONS BY TANGO + WEFUNCTION + FAMFAMFAM
Adobe®, Flash®, Flex®, Fireworks®, Photoshop®, Illustrator®, InDesign® and After Effects® are registered trademarks of Adobe Systems Incorporated.
203 Purchases
48 Comments