These forums are provided for community interactions only. For official support please submit a support ticket.
You are not logged in.
Maybe I've been up too long working on this - and I am no flash guru by any means. How can I initially display a 2x2 gallery, and then once an album is selected, have it display as it does currently located here: http://www.jeffreyallred.com/weddings/ I have tried layering things but was unsuccessful. This has to be somewhat of an easy fix, doesn't it?
I basically want to eliminate the drop down menu to the individual galleries and use the gallery view instead.
Offline
i think the layered solution is a good one.
basically you would have 2 layers.
top layer containes your thumbgrid 2.0 (my_tg) settings put on gallery,
basic layer is your existing ssp (my_ssp) as it is now.
your code would be something like:
import net.slideshowpro.slideshowpro.*;
function onSlideShowData(event:SSPDataEvent) {
if (event.type=="imageData") {
my_tg.visible = false;
my_tg.mouseEnabled = false;
my_tg.mouseChildren = false;
my_ssp.toggleDisplayMode("Auto");
}
}
my_ssp.addEventListener(SSPDataEvent.IMAGE_DATA, onSlideShowData);
function onGalleryStateEvent(event:SSPGalleryStateEvent) {
if (event.type=="galleryToggled") {
my_tg.visible = true;
my_tg.mouseEnabled = true;
my_tg.mouseChildren = true;
}
}
my_ssp.addEventListener(SSPGalleryStateEvent.GALLERY_TOGGLED, onGalleryStateEvent);Don't forget to name the instance of your thumbgrid to my_tg
And add my_ssp in your thumbgrid settings
Offline
I will give this a shot. Thank you for the help. I hope this works!
Offline
Okay, so it's close... when it loads, it automatically goes into the wedding gallery rather than showing all galleries. And for some reason when I click on a thumbnail, it displays the one to the right of the one I select.
Any additional help you are able to provide would be greatly appreciated... so close ![]()
Offline
this part is apparently causing the thumbnail thingy:
function onGalleryStateEvent(event:SSPGalleryStateEvent) {
if (event.type=="galleryToggled") {
my_tg.visible = true;
my_tg.mouseEnabled = true;
my_tg.mouseChildren = true;
}
}
my_ssp.addEventListener(SSPGalleryStateEvent.GALLERY_TOGGLED, onGalleryStateEvent);so that needs to be different.
for the gallery view, you need to put your ssp on 'open gallery'
Offline
sorry the top code is right!
but you need to remove these 2 lines:
my_ssp.toggleDisplayMode("Auto");
and
my_ssp.toggleDisplayMode("Manual");
to make sure the right thumbnail is selected.
I had trouble with the autoplay function (it made thumbgrid do weird stuff jumping back to an album) so i disabled it and set it to manual.
hope this helps
Offline
It just keeps opening the wedding gallery.
Offline
I am using the thumbgrid component on a layer above the ssp player component. The TG component is set to show Gallery at startup and Request Album (rather than display album). I have this code (below) to hide the TG layer when a gallery is clicked. It works fine, however, I want to make the TG layer visible again when the user clicks the ssp image - the tooltip reads 'Return to Thumbnails'.
I think I'm missing something quite straightforward - would be grateful for your help. Thanks.
import net.slideshowpro.slideshowpro.*;
my_ssp.toolLabels=["Open Gallery","Previous Group","Previous","Next","Next Group","Pause","Play","Full Screen","Normal Screen","Return to Thumbnails"];
function onSlideShowData(event:SSPDataEvent) {
if (event.type=="imageData") {
my_tg.visible = false;
my_tg.mouseEnabled = false;
my_tg.mouseChildren = false;
}
}
my_ssp.addEventListener(SSPDataEvent.IMAGE_DATA, onSlideShowData);
function onGalleryStateEvent(event:SSPGalleryStateEvent) {
if (event.type=="galleryToggled") {
my_tg.visible = true;
my_tg.mouseEnabled = true;
my_tg.mouseChildren = true;
}
}
my_ssp.addEventListener(SSPGalleryStateEvent.GALLERY_TOGGLED, onGalleryStateEvent);
Last edited by jameskessell (2012-08-23 11:25:00)
Offline
Duh - just realised how simple the answer is. Just add another function and event listener like so...
import net.slideshowpro.slideshowpro.*;
my_ssp.toolLabels=["Open Gallery","Previous Group","Previous","Next","Next Group","Pause","Play","Full Screen","Normal Screen","Return to Thumbnails"];
function onSlideShowData(event:SSPDataEvent) {
if (event.type=="imageData") {
my_tg.visible = false;
my_tg.mouseEnabled = false;
}
}
my_ssp.addEventListener(SSPDataEvent.IMAGE_DATA, onSlideShowData);
function onGalleryStateEvent(event:SSPGalleryStateEvent) {
if (event.type=="galleryToggled") {
my_tg.visible = true;
my_tg.mouseEnabled = true;
}
}
my_ssp.addEventListener(SSPGalleryStateEvent.GALLERY_TOGGLED, onGalleryStateEvent);
function onImageClick(event:SSPImageEvent) {
if(event.zone=="action") {
my_tg.visible = true;
my_tg.mouseEnabled = true;
}
}
my_ssp.addEventListener(SSPImageEvent.IMAGE_CLICK, onImageClick);
Offline