i spoke too soon. the alternative methods listed here do not work inside my classes. they did work in tests on frame 1.

i ran into this situation inside a class.

does not work:
********************
array.slice(0)
array.length = 0;
array = [];

works:
********************
//any loop
array.pop()
//any loop end

i dont know what it is but they are not getting removed unless i specifially use array.pop(). offhand, could it be related to the fact that i'm referencing a static array? flash ide throws errors if i do anything but use static arrays in this class.

judah


Mark Winterhalder wrote:

On 11/21/05, Robert Edgar <[EMAIL PROTECTED]> wrote:
Why wouldn't you use splice(0)?

because i wouldn't have thought of that :)
seriously, splice obviously is the best solution.

Judah:
no, i don't remember ever needing to do that, and frankly, can't think
of such a situation right now. i figured you'd know one since you
asked :)

mark

--
http://snafoo.org/
jabber: [EMAIL PROTECTED]
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to