# How to best structure/code a website or presentation

**URL:** <https://forum.kirupa.com/t/how-to-best-structure-code-a-website-or-presentation/224984>\
**Category:** flash\
**Created:** [May 7, 2007, 7:50pm UTC](https://forum.kirupa.com/t/how-to-best-structure-code-a-website-or-presentation/224984 "2007-05-07T19:50:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![paramita](https://avatars.discourse-cdn.com/v4/letter/p/46a35a/32.png) [@paramita](https://forum.kirupa.com/u/paramita)\
**Post date:** [May 7, 2007, 7:50pm UTC](https://forum.kirupa.com/t/how-to-best-structure-code-a-website-or-presentation/224984/1 "2007-05-07T19:50:36Z")

</div>

I’m trying to figure out what is the best way to structure a simple interactive presentation in Flash - I only got a few months programming experience.  
Mine is as such:

home\_mc // contains buttons hbtn1\_mc  
page1\_mc

I have labeled frames on and off to allow for animation of pages elements.  
And in the root timeline the actionscript is as such:

this.onLoad = function () {  
this.home\_mc.gotoAndStop(“on”);}

this.home\_mc.hbtn1\_mc.onRelease = function () {  
this.p1\_mc.gotoAndStop(“on”);  
this.home\_mc.gotoAndStop(“off”);  
}

But it doesn’t work! Can you offer any ideas suggestions, or your way to structure this sort of project?
