Thanks Dembicki

its resolved by adding a ASSetPropFlags(Array.prototype, "inArray", 1, 0);
code line after the declaration of the prototype

Thanks


On 12/15/06, Iv <[EMAIL PROTECTED]> wrote:

Hello Berkay,

do not use Array.prototype.
you can change this code very quick:

function inArray (array:Array, what:Object):Boolean {
for( var a = 0; a < this.length; a++ ) {
   if( this[a] == what ) {
     return true;
   }else if(this[a] instanceof Array) {
     return inArray(this[a], what);
   }
}
return false;
}


--
Ivan Dembicki

____________________________________________________________________________
[EMAIL PROTECTED] |                                        |
http://www.design.ru

_______________________________________________
[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




--
Berkay UNAL
[EMAIL PROTECTED]
_______________________________________________
[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

Reply via email to