although they may both achieve the same the first one is
correct as it uses 'strict data typing". this means the variable is
declared, in this case as an array object type, and then is given
Flash is quite relaxed in the way it handles variables in as
much as you can use
pete = 23
pete = "pete"
pete = true
although all three examples use different datatypes (number,
string, boolean) none needs to be explicily dclared. In languages
such as visual basic you are generally required to declare the
variable type as you instansiate it.