well if you have different "objectsnames" as a string in you array, you can trigger it for example every x seconds , pick array value at x
if that equels a certain "object1"
create sprite1
if that equels a certain "object2"
create sprite2
i dont think you can have a string directly spawn a sprite