Hi Johannes,

thank for your replay but your way is more or less like mine:

riferimento["svolta_"+n]["m"] = n;

instead of

riferimento["svolta_"+n].m = n;

first and secon methods are ok because we use them on a MovieClip class, so we can add property "on the 
fly" because of the dynamic class. But what if we need to use this "n" number in a function 
defined in a lopp like mine but for a class that is not dynamic? So, no way to add a property "on the 
fly" because the class is not dynamic.
Well, I could add it using [] notation because there is no control on this, but 
is this syntactically correct in AS2? Or is this the only way (so it doesn't 
matter if it's correct or not, because you have no other way to do it) ?




_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to