alert This appears to be a flash file, you cannot see a preview because flash player is no longer supoorted in browsers, but you can still download the file to study it's source code.
You can open/play the swf file with Flash Player exe
user lucaz
lucaz (10)

XML Slideshow Gallery

ActionScript 3.0 Slideshow that loads images from a XML, easy to customize. i will be making some updates to this gallery ;)
7396 downloads, 46828 views

slideshow xml actionscript 3 0 actionscript


Download (1.04 MB)

Comments

You need to login to post a comment.

user cococo
cococo 13 years ago

Hi, how can I change the description text and it is possible to do links with it? Thanks

user fabnun
fabnun 13 years ago

Hi lucaz.. Very cool script, How i can send xml path as parameter?

user kia
kia 14 years ago

Tanx!!

user allthewritestuff
allthewritestuff 15 years ago

I have CS4. Could you advise on how to combine all the package elements?

user helkariel
helkariel 15 years ago

Hi lucaz, why i cant import the swf in my .php page if this is in a diferent folder?
How can i import 2 times your gallerie in my principal page with diferents images?
Thanks, and sorry for my english.

user wolverene
wolverene 15 years ago

Hi Lucaz, is there a way to disable sliding and just keep the alpha fading? Thanks.

user daytonablew
daytonablew 15 years ago

what about making fade in/out transition instead of sliding?

user l.dardanelli
l.dardanelli 15 years ago

Hi lucas and thank you for you help!
In fact, i've simply modify the size of the Slideshow, rename my own image and modify the number of image and the links in the xml file.
But both in IE and Firefox, clicking on the images don't get the link's url and the animation seems to "disturb" firefox...
But maybe it is my pc, idon't know.
Thank you for your help, and excuse my english
Laurent

user lucaz
the listing author lucaz 15 years ago

Hi l.dardanelli!!

Can you explain me the problem a little more please?

Thank you :)

user lucaz
the listing author lucaz 15 years ago

Hi trinasdg!

The only way is editing the xml file and adding the images to the images folder jeje ;p

user lucaz
the listing author lucaz 15 years ago

Hi jrheeder and sorry for answer too late!

To remove the description in the file Slideshow.as comment line 120

And to chance the delay just change the number in line 62, now the delay is 4 seconds
_mitiempo = new Timer(4000);

And the .as file didn't need to be included :)

user l.dardanelli
l.dardanelli 15 years ago

hello
Very good work!
But... I've got a problem of links that don't work
Any advice
Thanks

user lucaz
the listing author lucaz 15 years ago

Sorry for cannot answer, i will as soon has i can.

Thanks

user trinasdg
trinasdg 15 years ago

Good work! Can you tell me how can I update more photo easylI?

user jrheeder
jrheeder 15 years ago

the reason for my odd questions is I have edited the .as files...saved it and placed with my .swf file... BUT nothing seems to change...any advice

user jrheeder
jrheeder 15 years ago

Lucaz,

Excellent work, I just have two questions. I dont knw AS let alone Flash to much, so bear with me.

1. I want the Description box to dissapear. (Dont need it as my pics speak for themselves :) )
2. Slow down the rate of the refresh, so that the images stay longer on the page.

How would I go about achieving this.

P.S I take it the .as file has to be included with the swf file for the slideshow to work correctly?

user ankur
ankur 15 years ago

good work keep it up

user mukesh.chache
mukesh.chache 15 years ago

You have good hand in XML , good

user Shobhit
Shobhit 15 years ago

Great Work mate..

Need some tweaking though..

How can I use an Image as a Frame above all the images that are coming from the xml files?

Thanks a lot for all the help in advance.

user nanoffiles
nanoffiles 15 years ago

Sorry, mi again,
I forget it... My "index.swf" file is in AS2

THANKS

user nanoffiles
nanoffiles 15 years ago

Hi tagrafx,
can i work this file like a external swf..?
I have a file "index.swf". This file call and load "slideshow.swf" using the "createEmptyMovieClip" function but dont work.
Can you help me..?

THANKS and GREAT work

user tagrafx
tagrafx 15 years ago

Lucaz, I figure it out, thanks for the great file!

user lucaz
the listing author lucaz 15 years ago

Great !!! :D

user wolverene
wolverene 15 years ago

Hi Lucaz. It works just fine now and loads on same window. thanks!

