FMX preloader for external images/swf

hi can someone look at my code, and point me to the right direction, i´m trying to have a dynamic creation of button that load external images an d swf and esternal text description, i´m some code and trying to improve it, my problem is the creation of the preloader to load the external images/swfs to the container, i know i can put a ppreloader for every swf, but for images no, i want a preloader for the container were the movies and images are loaded.

can someone help me please

jagunco BOT

It’s as easy as:

procent = Path_to_theContainer.getBytesTotal() / Path_to_theContainer.getBytesLoaded() * 100;

but dosen´t work