Page 1 of 1
Update flash movie from cms made simple
Posted: Fri Mar 06, 2009 3:29 pm
by jondrew
Hi,
Does anybody know of or have a module that can update a flash movie? The movie in question is really just a flash gallery of images so the user would need to be able to update the images and add a description/bit of text to go with each.
Any help is much appreciated.
Thanks
Jon
Re: Update flash movie from cms made simple
Posted: Fri Mar 06, 2009 3:49 pm
by tomgsd
You could probably use the album module for this.
You would need to create a template that would output the pictures to xml and then load it into flash using the "showtemplate=false" parameter in the url.
Re: Update flash movie from cms made simple
Posted: Fri Mar 06, 2009 3:59 pm
by jondrew
Thanks Tom, I'm only a designer with some HTML/CSS skills really so wouldn't know how to output the images to xml? Any help you could give there would be much appreciated but I understand it might be too much to explain on a message board.
Thanks!
Re: Update flash movie from cms made simple
Posted: Fri Mar 06, 2009 4:32 pm
by tomgsd
Its not that difficult really - a basic example would go something like this:
1. Decide on an xml structure, eg:
Photo 1 description
Photo 2 description
Photo 3 description
2. Modify existing template (eg, lightbox - I believe the section which deals with the picture list is commented near the bottom) so that you have smarty variables in place of the urls and descriptions, eg (this is not accurate - it needs the correct variable names):
{foreach from=$pictures??? item=somevar}
picturelink}">{$somevar->picturedesc}
{/foreach}
3. Add some pictures then under "Content -> Pages", create a page with "Album" as the content type and choose your gallery.
4. From flash, create XML load script and use "yoursite.com/index.php?page=pagealias&showtemplate=false". You should then be able to access your pictures from flash and make a nice pretty slideshow!
Hope this helps!
Re: Update flash movie from cms made simple
Posted: Fri Mar 06, 2009 4:50 pm
by jondrew
Tom,
Thanks for that, sounds like it's not too complicated. Would you be on hand to give any advice and fix any problems on a commercial basis in the next couple of weeks or so?
Thanks
Jon
Re: Update flash movie from cms made simple
Posted: Fri Mar 06, 2009 4:58 pm
by tomgsd
No problem.
For any commercial stuff just PM me with the details.
Tom
Re: Update flash movie from cms made simple
Posted: Fri Mar 06, 2009 5:14 pm
by jondrew
Thanks Tom,
Is "yoursite.com/index.php?page=pagealias&showtemplate=false". What needs to go as the xml file?
eg would the code in flash say: new XML("yoursite.com/index.php?page=pagealias&showtemplate=false".)
cheers
Re: Update flash movie from cms made simple
Posted: Sat Mar 07, 2009 12:30 pm
by tomgsd
Yes it is. You can put any link into the flash as long as it returns a valid xml document.
Re: Update flash movie from cms made simple
Posted: Sat Mar 07, 2009 9:47 pm
by antosha
Thank you for that Tom,
I was looking to create a flash sideshow too, but never thought about the album module : )