Hi Coders,

I have a strange problem. When i try to use an Array prototype with a MC
Tween (http://hosted.zeh.com.br/mctween/)  , the callback of the MC Tween
prototype do not work.

Did anyone experienced this problem. If so please help

Here is a the array prototype i've used

Array.prototype.in_array = function( what ) {
  // andr3a [ 25 / 03 / 2004 ]
  // check if a value is inside an array
  // EXAMPLE:
  //      var myArray = new Array( "hello", "world", Array("one", "two") );
  //      trace( myArray.in_array( "hello" ) ); // true
  //      trace( myArray.in_array( "hi" ) ); // false
  //      trace( myArray.in_array( "two" ) ); // true
  for( var a = 0; a < this.length; a++ ) {
     if( this[a] == what ) {
        return true;
     }
     else if( this[a] instanceof Array ) {
        return this[a].in_array( what );
     }
  }
  return false;
}

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