# Best way to build a Flash website using Document class?

**URL:** https://forum.kirupa.com/t/best-way-to-build-a-flash-website-using-document-class/260702
**Category:** flash
**Created:** [May 19, 2008, 2:57am UTC](https://forum.kirupa.com/t/best-way-to-build-a-flash-website-using-document-class/260702 "2008-05-19T02:57:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![johnlouis](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/johnlouis/32/568_2.png) [@johnlouis](https://forum.kirupa.com/u/johnlouis)
#### Post date: [May 19, 2008, 2:57am UTC](https://forum.kirupa.com/t/best-way-to-build-a-flash-website-using-document-class/260702/1 "2008-05-19T02:57:59Z")

</div>

What should I keep in mind when building a site using a document class?

and how do I do the preloaders?  
i would like to have a nice background while the rest of the movie is loading, in AS2, i would just move them to another frame. but in AS3, moving them to another frame and using a DocClass, their instance names would not be seen.

---

<div class="post-metadata">

### Author: ![ajcates](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ajcates/32/2435_2.png) [@ajcates](https://forum.kirupa.com/u/ajcates)
#### Post date: [May 19, 2008, 4:02am UTC](https://forum.kirupa.com/t/best-way-to-build-a-flash-website-using-document-class/260702/2 "2008-05-19T04:02:37Z")

</div>

The MVC approach.

…A view class that would handle displaying all of your animations and effects.  
…A controller class witch would decided on how your events are handled  
…Model classes that build different components of your website.

You start out with the controller class, there are events for when a movie starts playing and when things are done loading. The controller class would load in different models and views to help display your site.

---

<div class="post-metadata">

### Author: ![johnlouis](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/johnlouis/32/568_2.png) [@johnlouis](https://forum.kirupa.com/u/johnlouis)
#### Post date: [May 19, 2008, 2:17pm UTC](https://forum.kirupa.com/t/best-way-to-build-a-flash-website-using-document-class/260702/3 "2008-05-19T14:17:12Z")

</div>

that sounds interesting. I’ll look into that…  
you know any articles/tutorials involving MVC and Flash?

---

<div class="post-metadata">

### Author: ![doridori](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@doridori](https://forum.kirupa.com/u/doridori)
#### Post date: [May 20, 2008, 10:07am UTC](https://forum.kirupa.com/t/best-way-to-build-a-flash-website-using-document-class/260702/4 "2008-05-20T10:07:59Z")

</div>

[quote=ajcates;2327981]The MVC approach.

…A view class that would handle displaying all of your animations and effects.  
…A controller class witch would decided on how your events are handled  
…Model classes that build different components of your website.

You start out with the controller class, there are events for when a movie starts playing and when things are done loading. The controller class would load in different models and views to help display your site.[/quote]

This sounds really interesting, I’ve been looking for well-tried methods on building Flash sites.  
Post back if you find anything, johnlouis. I will as well if I find anything.
