# Simulating 3d space in AS2

**URL:** <https://forum.kirupa.com/t/simulating-3d-space-in-as2/263822>\
**Category:** Uncategorized\
**Created:** [June 19, 2008, 2:34pm UTC](https://forum.kirupa.com/t/simulating-3d-space-in-as2/263822 "2008-06-19T14:34:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerome\_chevreau](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jerome\_chevreau](https://forum.kirupa.com/u/jerome_chevreau)\
**Post date:** [June 19, 2008, 2:34pm UTC](https://forum.kirupa.com/t/simulating-3d-space-in-as2/263822/1 "2008-06-19T14:34:23Z")

</div>

Hi everyone!

i am currently going through some tutorials concerning the movement of Movie Clip in a 3d space by creating the illusion. Its fine but i have an fla file written in AS1 and using flash player 1. if i change it to flash player 9 and AS2 it does not work. They are using MovieClip.prototype.functionname = function(), may be this is the problem. What does it mean by prototype, cant get clear answer about that??

That fla explain the rotation on x y and z axis as well as zooming in and out and this is what i want to achieve!  
Can anyone help me please !?

Thanks for any help,

Jerome

---

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [June 19, 2008, 2:40pm UTC](https://forum.kirupa.com/t/simulating-3d-space-in-as2/263822/2 "2008-06-19T14:40:22Z")

</div>

some functions become defunct between versions I guess that is what is happening

there are tuts on this site’s main page about 3d in flash

TRY THERE 😛

---

<div class="post-metadata">

**Author:** ![jerome\_chevreau](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jerome\_chevreau](https://forum.kirupa.com/u/jerome_chevreau)\
**Post date:** [June 19, 2008, 2:49pm UTC](https://forum.kirupa.com/t/simulating-3d-space-in-as2/263822/3 "2008-06-19T14:49:00Z")

</div>

Thanks for your reply again randomagain.

But which site should i go to?? cant see any link on ur reply

Thanks

---

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [June 19, 2008, 2:53pm UTC](https://forum.kirupa.com/t/simulating-3d-space-in-as2/263822/4 "2008-06-19T14:53:06Z")

</div>

this site… the one you are posting in… if you remove /forum, you get [kirupa.com](http://kirupa.com) and click the flash tutorials section

---

<div class="post-metadata">

**Author:** ![jerome\_chevreau](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jerome\_chevreau](https://forum.kirupa.com/u/jerome_chevreau)\
**Post date:** [June 19, 2008, 3:06pm UTC](https://forum.kirupa.com/t/simulating-3d-space-in-as2/263822/5 "2008-06-19T15:06:47Z")

</div>

oooooohhhhhh…ok  
I went already through half of the tutorial, getting into panning now. But i have this fla that has been coded in AS1 and uses flash player 5. I have done some research about prototype and i still cant make it work for AS2 flash player 9. There is one tutorial that says that i must use “this” keyword in front of the variables. But it still does not work… do you know what should i use… Because once i understand that piece of code in that fla i can pretty much do whatever i need to achieve.

Thanks again for ur quick reply

---

<div class="post-metadata">

**Author:** ![glosrfc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/glosrfc/32/8334_2.png) [@glosrfc](https://forum.kirupa.com/u/glosrfc)\
**Post date:** [June 19, 2008, 3:06pm UTC](https://forum.kirupa.com/t/simulating-3d-space-in-as2/263822/6 "2008-06-19T15:06:51Z")

</div>

The commonest reason for AS1 files not working when you target later versions of the Flash Player is down to capitalisation:  
[http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs\_Parts&file=00000677.html](http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000677.html)  
Another common problem is undefined/undeclared variables  
[http://www.kirupa.com/developer/oop2/AS2OOPChangedAndAdded2.htm](http://www.kirupa.com/developer/oop2/AS2OOPChangedAndAdded2.htm)

There’s info on prototypes here:  
[http://www.adobe.com/support/flash/action\_scripts/actionscript\_dictionary/actionscript\_dictionary371.html](http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary371.html)  
[http://www.actionscript.org/resources/articles/72/1/OOP-and-inheritance-in-Flash/Page1.html](http://www.actionscript.org/resources/articles/72/1/OOP-and-inheritance-in-Flash/Page1.html)

---

<div class="post-metadata">

**Author:** ![jerome\_chevreau](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jerome\_chevreau](https://forum.kirupa.com/u/jerome_chevreau)\
**Post date:** [June 20, 2008, 7:31am UTC](https://forum.kirupa.com/t/simulating-3d-space-in-as2/263822/7 "2008-06-20T07:31:47Z")

</div>

Sorry randomagain, i might sound as an idiot but i am very confused now.

I have gone through your links, but i’m still confused. Do i have now to create an external class and use # include …

How can i get rid of those .prototype stuff.
