Hey All,
Firstly, I have been using these forums for only a week and my knowledge of flash has improved so much. Thanks.
I have an example of what I want to do here, http://bh.skynet.ie/time.htm . When you press ‘change text’, a new city is displayed with it’s local time (still has bugs). What I want to do is create the effect seen in airports and train stations. If you press ‘change text’ continuously, you’ll see what I mean. Therefore, I want the text to be shuffling for about 2 seconds, a small bit of a delay.
Here is some code:
[AS]
on (press) {
_root.prev_text = _root.text
pArray = ["BANGKOK","MUMBAI","SINGAPORE","LONDON","AMSTERDAM","VANCOUVER","JAKARTA","AUCKLAND","CHICAGO","NYC"];
num = Math.floor(Math.random()*pArray.length);
_global.somevar = pArray[num];
_root.text = pArray[num];
reset();
}
[/AS]
Also, I will be migrating this to an XML file. How would I transfer a list of cities in a XML file into an array,
Thanks in advance.