Loading multiple instances of the same loader
hello everyone,
i trying load in 5 pictures 2 of pictures need added multiple times same scene. example use loader load 1 tree show tree 9 times. problem experiencing each object loads fine once objects same different x , y values placed @ last location set in loop.
for(var i=0; < loadedxml.resources.resource.(@type==loadedxml.resources.resource.@type[filecount]).@coun t; i++)
{
sprite.name = loadedxml.resources.resource.@type[filecount] + i;
sprite.x = loadedxml.objects.object.(@type==loadedxml.resources.resource.@type[filecount] && @instance == i).@x;
sprite.y = loadedxml.objects.object.(@type==loadedxml.resources.resource.@type[filecount] && @instance == i).@y;
table.push(sprite);
}
this code sets properties count equal 9 , last x , y set 20 , 20. of objects placed @ 20,20. though placed in there own element within array. if can please please it.
dexter
then xml parsing faulty.
More discussions in ActionScript 3
adobe
Comments
Post a Comment