14
mai
2007
mai
2007
Action Script // AS2
Classe création bibliothèque AS2 compatible MTASC
Voici la classe Action Script 2 que j’utilise pour créer un swf contenant toutes les classes AS2 afin de créer une bibliothèque disponible pour les swf chargés dynamiquement.
C’est la classe utilisée pour créer la bibliothèque du framework delfiweb.
Paramètres MTASC pour la compilation : -main -swf biblio.classes.swf -group -version 8
Détails :
-main : appel de la méthode main de la classe.
-swf : crée le swf biblio.classes.swf.
-group : regroupe toutes les classes dans le même clip.
-version 8 : créer un swf compatible avec la version 8 de flash.
//Classes delfiweb
import com.delfiweb.ui.AbstractContainer;
import com.delfiweb.ui.IContainer;
import com.delfiweb.ui.Label;
import com.delfiweb.ui.List;
import com.delfiweb.ui.Button;
import com.delfiweb.ui.PlaceHolder;
import com.delfiweb.ui.PopUp;
import com.delfiweb.ui.ScrollBar;
import com.delfiweb.ui.ToolTip;
import com.delfiweb.ui.TxtField;
import com.delfiweb.ui.ComboBox;
import com.delfiweb.ui.utils.LockedButton;
import com.delfiweb.form.Square;
import com.delfiweb.form.Background;
import com.delfiweb.form.AbstractForm;
import com.delfiweb.form.IForm;
import com.delfiweb.display.DisplayObject;
import com.delfiweb.display.IDisplayObject;
import com.delfiweb.display.MovieClipGraphic;
import com.delfiweb.events.EventManager;
import com.delfiweb.events.IEventManager;
import com.delfiweb.command.GetURLCommand;
import com.delfiweb.command.ICommand;
import com.delfiweb.utils.Copyright;
import com.delfiweb.utils.ManageFunction;
import com.delfiweb.utils.StringUtils;
//Classe Macromedia
import flash.geom.Transform;
import flash.geom.Point;
import flash.geom.Rectangle;
import flash.display.BitmapData;
import flash.filters.GlowFilter;
import flash.filters.BevelFilter;
import flash.filters.ColorMatrixFilter;
import flash.filters.DropShadowFilter;
// Classes diverses
import com.robertpenner.easing.Sine;
import com.gskinner.geom.ColorMatrix;
// Classes PixLib de Francis Bourre
import com.bourre.commands.Delegate;
import com.bourre.commands.Command;
import com.bourre.commands.CommandMS;
import com.bourre.commands.CommandManagerMS;
import com.bourre.commands.CommandFPS;
import com.bourre.commands.CommandManagerFPS;
import com.bourre.log.Stringifier;
import com.bourre.log.BasicStringifier;
import com.bourre.log.PixlibStringifier;
import com.bourre.log.PixlibDebug;
import com.bourre.log.LogChannel;
import com.bourre.log.LogListener;
import com.bourre.log.LogEvent;
import com.bourre.log.LogLevel;
import com.bourre.log.Logger;
import com.bourre.utils.ClassUtils;
//import com.bourre.structures.Point;
import com.bourre.mvc.IModel;
import com.bourre.core.HashCodeFactory;
import com.bourre.core.Model;
import com.bourre.visual.MovieClipHelper;
import com.bourre.events.IEvent;
import com.bourre.events.EventType;
import com.bourre.events.BasicEvent;
import com.bourre.events.EventBroadcaster;
import com.bourre.events.FrontController;
import com.bourre.events.IEventDispatcher;
import com.bourre.events.ListenerArray;
import com.bourre.transitions.IFrameListener;
import com.bourre.transitions.IFrameBeacon;
import com.bourre.transitions.FPSBeacon;
import com.bourre.data.iterator.Iterator;
import com.bourre.data.iterator.ObjectIterator;
import com.bourre.data.collections.Map;
import com.bourre.data.collections.AbstractFactory;
import com.bourre.data.libs.AbstractLib;
import com.bourre.data.libs.Config;
import com.bourre.data.libs.ConfigLoader;
import com.bourre.data.libs.ConfigLoaderEvent;
import com.bourre.data.libs.XMLToObjectDeserializer;
import com.bourre.data.libs.XMLToObject;
import com.bourre.data.libs.XMLToObjectEvent;
import com.bourre.data.libs.IXMLToObjectDeserializer;
import com.bourre.data.libs.ILibListener;
import com.bourre.data.libs.ILib;
import com.bourre.data.libs.GraphicLib;
import com.bourre.data.libs.GraphicLibLocator;
import com.bourre.data.libs.GraphicLibEvent;
import com.bourre.data.libs.LibEvent;
import com.bourre.remoting.AbstractServiceProxy;
import com.bourre.remoting.BasicFaultEvent;
import com.bourre.remoting.BasicResultEvent;
import com.bourre.remoting.IServiceProxyListener;
import com.bourre.remoting.RemotingConnection;
import com.bourre.remoting.RemotingDebug;
import com.bourre.remoting.ServiceMethod;
import com.bourre.remoting.ServiceProxy;
import com.bourre.remoting.ServiceProxyLocator;
import com.bourre.remoting.ServiceResponder;
class LibraryExemple
{
/* constantes */
private static var _instance:LibraryExemple; // L'instance unique du singleton
//Classes delfiweb
private static var fComponent1:Function = com.delfiweb.ui.Label;
private static var fComponent2:Function = com.delfiweb.ui.ScrollBar;
private static var fComponent3:Function = com.delfiweb.ui.Button;
private static var fComponent4:Function = com.delfiweb.ui.PlaceHolder;
private static var fComponent5:Function = com.delfiweb.ui.PopUp;
private static var fComponent6:Function = com.delfiweb.ui.ToolTip;
private static var fComponent7:Function = com.delfiweb.ui.TxtField;
private static var fComponent8:Function = com.delfiweb.ui.utils.LockedButton;
private static var fComponent9:Function = com.delfiweb.form.Square;
private static var fComponent10:Function = com.delfiweb.display.DisplayObject;
private static var fComponent11:Function = com.delfiweb.display.IDisplayObject;
private static var fComponent12:Function = com.delfiweb.events.EventManager;
private static var fComponent13:Function = com.delfiweb.events.IEventManager;
private static var fComponent14:Function = com.delfiweb.command.GetURLCommand;
private static var fComponent15:Function = com.delfiweb.command.ICommand;
private static var fComponentA16:Function = com.delfiweb.command.ICommand;
private static var fComponentA17:Function = com.delfiweb.utils.ManageFunction;
private static var fComponentA18:Function = com.delfiweb.utils.StringUtils;
private static var fComponentA19:Function = com.delfiweb.ui.AbstractContainer;
private static var fComponentA20:Function = com.delfiweb.ui.IContainer;
private static var fComponentA21:Function = com.delfiweb.display.MovieClipGraphic;
private static var fComponentA22:Function = com.delfiweb.form.Background;
private static var fComponentA23:Function = com.delfiweb.form.AbstractForm;
private static var fComponentA24:Function = com.delfiweb.form.IForm;
private static var fComponentA25:Function = com.delfiweb.ui.List;
private static var fComponentA26:Function = com.delfiweb.ui.ComboBox;
//Classe Macromedia
private static var fComponent27:Function = flash.geom.Transform;
private static var fComponent28:Function = flash.geom.Point;
private static var fComponent29:Function = flash.geom.Rectangle;
private static var fComponent30:Function = flash.display.BitmapData;
private static var fComponent31:Function = flash.filters.GlowFilter;
private static var fComponent32:Function = flash.filters.BevelFilter;
private static var fComponent33:Function = flash.filters.ColorMatrixFilter;
private static var fComponent34:Function = flash.filters.DropShadowFilter;
// Classes diverses
private static var fComponent36:Function = com.robertpenner.easing.Sine;
private static var fComponent37:Function = com.gskinner.geom.ColorMatrix;
// Classes PixLib de Francis Bourre
private static var fComponent38:Function = com.bourre.commands.Delegate;
private static var fComponent39:Function = com.bourre.commands.Command;
private static var fComponent40:Function = com.bourre.commands.CommandMS;
private static var fComponent41:Function = com.bourre.commands.CommandManagerMS;
private static var fComponent42:Function = com.bourre.commands.CommandFPS;
private static var fComponent43:Function = com.bourre.commands.CommandManagerFPS;
private static var fComponent44:Function = com.bourre.log.Stringifier;
private static var fComponent45:Function = com.bourre.log.BasicStringifier;
private static var fComponent46:Function = com.bourre.log.PixlibStringifier;
private static var fComponent47:Function = com.bourre.log.PixlibDebug;
private static var fComponent48:Function = com.bourre.log.LogChannel;
private static var fComponent49:Function = com.bourre.log.LogListener;
private static var fComponent50:Function = com.bourre.log.LogEvent;
private static var fComponent51:Function = com.bourre.log.LogLevel;
private static var fComponent52:Function = com.bourre.log.Logger;
private static var fComponent53:Function = com.bourre.utils.ClassUtils;
//private static var fComponent:Function = com.bourre.structures.Point;
private static var fComponent54:Function = com.bourre.mvc.IModel;
private static var fComponent55:Function = com.bourre.core.HashCodeFactory;
private static var fComponent56:Function = com.bourre.core.Model;
private static var fComponent57:Function = com.bourre.visual.MovieClipHelper;
private static var fComponent58:Function = com.bourre.events.IEvent;
private static var fComponent59:Function = com.bourre.events.EventType;
private static var fComponent60:Function = com.bourre.events.BasicEvent;
private static var fComponent61:Function = com.bourre.events.EventBroadcaster;
private static var fComponent62:Function = com.bourre.events.FrontController;
private static var fComponent63:Function = com.bourre.events.IEventDispatcher;
private static var fComponent64:Function = com.bourre.events.ListenerArray;
private static var fComponent65:Function = com.bourre.transitions.IFrameListener;
private static var fComponent66:Function = com.bourre.transitions.IFrameBeacon;
private static var fComponent67:Function = com.bourre.transitions.FPSBeacon;
private static var fComponent68:Function = com.bourre.data.iterator.Iterator;
private static var fComponent69:Function = com.bourre.data.iterator.ObjectIterator;
private static var fComponent70:Function = com.bourre.data.collections.Map;
private static var fComponent71:Function = com.bourre.data.collections.AbstractFactory;
private static var fComponent72:Function = com.bourre.data.libs.AbstractLib;
private static var fComponent73:Function = com.bourre.data.libs.Config;
private static var fComponent74:Function = com.bourre.data.libs.ConfigLoader;
private static var fComponent75:Function = com.bourre.data.libs.ConfigLoaderEvent;
private static var fComponent76:Function = com.bourre.data.libs.XMLToObjectDeserializer;
private static var fComponent77:Function = com.bourre.data.libs.XMLToObject;
private static var fComponent78:Function = com.bourre.data.libs.XMLToObjectEvent;
private static var fComponent79:Function = com.bourre.data.libs.IXMLToObjectDeserializer;
private static var fComponent80:Function = com.bourre.data.libs.ILibListener;
private static var fComponent81:Function = com.bourre.data.libs.ILib;
private static var fComponent82:Function = com.bourre.data.libs.GraphicLib;
private static var fComponent83:Function = com.bourre.data.libs.GraphicLibLocator;
private static var fComponent84:Function = com.bourre.data.libs.GraphicLibEvent;
private static var fComponent85:Function = com.bourre.data.libs.LibEvent;
private static var fComponent86:Function = com.bourre.remoting.AbstractServiceProxy;
private static var fComponent87:Function = com.bourre.remoting.BasicFaultEvent;
private static var fComponent88:Function = com.bourre.remoting.BasicResultEvent;
private static var fComponent89:Function = com.bourre.remoting.IServiceProxyListener;
private static var fComponent90:Function = com.bourre.remoting.RemotingConnection;
private static var fComponent91:Function = com.bourre.remoting.RemotingDebug;
private static var fComponent92:Function = com.bourre.remoting.ServiceMethod;
private static var fComponent93:Function = com.bourre.remoting.ServiceProxy;
private static var fComponent94:Function = com.bourre.remoting.ServiceProxyLocator;
private static var fComponent95:Function = com.bourre.remoting.ServiceResponder;
/**
* Constructeur vide
*
* @method LibraryExemple
* @param container : le movie clip sur lequel le swf est instancié
* @return Void
*/
private function LibraryExemple (container:MovieClip)
{
}
/**
* C'est le point d'entrée du programme, appelé sur la première image du fla,
* elle est compatible MTASC
*
* @method static main
* @return Void
*/
public static function main (container:MovieClip)
{
// appel uniquement lors de l'ouverture de l'appli.
_instance = new LibraryExemple(container);
}
/*----------------------------------------------------------*/
/*------------- Divers -------------------------------------*/
/*----------------------------------------------------------*/
/**
* Renvoi la représentation de l'objet sous forme de chaîne.
* @usage trace(myPH);
* @return la représentation de l'objet sous forme de chaîne.
*/
public function toString ():String
{
return "[object LibraryExemple]";
}
}
import com.delfiweb.ui.AbstractContainer;
import com.delfiweb.ui.IContainer;
import com.delfiweb.ui.Label;
import com.delfiweb.ui.List;
import com.delfiweb.ui.Button;
import com.delfiweb.ui.PlaceHolder;
import com.delfiweb.ui.PopUp;
import com.delfiweb.ui.ScrollBar;
import com.delfiweb.ui.ToolTip;
import com.delfiweb.ui.TxtField;
import com.delfiweb.ui.ComboBox;
import com.delfiweb.ui.utils.LockedButton;
import com.delfiweb.form.Square;
import com.delfiweb.form.Background;
import com.delfiweb.form.AbstractForm;
import com.delfiweb.form.IForm;
import com.delfiweb.display.DisplayObject;
import com.delfiweb.display.IDisplayObject;
import com.delfiweb.display.MovieClipGraphic;
import com.delfiweb.events.EventManager;
import com.delfiweb.events.IEventManager;
import com.delfiweb.command.GetURLCommand;
import com.delfiweb.command.ICommand;
import com.delfiweb.utils.Copyright;
import com.delfiweb.utils.ManageFunction;
import com.delfiweb.utils.StringUtils;
//Classe Macromedia
import flash.geom.Transform;
import flash.geom.Point;
import flash.geom.Rectangle;
import flash.display.BitmapData;
import flash.filters.GlowFilter;
import flash.filters.BevelFilter;
import flash.filters.ColorMatrixFilter;
import flash.filters.DropShadowFilter;
// Classes diverses
import com.robertpenner.easing.Sine;
import com.gskinner.geom.ColorMatrix;
// Classes PixLib de Francis Bourre
import com.bourre.commands.Delegate;
import com.bourre.commands.Command;
import com.bourre.commands.CommandMS;
import com.bourre.commands.CommandManagerMS;
import com.bourre.commands.CommandFPS;
import com.bourre.commands.CommandManagerFPS;
import com.bourre.log.Stringifier;
import com.bourre.log.BasicStringifier;
import com.bourre.log.PixlibStringifier;
import com.bourre.log.PixlibDebug;
import com.bourre.log.LogChannel;
import com.bourre.log.LogListener;
import com.bourre.log.LogEvent;
import com.bourre.log.LogLevel;
import com.bourre.log.Logger;
import com.bourre.utils.ClassUtils;
//import com.bourre.structures.Point;
import com.bourre.mvc.IModel;
import com.bourre.core.HashCodeFactory;
import com.bourre.core.Model;
import com.bourre.visual.MovieClipHelper;
import com.bourre.events.IEvent;
import com.bourre.events.EventType;
import com.bourre.events.BasicEvent;
import com.bourre.events.EventBroadcaster;
import com.bourre.events.FrontController;
import com.bourre.events.IEventDispatcher;
import com.bourre.events.ListenerArray;
import com.bourre.transitions.IFrameListener;
import com.bourre.transitions.IFrameBeacon;
import com.bourre.transitions.FPSBeacon;
import com.bourre.data.iterator.Iterator;
import com.bourre.data.iterator.ObjectIterator;
import com.bourre.data.collections.Map;
import com.bourre.data.collections.AbstractFactory;
import com.bourre.data.libs.AbstractLib;
import com.bourre.data.libs.Config;
import com.bourre.data.libs.ConfigLoader;
import com.bourre.data.libs.ConfigLoaderEvent;
import com.bourre.data.libs.XMLToObjectDeserializer;
import com.bourre.data.libs.XMLToObject;
import com.bourre.data.libs.XMLToObjectEvent;
import com.bourre.data.libs.IXMLToObjectDeserializer;
import com.bourre.data.libs.ILibListener;
import com.bourre.data.libs.ILib;
import com.bourre.data.libs.GraphicLib;
import com.bourre.data.libs.GraphicLibLocator;
import com.bourre.data.libs.GraphicLibEvent;
import com.bourre.data.libs.LibEvent;
import com.bourre.remoting.AbstractServiceProxy;
import com.bourre.remoting.BasicFaultEvent;
import com.bourre.remoting.BasicResultEvent;
import com.bourre.remoting.IServiceProxyListener;
import com.bourre.remoting.RemotingConnection;
import com.bourre.remoting.RemotingDebug;
import com.bourre.remoting.ServiceMethod;
import com.bourre.remoting.ServiceProxy;
import com.bourre.remoting.ServiceProxyLocator;
import com.bourre.remoting.ServiceResponder;
class LibraryExemple
{
/* constantes */
private static var _instance:LibraryExemple; // L'instance unique du singleton
//Classes delfiweb
private static var fComponent1:Function = com.delfiweb.ui.Label;
private static var fComponent2:Function = com.delfiweb.ui.ScrollBar;
private static var fComponent3:Function = com.delfiweb.ui.Button;
private static var fComponent4:Function = com.delfiweb.ui.PlaceHolder;
private static var fComponent5:Function = com.delfiweb.ui.PopUp;
private static var fComponent6:Function = com.delfiweb.ui.ToolTip;
private static var fComponent7:Function = com.delfiweb.ui.TxtField;
private static var fComponent8:Function = com.delfiweb.ui.utils.LockedButton;
private static var fComponent9:Function = com.delfiweb.form.Square;
private static var fComponent10:Function = com.delfiweb.display.DisplayObject;
private static var fComponent11:Function = com.delfiweb.display.IDisplayObject;
private static var fComponent12:Function = com.delfiweb.events.EventManager;
private static var fComponent13:Function = com.delfiweb.events.IEventManager;
private static var fComponent14:Function = com.delfiweb.command.GetURLCommand;
private static var fComponent15:Function = com.delfiweb.command.ICommand;
private static var fComponentA16:Function = com.delfiweb.command.ICommand;
private static var fComponentA17:Function = com.delfiweb.utils.ManageFunction;
private static var fComponentA18:Function = com.delfiweb.utils.StringUtils;
private static var fComponentA19:Function = com.delfiweb.ui.AbstractContainer;
private static var fComponentA20:Function = com.delfiweb.ui.IContainer;
private static var fComponentA21:Function = com.delfiweb.display.MovieClipGraphic;
private static var fComponentA22:Function = com.delfiweb.form.Background;
private static var fComponentA23:Function = com.delfiweb.form.AbstractForm;
private static var fComponentA24:Function = com.delfiweb.form.IForm;
private static var fComponentA25:Function = com.delfiweb.ui.List;
private static var fComponentA26:Function = com.delfiweb.ui.ComboBox;
//Classe Macromedia
private static var fComponent27:Function = flash.geom.Transform;
private static var fComponent28:Function = flash.geom.Point;
private static var fComponent29:Function = flash.geom.Rectangle;
private static var fComponent30:Function = flash.display.BitmapData;
private static var fComponent31:Function = flash.filters.GlowFilter;
private static var fComponent32:Function = flash.filters.BevelFilter;
private static var fComponent33:Function = flash.filters.ColorMatrixFilter;
private static var fComponent34:Function = flash.filters.DropShadowFilter;
// Classes diverses
private static var fComponent36:Function = com.robertpenner.easing.Sine;
private static var fComponent37:Function = com.gskinner.geom.ColorMatrix;
// Classes PixLib de Francis Bourre
private static var fComponent38:Function = com.bourre.commands.Delegate;
private static var fComponent39:Function = com.bourre.commands.Command;
private static var fComponent40:Function = com.bourre.commands.CommandMS;
private static var fComponent41:Function = com.bourre.commands.CommandManagerMS;
private static var fComponent42:Function = com.bourre.commands.CommandFPS;
private static var fComponent43:Function = com.bourre.commands.CommandManagerFPS;
private static var fComponent44:Function = com.bourre.log.Stringifier;
private static var fComponent45:Function = com.bourre.log.BasicStringifier;
private static var fComponent46:Function = com.bourre.log.PixlibStringifier;
private static var fComponent47:Function = com.bourre.log.PixlibDebug;
private static var fComponent48:Function = com.bourre.log.LogChannel;
private static var fComponent49:Function = com.bourre.log.LogListener;
private static var fComponent50:Function = com.bourre.log.LogEvent;
private static var fComponent51:Function = com.bourre.log.LogLevel;
private static var fComponent52:Function = com.bourre.log.Logger;
private static var fComponent53:Function = com.bourre.utils.ClassUtils;
//private static var fComponent:Function = com.bourre.structures.Point;
private static var fComponent54:Function = com.bourre.mvc.IModel;
private static var fComponent55:Function = com.bourre.core.HashCodeFactory;
private static var fComponent56:Function = com.bourre.core.Model;
private static var fComponent57:Function = com.bourre.visual.MovieClipHelper;
private static var fComponent58:Function = com.bourre.events.IEvent;
private static var fComponent59:Function = com.bourre.events.EventType;
private static var fComponent60:Function = com.bourre.events.BasicEvent;
private static var fComponent61:Function = com.bourre.events.EventBroadcaster;
private static var fComponent62:Function = com.bourre.events.FrontController;
private static var fComponent63:Function = com.bourre.events.IEventDispatcher;
private static var fComponent64:Function = com.bourre.events.ListenerArray;
private static var fComponent65:Function = com.bourre.transitions.IFrameListener;
private static var fComponent66:Function = com.bourre.transitions.IFrameBeacon;
private static var fComponent67:Function = com.bourre.transitions.FPSBeacon;
private static var fComponent68:Function = com.bourre.data.iterator.Iterator;
private static var fComponent69:Function = com.bourre.data.iterator.ObjectIterator;
private static var fComponent70:Function = com.bourre.data.collections.Map;
private static var fComponent71:Function = com.bourre.data.collections.AbstractFactory;
private static var fComponent72:Function = com.bourre.data.libs.AbstractLib;
private static var fComponent73:Function = com.bourre.data.libs.Config;
private static var fComponent74:Function = com.bourre.data.libs.ConfigLoader;
private static var fComponent75:Function = com.bourre.data.libs.ConfigLoaderEvent;
private static var fComponent76:Function = com.bourre.data.libs.XMLToObjectDeserializer;
private static var fComponent77:Function = com.bourre.data.libs.XMLToObject;
private static var fComponent78:Function = com.bourre.data.libs.XMLToObjectEvent;
private static var fComponent79:Function = com.bourre.data.libs.IXMLToObjectDeserializer;
private static var fComponent80:Function = com.bourre.data.libs.ILibListener;
private static var fComponent81:Function = com.bourre.data.libs.ILib;
private static var fComponent82:Function = com.bourre.data.libs.GraphicLib;
private static var fComponent83:Function = com.bourre.data.libs.GraphicLibLocator;
private static var fComponent84:Function = com.bourre.data.libs.GraphicLibEvent;
private static var fComponent85:Function = com.bourre.data.libs.LibEvent;
private static var fComponent86:Function = com.bourre.remoting.AbstractServiceProxy;
private static var fComponent87:Function = com.bourre.remoting.BasicFaultEvent;
private static var fComponent88:Function = com.bourre.remoting.BasicResultEvent;
private static var fComponent89:Function = com.bourre.remoting.IServiceProxyListener;
private static var fComponent90:Function = com.bourre.remoting.RemotingConnection;
private static var fComponent91:Function = com.bourre.remoting.RemotingDebug;
private static var fComponent92:Function = com.bourre.remoting.ServiceMethod;
private static var fComponent93:Function = com.bourre.remoting.ServiceProxy;
private static var fComponent94:Function = com.bourre.remoting.ServiceProxyLocator;
private static var fComponent95:Function = com.bourre.remoting.ServiceResponder;
/**
* Constructeur vide
*
* @method LibraryExemple
* @param container : le movie clip sur lequel le swf est instancié
* @return Void
*/
private function LibraryExemple (container:MovieClip)
{
}
/**
* C'est le point d'entrée du programme, appelé sur la première image du fla,
* elle est compatible MTASC
*
* @method static main
* @return Void
*/
public static function main (container:MovieClip)
{
// appel uniquement lors de l'ouverture de l'appli.
_instance = new LibraryExemple(container);
}
/*----------------------------------------------------------*/
/*------------- Divers -------------------------------------*/
/*----------------------------------------------------------*/
/**
* Renvoi la représentation de l'objet sous forme de chaîne.
* @usage trace(myPH);
* @return la représentation de l'objet sous forme de chaîne.
*/
public function toString ():String
{
return "[object LibraryExemple]";
}
}