Using the list module

If you are making list of link or even a menu for your flash website, you may want to use the link module.
  1. Drop an flashblock edit block onto the stage, from you library, and give it name, like "list"
  2. Click on the list edit block
  3. select "parameters"
  4. select "list" from the drop down menu
  5. Press Enter
  6. select "parameters" again
  7. Enter a number, like 10 in the "number of items" field
  8. Press Enter again.
Now you will see the list apear on the screen. Each of these is an edit block. You can select "parameter" for any of the list items created and give them a title. Ok, so cool now you have a nice list with mouse over animation but nothing else happens. Here is how you make the list actually do something when you click on an item.

Create the list callback function
Create a function on the _root of you main timeline like this. Everytime you click an item in the list it will call this fucntion.

function pc_list_press(mc, v) {
    trace("clicked from: "+mc);
    getURL(v, "_blank");
}

Now if you place web URLs into the variable fields of your list items, everytime you press an itme in your list, it will open the URL.

A More Intuitive pc_list_press callback function:
This one will let the editor to skip typing in the "http://"

function pc_list_press(mc, v) {
    if (v.length>2) {
        if (v.substring(0, v.indexOf(".")) == "www") {
            getURL("http://"+v, "_blank");
        } else {
            getURL(v, "_blank");
        }
    }
}

There are many possibilities. For example customize the above code so that you can call functions in your movie from the list generator. So essential, you can create menus using this module.