# This is My Problem - Help A beginner

**URL:** <https://forum.kirupa.com/t/this-is-my-problem-help-a-beginner/38576>\
**Category:** flash\
**Created:** [December 25, 2003, 10:06pm UTC](https://forum.kirupa.com/t/this-is-my-problem-help-a-beginner/38576 "2003-12-25T22:06:33Z")\
**Posts on this page:** 2\
**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/38576/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 ???

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 26, 2003, 4:52am UTC](https://forum.kirupa.com/t/this-is-my-problem-help-a-beginner/38576/2 "2003-12-26T04:52:35Z")

</div>

don’t cross post.

as i mentioned earlier, that is frame code. I would imagine that would go on the first frame, but i would know without seeing the associated tutorial. That code is meaningless unless you know how to use it. All that code does is create an empty movie clip and define a function.
