var animatedObjects : ArrayList = null;
// This gives: BCW0028: WARNING: Implicit downcast from 'Object' to 'AnimatedObject'.
for (var anim : AnimatedObject in animatedObjects)
{
}
Can somebody tell me how to fix this?
var animatedObjects : ArrayList = null;
// This gives: BCW0028: WARNING: Implicit downcast from 'Object' to 'AnimatedObject'.
for (var anim : AnimatedObject in animatedObjects)
{
}
Can somebody tell me how to fix this?
Here is a massive investigation of the issue !
In short (1) it can’t be done and (2) one should use List anyway !!