Hi all,
I’m having one of those moments where I can’t figuring out the simplest of tasks. And I’m presuming it’s just a silly syntax error on my part.
I’m calling a class that handles a nice lightning effect. And this is how I would initially set that up:
var l1:Lightning=new Lightning();
But I want to dynamically add a few more… using something like this:
for (var i:int = 0; i < 5; i++)
{
var l*:Lightning=new Lightning();
}
Anything I try just returns various different errors (mostly syntax). I have no idea what I’m doing.
Any help, or a point in the right direction would be great.
Thanks
Mark