Ok… I’m building an app where pretty much all the text is pulled in from XML, including the nav. It’s linked to a MySQL database which throws XML into the app via PHP… yada yada, not really important so lets cut to the chase.
I want the nav to be a dynamic menu made via the number of nodes in the XML file, and it’ll end up looking like the ‘related videos’ menu on you tube. I’ve got this working by making a movie clip with a text field in it… the app loops through the XML, gets the number of nodes, then dynamically creates the nav via instances of my movie clip with a text field in it…
so say i’ve got 3 nodes, all of which are going to be nav items… The app then dynamically creates 3 movie clips, positions them onstage, populates the text field inside each movie clip with the name of the link (taken from the XML), and adds an onRelease action to each movieclip.
The problem is, because of the nature of the app, the nav could grow to about 50 items over time, so i was gonna make it sit in a box with a scroll bar, like the side menu of related video clips on you tube.
I want to know if I can ditch the movieclips and just use a dynamic text field, and then make use of the scroll bar component so that, when the nav is generated, a scroll bar appears if there are too many items for the nav box to hold. In order to do this i need to know if i can launch action script via a link assigned to some dynamically created text… If not i guess i’ll just have to make my own little scroll bar that affects the dynamically created movieclips but I thought I’d ask anyway!
Thoughts? :thumb2: