I’m trying to build an object object from input text. I can load the information into a variable using LoadVar with no problem but when I load that information into an object ( object {} Flash does not recognize the object as on object.
Any ideas?
Yellow jacket
system
October 17, 2002, 12:17am
2
object is a key word and is the basic building block for a large amount of flash. name it something else.
system
October 17, 2002, 2:34am
3
I guess that my example is not clear. I am using the object initializer which has the syntax of object {};
and I am trying to get my input string e.g.
instr={prop1:value1,prop2:value2…propn:valuen}
into an object so that I can reference
instr.prop1, etc, and get the value of the properties
Does this make sense?
system
October 17, 2002, 9:03am
4
Well, if I understand what you’re trying to do, you want to loadVars into an object, right?
myLV.onLoad=function(){
myObject={};
myObject.prop1=this.value1;
// etc.
}
This should work, I think.
pom :cowboy: