# Tutorial Problem 3d in flash

**URL:** <https://forum.kirupa.com/t/tutorial-problem-3d-in-flash/117222>\
**Category:** Uncategorized\
**Created:** [July 25, 2004, 11:20pm UTC](https://forum.kirupa.com/t/tutorial-problem-3d-in-flash/117222 "2004-07-25T23:20:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![abraxas](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@abraxas](https://forum.kirupa.com/u/abraxas)\
**Post date:** [July 25, 2004, 11:20pm UTC](https://forum.kirupa.com/t/tutorial-problem-3d-in-flash/117222/1 "2004-07-25T23:20:38Z")

</div>

Hello!

I have a problem with a tutorial on the kirupa site–  
[http://www.kirupa.com/developer/actionscript/camera\_panning.htm](http://www.kirupa.com/developer/actionscript/camera_panning.htm)  
**[size=3]Merry-go-round of Spinning Images[/size]**

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

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);  
this.swapDepths(Math.round(-z));  
};  
angleStep = 2_Math.PI/8;  
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;  
objectsInScene.push(attachedObj);  
}  
panCamera = function(){  
spin -= this.\_xmouse/1000;  
for (var i=0; i \< objectsInScene.length; i++){  
objectsInScene\*.display();  
}  
};  
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 !!!

---

<div class="post-metadata">

**Author:** ![abraxas](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@abraxas](https://forum.kirupa.com/u/abraxas)\
**Post date:** [July 26, 2004, 11:24am UTC](https://forum.kirupa.com/t/tutorial-problem-3d-in-flash/117222/2 "2004-07-26T11:24:23Z")

</div>

Someone?

---

<div class="post-metadata">

**Author:** ![abraxas](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@abraxas](https://forum.kirupa.com/u/abraxas)\
**Post date:** [July 27, 2004, 1:39am UTC](https://forum.kirupa.com/t/tutorial-problem-3d-in-flash/117222/3 "2004-07-27T01:39:21Z")

</div>

Please Someone Look !!! Please!! I Really Need The Help!! ☹

---

<div class="post-metadata">

**Author:** ![ratbaggy](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@ratbaggy](https://forum.kirupa.com/u/ratbaggy)\
**Post date:** [July 27, 2004, 2:11am UTC](https://forum.kirupa.com/t/tutorial-problem-3d-in-flash/117222/4 "2004-07-27T02:11:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![abraxas](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@abraxas](https://forum.kirupa.com/u/abraxas)\
**Post date:** [July 27, 2004, 12:05pm UTC](https://forum.kirupa.com/t/tutorial-problem-3d-in-flash/117222/5 "2004-07-27T12:05:39Z")

</div>

???

---

<div class="post-metadata">

**Author:** ![simplistik](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/simplistik/32/7747_2.png) [@simplistik](https://forum.kirupa.com/u/simplistik)\
**Post date:** [July 27, 2004, 1:14pm UTC](https://forum.kirupa.com/t/tutorial-problem-3d-in-flash/117222/6 "2004-07-27T13:14:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![senocular](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/senocular/32/7217_2.png) [@senocular](https://forum.kirupa.com/u/senocular)\
**Post date:** [July 27, 2004, 1:17pm UTC](https://forum.kirupa.com/t/tutorial-problem-3d-in-flash/117222/7 "2004-07-27T13:17:17Z")

</div>

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 🙂
