Menus and ActionScript

In today's tutorial we take a look at how we can write ActionScript to handle the user clicking on menu items. We get more familiar with the switch() language construct and see how Event Listeners work in Flash. This tutorial builds on the previous weeks' tutorial on building menus with the MenuBar component, but if's not mandatory to have read that - the completed FLA from last week is available as a download for you to start working with.

$2.79
- OR -

Overview

Table of Content:

  • Handling menu clicks
  • Cleverising the code

Allan Kent

Allan KentAllan comes from Cape Town, South Africa. He has been implicated in writing for several WROX, glasshaus, Wiley and Apress publications, generally in the 'cool stuff that PHP can do' sections.

You can catch up with him at his website http://www.mediafrenzy.co.za.

See All Postings From Allan Kent >>

Reviews

Not thorough enough

May 13, 2004 by Andrew Turner
This is my SECOND review (first one was deleted).  This tutorial is not complete.  It shows no real-world examples of how to use the code. Also, it's rated at "beginner" when it should be more in the intermediate-advanced level.  Give us what we paid for.

RE: Not thorough enough

October 30, 2004 by Bert Saper

A reasonable person would expect a tutorial on menus to show the user how TO LINK the menus, either to Flash frames, scenes, labels, or HTML URLs.

Instead, we get an unnecessary and advanced digression into Case and Switch statements.

Is it possible the author does not know how to link menus to  frames, scenes, labels, or URLs, thus he must rely on off-topic digressions?

To the editors:  You have a great revenue model here-- information on demand, but unless you deliver as advertised, it really won't get off the ground.

Perhaps the author can prove me wrong, demonstrate he can communicate the additional ActionScript code needed to LINK the menus (after all, that's what bloomin' menus are supposed to do) and post this additional information necessary to complete the tutorial.

What????

March 4, 2007 by chris popovic
I've walked through this tutorial a dozen times. I was hoping to find simple actionscript so that I could simply navigate to a new frame. Unless I'm missing it completely, this tutorial doesn't do this. WTF? I'm more confused than when I started.

You must me logged in to write a review.