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

_______________________________________________
Flashcoders@chattyfig.figleaf.com
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