Mediashock
January 22nd, 2009, 11:13 AM
Hello,
I am creating a new instance of a class file lets say Person
var p:Person = new Person();
and then i am customizing it..
p.height = 44;
etc
now I am making 10 or 20 persons in a for loop.. but how can I clone ONE specific(3rd )of those
I was thinking
if(i==3){
// create instance of the already customized one .. i seen this done before but i cant seem to find info on it.. something like var newp3:DisplayObject as Person()??? please help
}
I am creating a new instance of a class file lets say Person
var p:Person = new Person();
and then i am customizing it..
p.height = 44;
etc
now I am making 10 or 20 persons in a for loop.. but how can I clone ONE specific(3rd )of those
I was thinking
if(i==3){
// create instance of the already customized one .. i seen this done before but i cant seem to find info on it.. something like var newp3:DisplayObject as Person()??? please help
}