Hi
I have a several objects nested within an array.
I’m trying to reference a property of one specific object (intel).
function eventGenerator():void
{
var randomArea:Number;
randomArea = Math.ceil(Math.random()*5);
var eventArea= ainPlaceNames[randomArea];
trace(eventArea.intel)
}
ainPlace names is the array’s name. The random area variable contains the co ordinate on the array for the object. Each object on the array has a property called intel. The idea is I want to able to store the value of intel in a number and use in an equation. I would also like to be able to adjust the number. Would anyone here be able to help? O___o
the trace function here returns an error saying it is undefined so eventArea.intel for some reason isn’t referencing the intel property of the object.
cheers