home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
linuxmafia.com 2016
/
linuxmafia.com.tar
/
linuxmafia.com
/
pub
/
humour
/
trojanhorse.swf
/
scripts
/
__Packages
/
classes
/
Node.as
< prev
next >
Wrap
Text File
|
2007-03-20
|
1KB
|
57 lines
class classes.Node extends Array
{
function Node()
{
super();
}
function _getText()
{
return this.__text;
}
function _getAt(i)
{
trace(this[0]);
return this[i];
}
function _getLast()
{
return this[this.length - 1];
}
function _getFirst()
{
return this[0];
}
function _hasNodes()
{
return this.length <= 0 ? false : true;
}
function _setAttributes(attr)
{
this.__attributes = attr;
}
function _setText(str)
{
this.__text = str;
}
function _getAttribute(str)
{
for(var _loc3_ in this.__attributes)
{
if(_loc3_ == str)
{
return this.__attributes[_loc3_];
}
}
return null;
}
function _getAllAttribute()
{
var _loc2_ = new Object();
for(var _loc3_ in this.__attributes)
{
_loc2_[_loc3_] = this.__attributes[_loc3_];
}
return _loc2_;
}
}