Knowledge Base |
XML Slide Show V3
(views: 16778)
A sliding-fashion XML Slide Show flash component, both vertical and horizontal sliding transitions between slides. Supports auto slide and fast forward; it uses Loader Pro V3 to load slides. Here are all known issues for XML Slide Show V3. If you have any questions that you think we should discuss here please let us know.
Adding description for each slide
(2008-10-22 - views: 3532)
Q: Can I add a Dynamic text box with the slide description from xml, and how to do it (as)...thanks
A: Yes you can. All you have to do is to add the description parameter inside your xml file as I did <item itemEvents='true' contentPath='images/jmp01.jpg' description="this is the description for slide 1"/> , then place a dynamic textfield on stage set it's instanceName to "desc" and use the on change listener as below (this the AS3 version code for the AS2 example):
import com.jumpeye.Events.XmlSlideShowEvents;
componentInstance.addEventListener(XmlSlideShowEvents.CHANGE, changeHandler);
function changeHandler(evtObj:XmlSlideShowEvents):void {
descr.text = evtObj.item.description;
}
backBt.addEventListener(MouseEvent.CLICK, showPrevImage);
playBt.addEventListener(MouseEvent.CLICK, playSlideShow);
stopBt.addEventListener(MouseEvent.CLICK, stopSlideShow);
nextBt.addEventListener(MouseEvent.CLICK, showNextImage);
function showPrevImage(evtObj:MouseEvent):void {
componentInstance.previousImage();
}
function playSlideShow(evtObj:MouseEvent):void {
componentInstance.startSlideShow();
}
function stopSlideShow(evtObj:MouseEvent):void {
componentInstance.stopSlideShow();
}
function showNextImage(evtObj:MouseEvent):void {
componentInstance.nextImage();
}
import com.jumpeye.Events.XmlSlideShowEvents;
componentInstance.addEventListener(XmlSlideShowEvents.CHANGE, changeHandler);
function changeHandler(evtObj:XmlSlideShowEvents):void {
descr.text = evtObj.item.description;
}
backBt.addEventListener(MouseEvent.CLICK, showPrevImage);
playBt.addEventListener(MouseEvent.CLICK, playSlideShow);
stopBt.addEventListener(MouseEvent.CLICK, stopSlideShow);
nextBt.addEventListener(MouseEvent.CLICK, showNextImage);
function showPrevImage(evtObj:MouseEvent):void {
componentInstance.previousImage();
}
function playSlideShow(evtObj:MouseEvent):void {
componentInstance.startSlideShow();
}
function stopSlideShow(evtObj:MouseEvent):void {
componentInstance.stopSlideShow();
}
function showNextImage(evtObj:MouseEvent):void {
componentInstance.nextImage();
}
User Comments
Loading SWF
posted by ageshi on 2008-12-12
How can I load an external SWF file in to my gallery?
Loading SWF
posted by negush on 2008-12-15
You need to specify your .swf in the .xml file.
Tried this, but no go
posted by cowboystudios on 2009-05-06
I tried to replace the code, but it's erroring out -- can you post exactly where to place the new code? Does it replace everything or just add to it? Thanks.
Open a ticket support
Open a new ticket support an write there a detailed description of your problem and shortly you will get an answer to your problem. Please click the link below in order to open a new support ticket:
http://www.jumpeyecomponents.com/support/open.php
posted by florodebat on 2009-05-07
Open a new ticket support an write there a detailed description of your problem and shortly you will get an answer to your problem. Please click the link below in order to open a new support ticket:
http://www.jumpeyecomponents.com/support/open.php
Adding description for each slide
Cheers
posted by radiii on 2009-08-11
I have tried to complete what has been posted for this. The code does not work. Could you please give a AS3 file like you did for the AS2 version so that i can get this up and running. I need this to finish a website.Cheers
Adding description for each slide
I have tested the sample code above and it works fine for me. Please make sure that the "descr" textField exists on the stage. If this information does not helped you please open a new support ticket and write there about that issue and shortly someone will get back to you.
http://www.jumpeyecomponents.com/support/open.php
posted by florodebat on 2009-08-13
I have tested the sample code above and it works fine for me. Please make sure that the "descr" textField exists on the stage. If this information does not helped you please open a new support ticket and write there about that issue and shortly someone will get back to you.
http://www.jumpeyecomponents.com/support/open.php
Login to post your comment



