Or you can do it in the class' constructor:
class ArrayTest {
public var aryItems:Array;
public function ArrayTest ()
{
this.aryItems = new Array();
}
public function test (str:String):Void
{
this.aryItems.push (str);
trace (this.aryItems);
}
}
I like this method best I think, so this is the one I'll be using.
thanks for all the thoughts!
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