# Quick Question

**URL:** <https://forum.kirupa.com/t/quick-question/11778>\
**Category:** Uncategorized\
**Created:** [January 22, 2003, 4:04am UTC](https://forum.kirupa.com/t/quick-question/11778 "2003-01-22T04:04:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dizz](https://avatars.discourse-cdn.com/v4/letter/d/f6c823/32.png) [@dizz](https://forum.kirupa.com/u/dizz)\
**Post date:** [January 22, 2003, 4:04am UTC](https://forum.kirupa.com/t/quick-question/11778/1 "2003-01-22T04:04:49Z")

</div>

Okay I have read a lot on actionscript and done a few tutorials from here and other places, I have come to notice that it is pretty much the same as C++.

My question is: Can you use functions and/or classes, and if you can how would you go about doing so?

Thanks in advanced.

BTW Awesome site you have here!

---

<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:** [January 22, 2003, 4:43am UTC](https://forum.kirupa.com/t/quick-question/11778/2 "2003-01-22T04:43:35Z")

</div>

i am learning c++ and yeah ive noticed its very similar… you can do functions and classes… and even switch statements… its really cool… i unfortunately never got really into it… i think there are prototypes too… you might want to check on the actionscript tricks page… i think it has somthing about prototypes and functions… classes you will have to ask someone else… i know there are some people who can help you here… and switch statements are the same as c++ as far as i know… so check out the actionscript tricks… heres the link

[http://www.kirupa.com/developer/actionscript/as\_tricks.asp](http://www.kirupa.com/developer/actionscript/as_tricks.asp)

look at

dynamic event handlers with Flash MX  
using prototypes instead of functions

i think those will give you a little insight…
