# Dout on classes and how to build a

**URL:** <https://forum.kirupa.com/t/dout-on-classes-and-how-to-build-a/260612>\
**Category:** Uncategorized\
**Created:** [May 17, 2008, 2:42pm UTC](https://forum.kirupa.com/t/dout-on-classes-and-how-to-build-a/260612 "2008-05-17T14:42:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ecptavares](https://avatars.discourse-cdn.com/v4/letter/e/9d8465/32.png) [@ecptavares](https://forum.kirupa.com/u/ecptavares)\
**Post date:** [May 17, 2008, 2:42pm UTC](https://forum.kirupa.com/t/dout-on-classes-and-how-to-build-a/260612/1 "2008-05-17T14:42:07Z")

</div>

Hi!  
I am trying to create a web site with AS3 using only classes. Will I still have to have some MC or any other objects on stage or can I create everything in code?  
I so I am planning to put a preloader but since the content of my web site hasnt been created yet how my preloader will work ?

I am sorry for the question but I am really struggling to understand this and I am new to this.

---

<div class="post-metadata">

**Author:** ![adnan794](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@adnan794](https://forum.kirupa.com/u/adnan794)\
**Post date:** [May 17, 2008, 4:19pm UTC](https://forum.kirupa.com/t/dout-on-classes-and-how-to-build-a/260612/2 "2008-05-17T16:19:53Z")

</div>

Hello

Yes you can do everything through code and you dont have to put anything on stage.  
For the preloader you would have to use events to listen to when your main class that is loading everything else has loaded properly.

There are many ways of implementin the preloader though.
