carlenevs
asked on
Dynamic Functions for a menu in Flash
Hi all...
I have a Flash movie that reads in a varying number of items from an array. I want it to dynamically create the onRelease functions for the item.
For Example:
Menu 1 has 3 items, so Flash creates MENU 1, with 1 2 3 underneath. when you click on 1, you bring up item1, click on 2, bring up item2, etc.
Menu 2 has 5 items, flash does as above, but with 5 clickable links going to item1-5
Now, i have it hardcoded as "btn1.onRelease = function() { blah }" "btn2.onRelease..." etc. but i wanted to know if there's a dynamic way to do it.
Any help will be appreciated. An answer to the above or a better way to do it will be accepted. Thanks!
I have a Flash movie that reads in a varying number of items from an array. I want it to dynamically create the onRelease functions for the item.
For Example:
Menu 1 has 3 items, so Flash creates MENU 1, with 1 2 3 underneath. when you click on 1, you bring up item1, click on 2, bring up item2, etc.
Menu 2 has 5 items, flash does as above, but with 5 clickable links going to item1-5
Now, i have it hardcoded as "btn1.onRelease = function() { blah }" "btn2.onRelease..." etc. but i wanted to know if there's a dynamic way to do it.
Any help will be appreciated. An answer to the above or a better way to do it will be accepted. Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
recommend points for dutchfoxer :)