user lucaz
the listing author lucaz 15 years ago

Hi gillsoriano!!!

Sorry but for now i can't do that :(

Thank you

user lucaz
the listing author lucaz 15 years ago

Hi wolverene!!!

Good to know it works ;)
I updated the file for open the link in the same window, but if you want just to change yours go to line 132 it says:

navigateToURL(new URLRequest(_xmlList[_imageCount].attribu te("link")));

replace it with this

navigateToURL(new URLRequest(_xmlList[_imageCount].attribu te("link")), "_self");

And if someone wants to make it open in another window just change "_self" at the end of the line for "_blank"

Hope it works!
:)

user lucaz
the listing author lucaz 15 years ago

Hi tagrafx!!

I don't understand good what you want, sorry, is to make the first image to fade-in instead of slide-in?

Thanks!

user wolverene
wolverene 15 years ago

Hi Lucaz. At first the links don't actually work but somehow it now works in my test site and I didn't do anything. So that is solved for now. I have one other question. How do I make it that the link when clicked would load in the same page (_self) instead of opening a new window or tab (_blank)?

user tagrafx
tagrafx 15 years ago

Another question: Is there a way to not have the first image slide into place, just have it appear?

Found the Text line on #337...THANKS
_infoText.visible = false;

user tagrafx
tagrafx 15 years ago

GREAT!!!
Is there a way to remove the descriptions and the black box behind it?

user gillsoriano
gillsoriano 15 years ago

Good Job, maybe a little rounded mask?

user lucaz
the listing author lucaz 15 years ago

Hi mart032280!!! Sorry for let that line in the xml, i remove the "thumb" tag from the xml because it does not have any function, for changing the images just edit the tag called "source".

Hope it works
Thanks

user lucaz
the listing author lucaz 15 years ago

Hi wolverene! I think for you to see the error, you will need to download the flash player debugger from here: adobe.com/support/flashplayer/downloads. html

user mart032280
mart032280 15 years ago

ok...i thought it was gonna be easy to edit but i can't seem to get my images to show up. i changed the link in the XML but i can't find this folder that has the thumbnails. i think that's what stopping it from showing. can you help me? THANKS!!!!

user wolverene
wolverene 15 years ago

Lucaz, how did you find the error and what is your best suggestion to get around the problem which is what I get from my test site?

user lucaz
the listing author lucaz 15 years ago

It looks like some kind of parameter that need to be changed in the html of the website or something like that. The error say:

SecurityError: Error #2146: Security sandbox violation: ffiles.com/flash_files/2647/slideshow.sw f cannot call navigateToURL because the HTML/container parameter allowNetworking has the value internal.
at global/flash.net::navigateToURL()
at Slideshow/onClick()

user wolverene
wolverene 15 years ago

Lucaz, I don't know what's keeping the links from working here. It doesn't also work in my test site. I wonder how we can fix that.

user wolverene
wolverene 15 years ago

Great Lucaz! Well done! I see it works perfectly. Can you tell us which line have you added in the slideshow.as file to enable the links in the xml? Thanx!

user lucaz
the listing author lucaz 15 years ago

Hi wolverene!!!

The change is ready :) :D

I don't know why the links doesn't work here, but here you have a preview:
bruno.gatjens.net/dev/xmlslideshow/slid eshow.html

Hope it helps you :)

user mart032280
mart032280 15 years ago

great work as usual! love it and it's easy to edit!

user wolverene
wolverene 15 years ago

Awesome work lucaz! How can we add a url to an image in the xml file? So for each image on click goes to it's designated url. Thanx.

user shimmertron
shimmertron 15 years ago

Hi Lucaz
I'd like to get your permission to use your slideshow commercially for a small company, I can make a donation email me geraldrATshimdesign.com. Cheers

user microait
microait 15 years ago

Hello ssg!!!
Thanks for the response. Please check triplanz.com this site is developed by me. Home page map is developed in flash and i want to integrate your gallery into it. But map is in AS 2.0 and Gallery is in AS 3.0. Actually, i want loader as you implement in your gallery but i could not do so. Can you give me some help?

user sgg
sgg 15 years ago

hey microait - it's the AS3 with the future - sooner you switch to it - the better.
I know it is hard for the non-programmers (like me), but there is logic and you just need to spend some time on that.

user microait
microait 15 years ago

