Tutorial Problem 3d in flash


I have a problem with a tutorial on the kirupa site–
[size=3]Merry-go-round of Spinning Images[/size]

I tryed to read the tutorial sometimes but cant figure out the problem :frowning:

Here is my code on frame. (Should it even be on a frame?)

[color=blue]this.createEmptyMovieClip(“theScene”, 1);
theScene._x = 150;
theScene._y = 100;[/color]
[color=blue]objectsInScene = new Array();[/color]
[color=blue]focalLength = 500;
spin = 0;
displayPane = function(){
var angle = this.angle + spin;
var x = Math.cos(angle)*this.radius;
var z = Math.sin(angle)*this.radius;
var y = this.y;

var scaleRatio = focalLength/(focalLength + z);
this._x = x * scaleRatio;
this._y = y * scaleRatio;
this._xscale = this._yscale = 100 * scaleRatio;[/color]
[color=blue]this._xscale = Math.sin(angle);
angleStep = 2
for (i=0; i < 8; i++){
attachedObj = theScene.attachMovie(“pane”, “pane”+i, i);
attachedObj.angle = angleStep * i;
attachedObj.radius = 100;
attachedObj.x = Math.cos(attachedObj.angle) * attachedObj.radius;
attachedObj.z = Math.sin(attachedObj.angle) * attachedObj.radius;
attachedObj.y = 40;
attachedObj.display = displayPane;
panCamera = function(){
spin -= this._xmouse/1000;
for (var i=0; i < objectsInScene.length; i++){
theScene.onEnterFrame = panCamera;[/color]

[color=black]This was the code, but nothing is showed :([/color]
I have a movieclip called pane.
[color=red]I can lay up the file if needed[/color]
Someone knows the problem then PLEASE post !!!


Please Someone Look !!! Please!! I Really Need The Help!! :frowning:

no.no. look at me. look at me!!


Ummm… for every tutorial there are source files, I would suggest you click… next page until you get to the very end of the tutorial, as it is a combination of multiple lessons in one tutorial. At the very bottom there should be a link to the source files, then you can open it up and see what he has done. Problem solved.

yes, please check the source files (located on the first and I believe last page of the 3D tutorial). Also, please use the code/as/php vB tags when posting script. It makes it much easier to read :slight_smile: