# New Coder needs some Help =/

**URL:** <https://forum.kirupa.com/t/new-coder-needs-some-help/260271>\
**Category:** flash\
**Created:** [May 14, 2008, 1:06am UTC](https://forum.kirupa.com/t/new-coder-needs-some-help/260271 "2008-05-14T01:06:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Poncho5k](https://avatars.discourse-cdn.com/v4/letter/p/f9ae1b/32.png) [@Poncho5k](https://forum.kirupa.com/u/Poncho5k)\
**Post date:** [May 14, 2008, 1:06am UTC](https://forum.kirupa.com/t/new-coder-needs-some-help/260271/1 "2008-05-14T01:06:00Z")

</div>

thanks

---

<div class="post-metadata">

**Author:** ![snickelfritz](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@snickelfritz](https://forum.kirupa.com/u/snickelfritz)\
**Post date:** [May 14, 2008, 5:07am UTC](https://forum.kirupa.com/t/new-coder-needs-some-help/260271/2 "2008-05-14T05:07:28Z")

</div>

I feel your pain; this should be in chapter one of every book on Flash ever written.  
Here’s a basic example of what I think you’re looking for.  
[http://www.byrographics.com/AS3/siteTemplate/siteTemplate1.html](http://www.byrographics.com/AS3/siteTemplate/siteTemplate1.html)

I included examples of several techniques to construct this example:  
[LIST]  
[_]Event propagation; new feature of AS3/Flash9  
[_]“switch” conditional for button rollover.  
[_]“if” conditional for the click function.  
[_]TweenMax variable with removeTween.  
[_]TweenMax array.  
[_]Movieclip variable.  
[_]String variable.  
[_]buttonMode for movieclip.  
[/LIST]  
Here’s the fla.(AS3)  
[http://www.byrographics.com/AS3/siteTemplate1.fla.zip](http://www.byrographics.com/AS3/siteTemplate1.fla.zip)

TweenMax is required.  
[http://blog.greensock.com/tweenmaxas3/](http://blog.greensock.com/tweenmaxas3/)
