joder (perdon), pues a mi me estaba pasando lo mismo.....


----- Original Message ----- From: "Raúl Muñoz" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, July 19, 2005 10:59 AM
Subject: Re: [ASNativos] salu2 ( Clase 'Delegate' )


Yo la tengo pero no consigo utilizarla haciendo el import
correspondiente y en la ayuda tampoco me sale, será cosa del classpath?
[EMAIL PROTECTED] wrote:

ok, muchas gracias por la clase......


----- Original Message ----- From: "Miguel Angel Sánchez" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, July 19, 2005 10:05 AM
Subject: Re: [ASNativos] salu2 ( Clase 'Delegate' )


Viene con la actualización de Flash 7.2

De todas formas es esto:
C:\Archivos de programa\Macromedia\Flash MX 2004\es\First
Run\Classes\mx\utils\Delegate.as
<code>
//****************************************************************************
//Copyright (C) 2003-2004 Macromedia, Inc. All Rights Reserved.
//The following is Sample Code and is subject to all restrictions on
//such code as contained in the End User License Agreement accompanying
//this product.
//****************************************************************************

/**
The Delegate class creates a function wrapper to let you run a function
in the context
of the original object, rather than in the context of the second object,
when you pass a
function from one object to another.
*/

class mx.utils.Delegate extends Object
{
   /**
   Creates a functions wrapper for the original function so that it runs
   in the provided context.
   @parameter obj Context in which to run the function.
   @paramater func Function to run.
   */
   static function create(obj:Object, func:Function):Function
   {
       var f = function()
       {
           var target = arguments.callee.target;
           var func = arguments.callee.func;

           return func.apply(target, arguments);
       };

       f.target = obj;
       f.func = func;

       return f;
   }

   function Delegate(f:Function)
   {
       func = f;
   }

   private var func:Function;

   function createDelegate(obj:Object):Function
   {
       return create(obj, func);
   }
}
</code>

Un saludo
[EMAIL PROTECTED] escribió:

q tal compañeros?? iba a echarle un vistazo a la clase Delegate de la q habeis hablado en algunos mensajes, y me he dado cuenta de q yo no la tengo en el equipo, sabeis pq puede ser?? la version de flash, quizas???----------------------------------
Lista ASNativos:[email protected]
http://www.5dms.com/listas
----------------------------------



----------------------------------
Lista ASNativos:[email protected]
http://www.5dms.com/listas
----------------------------------


----------------------------------
Lista ASNativos:[email protected]
http://www.5dms.com/listas
----------------------------------



----------------------------------
Lista ASNativos:[email protected]
http://www.5dms.com/listas
----------------------------------


----------------------------------
Lista ASNativos:[email protected]
http://www.5dms.com/listas
----------------------------------

Responder a