To put on the screen of my layout a certain icon of the path / icons, I use the following code:
local icon = fe.add_image("icons/icon01.png", flx*0.215, fly*0.025, flw*0.1, flh*0.08);
icon.preserve_aspect_ratio = true;
icon.trigger = Transition.EndNavigation;
And it works perfectly.
But what I want is to put on the screen any of the icons contained in /icons in a random way, that comes out any of those that are inside /icons.
But I do not know how to do it. And I do not find anything either. Somebody could help me?
Sorry for my bad english.
Thanks in advance.