| Flashscript classes (ActionScript 3) | Home | MX | MX 2004 | Flash 8 | Flash 9 |Flash 10 |PHP |Components | Snippets | Contact | |
MemArray |
|
|
| Property | Defined By |
|---|---|
|
staticObject
: Object
The object to store. |
MemArray |
| Property Detail |
|---|
|
staticObject property staticObject:Object [read-write] This will store the object information. Implementationpublic function get staticObject():Objectpublic 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);
}
}
}
|