Here is example how you can extend and reuse your own code.
I saw at cu3er site cool gallery effects and I thought why not implement it with magento.
So I used my old gallery module and add some stuff.
This module is based on Magento custom designed gallery extended with:
– and files needed for cu3er to run in /skin/frontend/default/default/cu3er
– database tables remains the same
Main part is how you render your xml file.
That happeds in /app/code/local/Inchoo/GallFront/controllers/XmlController.php in indexAction().
Sample of xml is commented and my simple code is bellow.
Output of xml file is at: http://www.yourwebsite.com/inchoogallery/xml
For advanced manipulation with flash see documentation on cu3er website.
Advanced documentation for cu3er you can find on http://www.progressivered.com/cu3er/docs/
You can try to extend gallery tables with new fields which will handle data with effects.
Final result is at http://www.yourwebsite.com/inchoogallery/cu3er.
(For example you can try to use this module for category header images.)
Code is here.