I think that you need a singleton pattern

        Regards,

----
Hari  

> -----Mensaje original-----
> De: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] En nombre 
> de [EMAIL PROTECTED]
> Enviado el: viernes, 18 de noviembre de 2005 9:29
> Para: [email protected]
> Asunto: [Flashcoders] Return a class
> 
> I have a class named Drag with a static function create. 
> 
>  
> 
> A drag is created as :  Drag.create(...)
> 
>  
> 
> Now I would like to use a Factory to return a drag, but the problem is
> that the Factory has to return the class Drag instead of an 
> instance of
> Drag...
> 
>  
> 
> So what I would like to do is : 
> 
>  
> 
> myFactory.getDrag().create(...);
> 
>  
> 
> of something like : 
> 
>  
> 
> Class Drag = myFactory.getDrag();
> 
> Drag.create(...)
> 
>  
> 
>  
> 
> Is this possible?
> 
>  
> 
> Thx, Lieven Cardoen
> 
>  
> 
> Vriendelijke groeten,
> 
> Lieven Cardoen
> 
> PointX Multimedia
> 
> Engelse Wandeling 2 K18
> 
> 8500 Kortrijk
> 
> Tel. 056 361197
> 
> Fax 056 35 26 48
> 
> www.pointx.be <http://www.pointx.be/> 
> 
>  
> 
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to