My account
Shopping cart
Knowledge base
Support

Knowledge Base

Important! All new questions are usually answered within the next business day.

XML Slide Show V3

(views: 31664)

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: 13149)
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();
}


Back