MemArray

Package:
Class:
Inheritance:
biz.flashscript.utils
public class MemArray
N/A
The MemArray class is a simple static getter and setter for different objects. It was originally made for arrays but can also be used for other objects. To create an instance of the MemArray class use the constructor new MemArray().
Public Properties
Property Defined By
staticObject : Object
The object to store.
MemArray
Property Detail

staticObject property
staticObject:Object [read-write]

This will store the object information.

Implementation

public function get staticObject():Object
public function set staticObject(value:Object):void
Constructor Detail
MemArray ()  Constructor
public function MemArray()
Intializes a new MemArray instance.
Examples
Create a new fla file and name it Memoryarray.fla. Place the fla in the same folder as the biz folder. Then create an Actionscript file, name it Memoryarray.as and place this script.
package 
{
	import flash.display.Sprite;
	import biz.flashscript.utils.MemArray;

	public class Memoryarray extends Sprite
	{
		public function Memoryarray ():void
		{
			var myArray:Array = new Array("Apple","Oranges","Pears");
			var ma:MemArray = new MemArray();
			ma.staticObject = myArray;
			trace (ma.staticObject);//Apple,Oranges,Pears
		}
	}
}