*Note on Gallery style urls and Flash
Flash interprets &(ampersand) as a break, so you will need to replace them with the unicode equivelent %26 in the url only.
Continue adding your additional vars with the &(ampersand).
You can also take advantage of the Dynamic, Keyword or even the experimental Tags modules via the mode command:
Here we poll for images no larger than 600x600 in album 49
1. Upload minislideshow.swf and your mediaRss(.php) file to your gallery2 base directory.
(if you have previous version of mediaRss.php, there have been some changes)
2. Edit line 30 of your mediaRss(.php) to reflect your setup (default will work for most).
* Hint: If your gallery is embedded the embedUri needs to reflect you CMS' embedUri
3. Place the following in your webpage where you want the mini slideshow to appear: (please consider using the swfObject method described below)
The above code sample would render something similar to:
Flash player 9,0,115,0 or above is required to view this demo, click here to upgrade.
Edit the g2_itemId in the xmlUrl to reflect the album you want to be displayed and also the site url.
* Hint: If you have url rewrite enabled, you may have to temporarily disable it to see the g2_itemId in your album's url.
* Hint: To allow fullscreen mode, add allowFullscreen="true" to your embed code. - Must have the latest FlashPlayer(9,0,115,0) to have wmode="transparent" and allowFullscreen="true" at the same time.
External Variables(case sensitive)
true or false
true or false
number in seconds to display a slide
Transition in. Default Fade. (see Available Transitions below)
Transition out. Default Fade. (see Available Transitions below)
Can be true. Default false.
top or bottom. Default false.
Replace all links with a single alternate link for the whole slideshow. Default false.
Specify the target for all links in the slideshow. Default _parent.
Title text color. Default FFFFFF(white).
Title text background color. Default 333333(charcoal).
true or false - use the full image instead of the thumb. Perfect for large displays (enables fullscreen icon)
hide the fullscreen icon when usefull is used Default false.
true(autohide) or false or always - show the controlBar. Default true. updated in 2.0.7
true or false Default true. added in 2.0.7
true or false - restart after last image. Default true. added in 2.0.7
number of images to preload. Default 4. added in 2.0.6
create a link back to your site in the right-click context menu eg. Copyright 2009 FlashYourWeb.com
link url for siteInfoText eg. http://www.flashyourweb.com
if you are using full images (useFull) images will scale to fill the screen in fullscreen mode. Default false. added in 2.0.8
Show/Hide the loader animation and image count while loading. added in 2.0.8
If you include an mp3Url, music will start as soon as its loaded and the slideshow is playing.
A small mute button will also be available. added in 3.0.0
Use the value of a custom field as your link. Effectively allowing for each image to have its own link. Full details here. added in 3.0.0
Link to the item's parent album Default false. added in 3.0.0
When useFull with G3 you can choose resizes instead of fullsize. added in 3.0.0
which sets the font-size to Stage.width/fontScale - so the smaller the number the larger the text size - default 20 added in 3.0.1
Add your external variables to your xmlUrl separated with an ampersand (&) ie.
xmlUrl=http://yoursite.com/gallery2/mediaRss.php?g2_itemId=1486 & shuffle=true & showDropShadow=true & delay=3
& transInType=Fade & transOutType=Random
Available Transitions(case sensitive)
Reveals the movie clip object by using appearing or disappearing rectangles.
Fades the movie clip object in or out.
Slides the movie clip object in from a specified direction.
Reveals or hides the movie clip object by using an animated mask of a square shape or a circle shape that zooms in or out.
Causes the movie clip object to appear or disappear like a photographic flash.
Reveals or hides the movie clip object by using randomly appearing or disappearing rectangles in a checkerboard pattern.
Rotates the movie clip object.
Scales the movie clip object horizontally or vertically.
Reveals or hides the movie clip object by using an animated mask of a shape that moves horizontally.
Zooms the movie clip object in or out by scaling it in proportion.
A mix of all.
Embedding with swfObject
Its the preferred method to embed flash these days.
1st. Include swfObject in the head of your site.
Any questions, comments, or suggestions are welcome in our forums.
We are a small development team which focuses on creating applications that positively impact Open Source communities and projects. Donate a few and help support FlashYourWeb development. Thanks!