Error in this code…
Error number 1502
I dunno how to solve this sets of codes.
Error occurs in the for loop.
For loop code:
for(var i:int = prevCount; i < count; i++)
{
if(i <= 8)
{
apple.x=Math.random();
addChild(monkey);
}
}
i got another set of for loop whereby i set it as var r the rest is of a different objects called orange
For loop code:
for(var i:int = prevCount; i < count; i++)
{
if(i <= 8)
{
orange.x=Math.random();
addChild(monkey);
}
}
If anyone out there can help me solve the code, kindly leave your email in the reply thread and i will send u my set of codes to solve the error.Thanks alot.