Knowledge Base |
XML Slide Show V3
(views: 21682)
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
(2007-10-01 - views: 6934)
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:
myEventListener = new Object();
myEventListener.change = function(args){
descr.text = args.item.description;
}
Attached are the example files.
Files: descriptionText.zip
myEventListener = new Object();
myEventListener.change = function(args){
descr.text = args.item.description;
}
Attached are the example files.
Files: descriptionText.zip
User Comments
very simple
(I've used the files attached to this item...so you can edit the example files provided for this item)
<item itemEvents='true' contentPath='images/jmp01.jpg' description="this is the description for slide 1" imageTitle="this is the image title"/>
Inside the fla file you must add another dynamic textfield for image's title, set an instance name for it let's say "imgTitle" and the actionscript should look like below:
myEventListener = new Object();
myEventListener.change = function(args){
descr.text = args.item.description;
imgTitle.text=args.item.imageTitle
}
It very intuitive if you already have the example files available for this item.
posted by jumpeyecomponents
on 2008-01-26
Inside the xml file add another parameter for the image title as below:(I've used the files attached to this item...so you can edit the example files provided for this item)
<item itemEvents='true' contentPath='images/jmp01.jpg' description="this is the description for slide 1" imageTitle="this is the image title"/>
Inside the fla file you must add another dynamic textfield for image's title, set an instance name for it let's say "imgTitle" and the actionscript should look like below:
myEventListener = new Object();
myEventListener.change = function(args){
descr.text = args.item.description;
imgTitle.text=args.item.imageTitle
}
It very intuitive if you already have the example files available for this item.
Description moving with images
nice tool.
I'm curious if the component can also move the descriptions along with the images when sliding.
I hope is clear what i ask :)
I mean if scrolling is setup automatic, every image moves with it's descriptions, from right to left.
Thanks
posted by jumpin on 2008-01-28
Hi nice tool.
I'm curious if the component can also move the descriptions along with the images when sliding.
I hope is clear what i ask :)
I mean if scrolling is setup automatic, every image moves with it's descriptions, from right to left.
Thanks
See the knowledge base item
http://www.jumpeyecomponents.com/knowledgebase/XML-Slide-Show-V3/Description-moving-with-slides~310/
posted by negush on 2008-01-28
I've posted an item in the Knowledge base to show you how to add the description inside the slides so they will move together:http://www.jumpeyecomponents.com/knowledgebase/XML-Slide-Show-V3/Description-moving-with-slides~310/
Second textfield and positionning
TIA
posted by belzebia on 2008-05-14
Hi, thanx for this tutorial but how do I add a second textfield and how can I position them on the stage?TIA
Second textfield and positionning
posted by negush on 2008-05-16
The second text field should be added the same way as the first one, via ActionScript code.
Second textfield and positionning
posted by belzebia on 2008-05-16
Thank you :) So you say I can buy this and will be able to add and position extra textfield very easy right? I'm not a geek in AS but I hope it won't be difficult to customize. Thanx
AS 2 Only
posted by mrgee on 2008-10-02
The above only works for AS 2.. Can someone supply an AS3 version..?
AS 2 Only
posted by negush on 2008-10-03
The only different between AS2 and AS3 is the way the events are handled.
AS2 Only
posted by Rushty on 2008-10-10
any chance of AS3 example as im new to AS3 and I am having problems getting it to wor.
AS2 only
posted by negush on 2008-10-13
This issue has been solved by mail.
AS3 code please
posted by scoophk on 2008-10-21
Please post the code for AS3 for those of us who don't know how to change event handlers but are pretty good at copy & paste!
AS3 code please
posted by negush on 2008-10-22
We have posted a new knowledge base item with the corresponding AS3 code: http://www.jumpeyecomponents.com/knowledgebase/XML-Slide-Show-V3/Adding-description-for-each-slide~1314/
Login to post your comment










image title:
image description:
Thanks!
sweet