(c) ATOMGAS,2001 Luzifer Altenberg

Object.LVM (LoadVarsManager Object)
Object.LV (LoadVars Object)
version 1.1

to get a more OO like loadVariables in flash 5
with a useage more like the XML Object (but different)

the difference to the XML object is that the LV Object
does not need a result Object for sendAndLoad
instead you can add a listener to listen to the onLoad and onTimeOut event
for .load and .sendAndLoad

needs the LVM movieClip in the library of your flashfile (included in the example and the template)

<10.1.2002> changed inherite from FLEM because of a bug posted by Tatsuo Kato 10.1.2001

FLEM based http://chattyfig.figleaf.com/flem


[example
] [download zip]

Object.LVM (LoadVarsManager Object)
does not to be constructed is already there if you use
lvm.as (needs the LVM mc in the library)
Object.LVM.addGlobals(obj) add global vars
obj can be a movieclip or a generic object
Object.LVM.deleteGlobal(name) delete a global var
Object.LVM.timeOut = 15 by changing this you change the default timeOut in seconds
it is 30 seconds by default
Objet.LV (LoadVars Object)
myLV = new Object.LV() contruct
myLV.addVars(obj) obj can be a movieclip or a generic object
myLV.sendAndLoad(url,method) method is optional ( "GET" | "POST" )
myLV.load(url)  
myLV.setTimeOut(seconds) set the timeOut of this LV Object
myLV.addFLEMListener(listener) the listener needs to be an object with a
onLoad(mc) [where mc is the container in which the loaded vars are]
and onTimeOut() function
myLV.empty() delete all vars in this LV object
myLV.die() use this function before delete the LV object
it will remove the used movieClips and Listeners
the Listener 
can be a object like this one
//the listener
myListener = function(timeline){
	this.timeline = timeline || eval(_target);
};
myListener.prototype.onLoad = function(mc){
	this.timeline.result = mc.result;
	this.timeline.gotoAndStop("result");
};
myListener.prototype.onTimeOut = function(mc){
	this.timeline.gotoAndStop("timeOut");
};