home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 149
/
MOBICLIC149.ISO
/
pc
/
DATA
/
DSS149
/
DSS149_03
/
DSS149_03.swf
/
scripts
/
dss149_03
/
ModuleConfig.as
< prev
next >
Wrap
Text File
|
2012-11-21
|
1KB
|
45 lines
package dss149_03
{
public class ModuleConfig
{
public var vitessePerso:int = 5;
private var listeObject:Object;
public function ModuleConfig(xml:*)
{
this.listeObject = {};
super();
if(xml != null && xml.length() > 0)
{
new ObjectInitializer(this,this.listeObject,xml);
}
}
public function toString() : void
{
var prop:* = null;
trace("--- moduleConfig ---");
for(prop in this.listeObject)
{
trace(prop," : ",this[prop]);
}
trace("--- ---");
}
public function toXMLString() : String
{
var prop:* = null;
trace("--- moduleConfig.toXML() ---");
var xml:String = "<Params>\n";
for(prop in this.listeObject)
{
xml += "\t<Param nom=\"" + prop + "\" valeur=\"" + this[prop] + "\"/>\n";
}
return xml + "</Params>";
}
}
}