I have the following problem:
I added a normal swipegallery with 6 different images and now I would like that, when I slide through the gallery everytime another text appears. For example: when I swipe to image 1 text a should appear and when I swipe to image 2 text b should appear and so on.
Thanks in advance.
Here is an example on showing text/caption for each frame in the Swipable gallery
Add the swipable gallery on stage
Set the images
Draw a div and give it my-div as id in the Properties panel.
Add the following event:
Target= the gallery
Event = Frame shown
Action = customAction
CustomCode =
var gallery = document.getElementById('gwd-swipegallery_1');
var div = document.getElementById('my-div');
var text = {
1: "The text for frame 1",
2: "The text for frame 2",
3: "The text for frame 3"
};
div.textContent = text[gallery.currentIndex];
Note: gwd-swipegallery_1 is the id of the gallery, and my-div is the id for the div to show the caption