Damn I've been Kyat ninja'd
[quote]//On the layout there are four hidden objects called (book,table,spoon,lamp) each of them has at least 10 frames, so I can't create only one object and then calling a random frame.[/quote]
You can... And you should!
Basically I would setup the layout this way:
A Sprite called 'item' in which you put your animation of book,table,spoon,lamp.
Name the animations properly.
Then if you want to call a random object
[code]System: Create item
item: set animation to tokenat( pool , floor( random( tokenCount(pool ,",") ) ), "," );[/code]
If you want to pick a specific object and play his animation
[code]item: is animation "spoon" is playing
-> item: start animation from current frame[/code]
Little remarque on the last one: even if the animation is stopped as long as you display a frame from a specific animation the "is animation playing" is true.
In short you can use the name of the animation as... naming as you implied I think.
Also, if you have many animation per object, you can still use the name as a prefix
spoon_idle, spoon_run (oh noes a running spoon /o/)