FORUMS: list search recent posts

AS3 Flash Navbar Problem

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
sandra schmitt
AS3 Flash Navbar Problem
on Sep 29, 2009 at 6:31:21 am


I am trying to make the buttons work in this simple horizontal flash navbar. I know how I would make this work in AS2 but I am really trying to update myself to AS3 and really having hard time. Basically I have the first layer of navigation working so tat when you click on them a submenu appears underneath. I am having trouble making the sub buttons work. I tried to use same code as on top layer of navigation but I keep getting a null error. For some reason the sub-buttons under the first section "collections" worked, but when I try to do the same thing for the sections I get the error. Any help would greatly be appreciated. I didn't add the other button functions to the code because anytime I tried to add more that's when I got the error.

Thanks again!

Here is the link:

here is the code that I have in the first frame of my flash doc:


function goCollections(e:MouseEvent):void {
collections_btn.addEventListener(MouseEvent.CLICK, goCollections);

function goRaison(e:MouseEvent):void {
raison_btn.addEventListener(MouseEvent.CLICK, goRaison);

function goStores(e:MouseEvent):void {
stores_btn.addEventListener(MouseEvent.CLICK, goStores);

function goNews(e:MouseEvent):void {
news_btn.addEventListener(MouseEvent.CLICK, goNews);

function goContact(e:MouseEvent):void {
contact_btn.addEventListener(MouseEvent.CLICK, goContact);

function goSpring(e:MouseEvent):void {
spring_btn.addEventListener(MouseEvent.CLICK, goSpring);

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved