Hi,
and one other note,
don't do:
class ArrayTest {
public var items_arr:Array = [];
}
becoz that will be the same as :
class ArrayTest {
public static var items_arr:Array = []; }
initialize the array in your constructor instead.
greetz
JC
ps flash bug
On 10/10/06, Jon Bennett <[EMAIL PROTECTED]> wrote:
> You have to initialize (create) the array. Same as in AS 1.0.
>
> myArray = new Array();
>
> This:
>
> >> public var items_arr:Array;
>
> Doesn't create the array, it only typecasts the variable.
hah, wicked - thought it'd be s basic error but didn't think it would
be _that_ basic ;)
thanks!
jon
--
jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com