This is probably something very simple, but I’m not too sure of the code used to access items within an array.
Suppose I have an array like this (using Kirupa’s Arrays example):
[font=Courier New][color=#0033cc]grocery = [“bananas”, “oranges”, “apples”, “kiwis”];
trace(grocery);[/color][/font]
[font=Courier New][color=black][/color][/font]
[font=Courier New]And we’ve loaded up the corresponding variables/text for “bananas”, thus the current item = bananas.[/font]
[font=Courier New]Therefore the next item would be “oranges”. How can I tell Flash that I want to access this next item?? (I’d like to be able to access it through a variable so that the same action can be applied when the item is “oranges” to move to the next item, which would now be “apples”). Thanx[/font]