# This is My Problem - Help A beginner

**URL:** <https://forum.kirupa.com/t/this-is-my-problem-help-a-beginner/97612>\
**Category:** Uncategorized\
**Created:** [December 25, 2003, 10:06pm UTC](https://forum.kirupa.com/t/this-is-my-problem-help-a-beginner/97612 "2003-12-25T22:06:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Premsai](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@Premsai](https://forum.kirupa.com/u/Premsai)\
**Post date:** [December 25, 2003, 10:06pm UTC](https://forum.kirupa.com/t/this-is-my-problem-help-a-beginner/97612/1 "2003-12-25T22:06:33Z")

</div>

code snippets were given like this in a few boxes for  
Simple Camera Panning - by senocular

this.createEmptyMovieClip(“theScene”, 1);  
theScene.\_x = 150;  
theScene.\_y = 150;

displayFigure = function(){  
var angle = this.angle + cameraView.rotation;  
var x = Math.cos(angle)\*this.radius;  
var z = Math.sin(angle)\*this.radius;  
var y = this.y;  
if (z \> 0){  
if (!this.\_visible) this.\_visible = true;  
var scaleRatio = focalLength/(focalLength + z);  
this.\_x = x \* scaleRatio;  
this.\_y = y \* scaleRatio;  
this.\_xscale = this.\_yscale = 100 \* scaleRatio;  
this.swapDepths(Math.round(-z));  
}else{  
this.\_visible = false;  
}  
};

now, where am i to place these, the 1 st frame ???
