Thanks for the easy way to empty the Array, But I want after that to push the elements again, as you see from the code this is a function that been called to add coordinates of a graph into array, the values are dispx, dispy to be pushed to arrX and arrY which both are arrays. The problem after I empty both arrays and I call that function again, it gives me this run time error:
TypeError: Error #1010: A term is undefined and has no properties.
at Equation_Ad_fla::MainTimel
So please help me to find away to get over this error and allow me to add values again to my arrays
Thanks
Main Topics
Browse All Topics





by: CyanBluePosted on 2009-02-28 at 10:56:12ID: 23764828
I don't really understand the code you have, but you can easily remove the content of the array by setting the length to 0...
theArray.length = 0;
CyanBlue