[FMX04] Gallery + Menu loadimg from XML

I have combined the almighty popular xml gallery from kirupa tutorials with an XML menu from here as well (one of the many, don´t remember the thread, sorry).

Why? Well, the xml gallery load the first swf file (not using jpgs) and can browse it with the next/back button plues the arrow keys. Great.

The menu, loads from the same xml file, from the same nodes information, and it works as a “jump” menu, to go straight to certain swf. Perfect.

Separeted works great, BUT (yup, there was a question!) if I jump to a swf from the menu, when I press the arrow keys or use the button, it doesnt go to the next swf but to the next swf from where the gallery script was left.

I am out of ideas, and I atteched a sample, in case you didn´t understood what the heck am I saying.

Thank you for your attention and help.