ActiveDen

Textured Plane3D class / AS2 + AS3

  • Has been a member for 4-5 years
  • Exclusive Author
  • Bought between 10 and 49 items
Jonster says
Purchased

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

2 years ago
Author
Chamboow Chamboow replied

Send me private message via Activeden and I will try to help you.

2 years ago
  • Has been a member for 4-5 years
  • Bought between 1 and 9 items
microdark says
Purchased

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

2 years ago
Author
Chamboow Chamboow replied

In AS3 it’s quiet simple:

var front = new TxFront01();
var back = new TxBack01();
myPlane3D.setFrontTexture(front);
myPlane3D.setBackTexture(back);

front.gotoAndStop(1);
back.gotoAndStop(1);
2 years ago
Purchased
Default-user microdark replied

Ok cool thanks. And to load an image directly?

Like..

myPlane3D.frontTextureHolder.tx.loadMovie("t.jpg");
2 years ago
Author
Chamboow Chamboow replied
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"));

2 years ago
  • Has been a member for 2-3 years
  • Bought between 1 and 9 items
reccel says
Purchased

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

2 years ago
  • Has been a member for 2-3 years
hellasworks says

Hello, can these classes (AS2) work also with SwishMax 3? http://www.swishzone.com/index.php?area=products&product=max

2 years ago
Author
Chamboow Chamboow replied

Don’t really know.. Is SwishMax fully supports ActionScript 2? If yes – it could work.

2 years ago
  • Has been a member for 4-5 years
  • Bought between 1 and 9 items
angelx666x says

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!

2 years ago
Author
Chamboow Chamboow replied

When front isn’t 1:1 (no rotations), it isn’t possible to put interactive movieclips/buttons.

2 years ago
  • Has been a member for 4-5 years
  • Bought between 50 and 99 items
MYOB says
Purchased

dUde you are a genius, this is just what I was looking for. Thanks a mil!

2 years ago
Author
Chamboow Chamboow replied

Thanks MYOB . Feel free to check my other activeden items :)

2 years ago
  • Has been a member for 5-6 years
  • Bought between 50 and 99 items
nagd says
Purchased

@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

2 years ago
Author
Chamboow Chamboow replied

I’ve got modified AS2 version of this class which uses as textures movieclips placed on the stage. If you want this modified version – please send me PM message via ActiveDen to know your email and I will push those files to you. Regards.

2 years ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
danielopanielo says
Purchased

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

6 months ago
Author
Chamboow Chamboow replied

Could you send me your .fla file, not only the code? Write to me on PM here, and I will reply with emai address. Regards.

6 months ago
Purchased
Default-user danielopanielo replied

Hi again. Thanks for your fast reply :) You told me to write to you on PM, but where is that? Thanks! //Daniel

6 months ago
by
by
by
by
by