Hello ssg!!!
Actually, AS 3.0 is completely different from AS.2. When i try to merge my AS 2.0 code. It generate errors. I want to add my code with this gallery but versions problem.

user microait
microait 15 years ago

It is nice but
Please provide this script in AS 2.0

user lucaz
the listing author lucaz 15 years ago

hi ssg!!!!

Some that i think can work is that in the .as file you can find this string variable

private var tTiempo:String = "on";

If that variable is equal to "off" the slideshow will not run, you can put at the beginning of your SWF file a order that makes this variable be "off" and it will deactivate the slideshow, and put the variable to "on" again at the end of the SWF

Hope it helps
Thank you :)

user sgg
sgg 15 years ago

Thanks lukaz,
the first part works fine.
I'll appreciate if you can help for the second.
This will add extra interactivity to your gallery.

user lucaz
the listing author lucaz 15 years ago

Hi ssg!!!

For the first one:

Comment line 63 //_mitiempo.start();

Uncomment line 90 addChild(_slideshowbtn);

And comment line 96 //addChild(_slideshowstopbtn);


For the second one i think in a way to do it but i will response later jejej sorry, i need to go to my church :)

user adamtully
adamtully 15 years ago

also too, i dunno if this is the computer or some coding, but the transition from one node to the next, the last one doesn't fade out completely. It happens randomly, sometimes it'll do it from the start, sometimes after a few. Any suggestions?

user lucaz
the listing author lucaz 15 years ago

Hi adamtully!!!

Just replace the text in line 74 for this one _finbtn.x = 85 + (_finbtn.width + _buttonsDistX);

And then the text in line 115 for this one _infoText.x = _stageWidth - _infoText.width + 30;

Hope it helps
Thank you

user sgg
sgg 15 years ago

Hey licaz,
Awesome work buddy!!! I have 2 questions:
1. How to make the slide show paused by default (to require the user to click on play or next to go to the next slide)?
2. I tried to replace the JPG with SWF file. It works like a charm, but the sfw stays as long as you set up in ms for the images. Is there a way next slide to wait until that swf's timeline ends.
Thanks in advance!

user adamtully
adamtully 15 years ago

lucaz, man i wish i knew more actionscripting. I don't even know where to start. I have identified each section but have never used actionscripting math to arrange location. Any suggestions, I just want it at the bottom, but on the left.

Thanks

user lucaz
the listing author lucaz 15 years ago

Hi adamtully!!!

In the lines that go from line 80 to line 105 there are the X and Y properties of those buttons, you can change the values there. If you have some doubts just ask :)

Thank you :D

user adamtully
adamtully 15 years ago

Hey lucaz. Where in the file, can I move the "previous"/"next"/"pause" button over to the left, or anywhere else for that matter? Is it through the AS file?

Thanks

user lucaz
the listing author lucaz 15 years ago

Thanks mariox!!!

Will try to find that bug :) :D

user mariox
mariox 15 years ago

awesome!!!! great work dude! thanks!!! =) one thing: there's a little bug when the slideshow loads the images. some (random) images freezes the player, then it fixes automatically when the next image comes. could you check and fix that? thanks again! (sorry about my english)

user designsfiji
designsfiji 15 years ago

Nice one dude!

user lucaz
the listing author lucaz 15 years ago

Thank you tagarcia!!! :)

user tagarcia
tagarcia 15 years ago

Excellent, great work. Thanks!

user lucaz
the listing author lucaz 15 years ago

Thank you eekus!!!

The styling is just to edit the dynamic text field in the library. You want to put just one link per image or links in any part of the text that you want?

Thanks.

user jeekus
jeekus 15 years ago

Very nice work! Any possibility of adding links and styling to the text areas? Great job!

user einsof
einsof 15 years ago

Very nice! I'l try to update this for php

user lucaz
the listing author lucaz 15 years ago

Hi marjohn2!!!!
I update the file, now is in CS3 version.

Thanks :)

user sambrown
sambrown 15 years ago

nice work - thanks for the post

@marjohn2 - requires Flash CS4 to open it

user marjohn2
marjohn2 15 years ago

flash cs3 open ???
do not open in flas cs3
por que no abre en flash cs3
si lo puedes convertir para poder abrirlo
jejeje
please

user marjohn2
marjohn2 15 years ago

xvere justo lo que necesitaba
buen aporte
very good!! xD!!