| 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.
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. |