Hello, I'm being passed a string that has a reference to an object in
dot-syntax like this: "myOb.property.property2.property3"
The object targeted may be a varying number of levels inside of the
top-level object.
I have tried to write this by turning the string into an array and
then creating the object but I'm not sure how:
public static function arToObj(a:Array):Object
{
var retObj:Object;
for ( var i:Number=0; i<a.length; i++ ) {
if (i==a.length-1){
//dont know what to do here !!
}
};
return retObj;
}
Am I going about this the right way or have I missed something obvious?
Any suggestions received gladly:)
Ali
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders