What does this mean for me? You will always be able to play your favorite games on Kongregate. However, certain site features may suddenly stop working and leave you with a severely degraded experience.
What should I do? We strongly urge all our users to upgrade to modern browsers for a better experience and improved security.
We suggest you install the latest version of one of these browsers:
Kongregate is a community-driven browser games portal with an open platform for all web games.
Get your games in front of thousands of users while monetizing through ads and virtual goods.
Learn more »
It’s like a list.
MyArray0 is the first item in the list, which acts just like a variable, so you could do
MyArray = new Array()
MyArray0 = 1
MyArray1 = 2
MyArray2 = “Hello”
MyArray3 = MyArray0 + MyArray1
trace(MyArray2 + String(MyArray3) //Traces “Hello3”
Arrays are a pretty basic data type… there should be tons of info about them if you Google it. The thing that you’re looking for is actually a method of the String class,
Say you have a bunch of data in your file. It could look like this:
`data 1_data 2_data 3_fred_taco_1234_abcd`
Whatever the data is, the important part is to separate each piece of the data with an underscore. Then, when you load that data into a string inside Flash, you can use the split function to create an array. Here’s what that code would look like:
`var myArray:Array = myString.split(“_”);`
Ok, now you have split all the little substrings (pieces of data) into an array. Now you can access the data like Kalinium was saying above. For example:
will trace the value
to the output window.
Hope that helps :)