Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Photo Slideshow Using XML And Flash - Hide Preloader?


Sorry if I posted in 2 places, not sure where this belongs.

I'm using Kirupa's "Photo Slideshow Using XML and Flash" found here: http://www.kirupa.com/developer/mx20..._slideshow.htm

I understand that each image pre-loads individually the first time the .swf is loaded (until the images are cached?).

I would like to hide the preloader progress bar (I'll make it alpha 0 or something) and have the previously loaded image stay visible until the pre-load of the next image is done ---- then the face transition cn happen.

This would be good so that the user won't see the preloader between each image.

Any idea how this could happen? My actionscript is a bit noob still!

Thanks!




KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 10-26-2007, 08:50 AM


View Complete Forum Thread with Replies

Sponsored Links:

Adding Preloader To Photo Slideshow Template.
I'm sure some of you have seen the photo slideshow template in flash mx and i have added preloader to it.

The problem is, that if there's 80 photos but it would show 3/83 on first photo (of 3rd frame) instead of 1/80 because frame 1&2 is used for preloader.

So I have decided to make preloader file and make it play external photo movie on 3rd frame but it didn't work as first photo is struck on frame 3 of preloader file so I'm bit struck there.

Any helps will be much appreciated. Thanks

View Replies !    View Related
Photo Slideshow Using XML And Flash
Hi,

I'm using Kirupa's "Photo Slideshow Using XML and Flash" found here: http://www.kirupa.com/developer/mx20..._slideshow.htm

I understand that each image pre-loads individually the first time the .swf is loaded (until the images are cached?).

I would like to hide the preloader progress bar (I'll make it alpha 0 or something) and have the previously loaded image stay visible until the pre-load of the next image is done ---- then the face transition cn happen.

This would be good so that the user won't see the preloader between each image.

Any idea how this could happen? My actionscript is a bit noob still!

Thanks!

View Replies !    View Related
Photo Slideshow Using XML And Flash
I am having issues with this script. I have gone through the code many times and I can't seem to get it to work correctly. I have tested it with larger 2MB JPG files to see if the delay was actually starting when the image finished loading and I discovered that it is not. The nextImage is run after 3 seconds no matter if the image is finished loading or not.

I also did another test where I just let the slide show run (with smaller JPGs) for about 10 to 30 minutes. The clock seems to overlap with itself. The images start jumping back and forth randomly after the movie runs long enough.

So apparantly there is some kind of flaw in the script. I experimented with quite a few variations of rewriting it but I haven't figured it out. If there is someone that has noticed this or can fix this, I would be thankful.

http://www.kirupa.com/developer/mx20..._slideshow.htm

View Replies !    View Related
Photo Slideshow Using XML And Flash
Hi. I'm using the Photo Slideshow Using XML and Flash on this site, but I can't figure out how to make the images crossfade rather than just fade in.

Can anyone help?
Kirupa?

View Replies !    View Related
Photo XML Slideshow In Flash
Have a problem .
"Photo Slideshow Using XML and Flash" is great. But when i change the size of the flash movie , and also accordingly my image size also changes, am unable to see the images in the slideshow.
Pls help, am unable to find out what the problem is.

Thanks in advance.

View Replies !    View Related
Photo Slideshow....new To FLASH
I am new to FLASH and need to implement the photo slideshow as listed in the article http://www.kirupa.com/developer/mx20..._slideshow.htm

I did understand the code but what I could not was how to create those layers and put entites in them?

any help wud be greatly appreciated............

View Replies !    View Related
Photo Slideshow Using XML And Flash
Great tutorial!!


I would like to make de <caption></caption> node to be a link can anybody tell me how can I modify the AS and XML to do so?


Thanks

View Replies !    View Related
Photo Slideshow Using XML And Flash
Hi,

I am new with flash development and need some help with below tutorial.

http://www.kirupa.com/developer/mx20..._slideshow.htm

My question is: How to attach URL on Movie CLip, which gets images from XML file.

Thanx,
Yogi

View Replies !    View Related
RE:Photo Slideshow Using XML And Flash
Hi there, with regards to the above tutorial, which I have found very useful. I want to be able to use the slideshow function when called from a button. I take it that this would be a simple case of calling the function onRelease or something similar...

Also on a slightly different though smei related point, I am setting up a gallery using the XML gallery though am going to be using multiple gallery options so that once a user has chosen a gallery set it will load the appropriate XML file... maybe going above my own head here. If anyone knows of tutorial that would teach me of intergrating the XML with PHP/MySQL that would be very helpful.

Thanks in advance

Dan

View Replies !    View Related
Photo Slideshow Using XML And Flash
I have been playing with this tutorial to create a slideshow, however as I have been away from Flash for some time my knowlage has gone... looking at the actionscript, how do I change the speed at which each file loads? Basically the slideshow is moving too quickly. I tried changing the delay but it made no difference.

thanks

delay = 3000;
//-----------------------
function loadXML(loaded) {

if (loaded) {

xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {

image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;

}
firstImage();

} else {

content = "file not loaded!";

}

}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {

if (Key.getCode() == Key.LEFT) {

prevImage();

} else if (Key.getCode() == Key.RIGHT) {

nextImage();

}

};
p = 0;
this.onEnterFrame = function() {

filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {

preloader.preload_bar._xscale = 100*loaded/filesize;

} else {

preloader._visible = false;
if (picture._alpha<100) {

picture._alpha += 10;

}

}

};
function nextImage() {

if (p<(total-1)) {

p++;
if (loaded == filesize) {

picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
slideshow();

}

}

}
function prevImage() {

if (p>0) {

p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();

}

}
function firstImage() {

if (loaded == filesize) {

picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
slideshow();

}

}
function picture_num() {

current_pos = p+1;
pos_txt.text = current_pos+" / "+total;

}
function slideshow() {

myInterval = setInterval(pause_slideshow, delay);
function pause_slideshow() {

clearInterval(myInterval);
if (p == (total-1)) {

p = 0;
firstImage();

} else {

nextImage();

}

}

}

View Replies !    View Related
A Little Help With The Photo Slideshow Using XML And Flash
Hi I am trying to use something similar for a client showcase. Execpt I wish to make this global, so by using a variable I will be able to show all the screens for that client from the xml file.

So my xml file would look like so:-

<clients>

<client>
<company>Client One</company>
<image>/images/c1/1.jpg</image>
<image>/images/c1/2.jpg</image>
<image>/images/c1/3.jpg</image>
</client>

<client>
<company>Client Two</company>
<image>/images/c2/1.jpg</image>
<image>/images/c2/2.jpg</image>
<image>/images/c2/3.jpg</image>
</client>

</clients>

Show if say the client was client one, then

each of the images would be show for client one. But I am not sure how to approach this, what its doing at the moment is trying to loop between each client.

Does anyone know.

Its this element I think will need modification.

//Load XML
function loadXML(loaded) {

if (loaded) {
xmlNode = this.firstChild;

image = [];

total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
}
firstImage();
} else {
content = "file not loaded!";
}

}

xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("/xml/clients.xml");

Any help would be nice.

Thanks

View Replies !    View Related
Photo Slideshow Using XML And Flash
I am having issues with this script. I have gone through the code many times and I can't seem to get it to work correctly. I have tested it with larger 2MB JPG files to see if the delay was actually starting when the image finished loading and I discovered that it is not. The nextImage is run after 3 seconds no matter if the image is finished loading or not.

I also did another test where I just let the slide show run (with smaller JPGs) for about 10 to 30 minutes. The clock seems to overlap with itself. The images start jumping back and forth randomly after the movie runs long enough.

So apparantly there is some kind of flaw in the script. I experimented with quite a few variations of rewriting it but I haven't figured it out. If there is someone that has noticed this or can fix this, I would be thankful.

http://www.kirupa.com/developer/mx20..._slideshow.htm

View Replies !    View Related
Photo Slideshow Using XML And Flash
Hi. I'm using the Photo Slideshow Using XML and Flash on this site, but I can't figure out how to make the images crossfade rather than just fade in.

Can anyone help?
Kirupa?

View Replies !    View Related
Flash XML Photo Slideshow
Hello,

I saw this one template http://www.templatemonster.com/flash...ates/9067.html. I am assuming it is using flash with dynamic xml. I want to be able to have the photo show ahead of time like the template. How would you go about creating it? Or are there is tutorials/ video tutorials that shows how to do these kind of things. I have flash 8.

Thanks

View Replies !    View Related
Flash 8 For Photo Slideshow
I'd just like to point out that Flash 8 includes a ready to use template for
photo slideshows. It is rather easy to use (just add frames and the images and their captions if you wish). The template includes moving backwards and forwards, as well as an autoplay feature. Personally I dont like the "modern" skin it has but I think it would be rather easy to change too.

Just go File -> New -> Templates -> Photo Slideshows -> Modern Photo
Slideshow.


Regards.

______________________
Flash Photo Slide Show
http://www.photo2vcd.com/flash-slide-show.html

View Replies !    View Related
Embedding A Flash Photo Slideshow
Browsing around the forums I saw bits and peices of what I want to accomplish, but not quite.

I need to create a flash photo slidshow that is 129 x 174 (this is the size of the splice from the webpage) and embed it into my html site.

Requirements:

- externally load jpg's that reside on the server - RANDOMLY
- jpgs must be easily added, changed (edited in notepad for end user)
- no buttons required
- jpgs must fade in every 15 seconds or so

Has anyone seen this? If so, I would need some assistance and the code.

Regards,

Daniel

View Replies !    View Related
Photo Slideshow Using XML And Flash Problem
Hello everyone,

Please help. I have followed the tutorial and got the following to work:

http://www.white-heather-nobby.com/t..._pg_final.html

But the second image in my XML file is my own:

http://www.white-heather-nobby.com/t...loopvolume.jpg

However it just doesn't show. I have tried it on a number of servers also on it's own in the XML (with out Kirupa's images) and I just can't get the thing to work.

If you need any more info please don't hesitate to ask, any help would be greatly appreciated.

Many Thanks

View Replies !    View Related
Photo Slideshow Using XML/Flash (Loading)
Hello all,

I am interested in using this fine tutorial for a small banner and was wondering if there was an easy way to be able to load all of the images using the same preloader before the slideshow starts instead of the preloading for each image. I noticed that once it went thorough the slideshow once, it doesn't preload the images again and runs smoothly which is the effect that I would like and would like to have it preload all images once at the very beginning.

Any help would be appreciated.

Thanks,
Kei

View Replies !    View Related
Kirupa's Photo Slideshow Using XML And Flash
Hi,
I am trying to figure out the easiest way to add kirupa's Photo Slideshow Using XML and Flash file to my flash site.
I tried to copy and paste the frames from his to my flash and it doesn't work, meaning the images dont change.

Any suggestions?

View Replies !    View Related
Kirupa's Photo Slideshow Using XML And Flash
I am using Kirupa's Photo Slideshow Using XML and Flash, to make a gallery.

Is it possible to load the photo's without seeing the preloader bar?

View Replies !    View Related
Kirupa's Photo Slideshow Using XML And Flash
I am using Kirupa's Photo Slideshow Using XML and Flash, to make a gallery.

Is it possible to load the photo's without seeing the preloader bar?

View Replies !    View Related
Photo Slideshow Using XML And Flash Problem
Hello everyone,

Please help. I have followed the tutorial and got the following to work:

http://www.white-heather-nobby.com/t..._pg_final.html

But the second image in my XML file is my own:

http://www.white-heather-nobby.com/t...loopvolume.jpg

However it just doesn't show. I have tried it on a number of servers also on it's own in the XML (with out Kirupa's images) and I just can't get the thing to work.

If you need any more info please don't hesitate to ask, any help would be greatly appreciated.

Many Thanks

View Replies !    View Related
Flash MX 2004 - Photo Slideshow Template
Hi:

I need help. I am using the Photo Slideshow template in Flash MX 2004 and I have customized it a bit. What I want to do is have my photos, when the .swf is loaded, to begin playing in "autoplay" mode, with delays in between. Currently it is set on stop. Can I make it begin in autoplay mode with delays in between? Please help!

Thanks,
Chris

View Replies !    View Related
[F8] Glitch In Flash Navigation With Photo Slideshow - HELP
Hello everyone!

Though I'm not a COMPLETE newbie to Flash, I'm currently working on my first major development project for a client using Flash.

The application is a Flash-based photo gallery, and the working movie can be seen here:

http://www.kasia-gawlak.com/testing/gallery

The top level of the movie contains the background and the text at the top of the window. Within that, there is a movie clip which contains the sidebar navigation menu options. When a user clicks an option, the sidebar adjusts and thumbails for each section appear. This movie clip controls the animation where the menu options slide up and down and the thumbnails fade in accordingly.

The thumbnails and the full-sized photos that correspond to each option are each contained in a separate movie clip that allows the user to click a thumbnail and have the full-sized picture appear. The way this works is each full sized picture is displayed in a separate keyframe and clicking on the thumbnail button advances to that frame and then stops, waiting for their next action.

There is also an option for the user to view all the pictures in the category as a slideshow. Clicking this option takes them to a further set of keyframes later in that movie clip's timeline where each frame is on an automatic timer.

If the user chooses "view as slideshow" option, as long as they wait until the slidehsow has finished playing all the way through, everyone works fine. But if they are in the middle of viewing a slideshow and interrupt it by clicking on one of the thumbnails within that category, it will take them to that picture's frame but then automatically advance to the next frame before pausing.

Worse, if they interrupt the slideshow in the middle of playing it by clicking on one of the OTHER categories, after a few seconds the movie automatically reloads from the beginning (including the preloader screen) and gets stuck in some kind of glitch loop where it plays the first few frames and then reloads them over and over again.

Before I added the preloader screen as a separate scene at the beginning of the movie, I didn't notice this issue. It was only after I added the preloader that this became a problem.

Any help, advice or assistance at this stage would be much appreciated. I'm not sure what's causing this problem, and the only solution I can think of at this point is to remove the "view as slideshow" option, which my client is really not keen on.

I'm happy to send over the source .fla file to anyone who thinks they can help.

View Replies !    View Related
Question About Photo Slideshow Using XML And Flash Tutorial
I have a quesion concerning this tutorial located at
http://www.kirupa.com/developer/mx20..._slideshow.htm . When I tried to point my url to different images at a different url, they didn't show up. The images I was using are siginificantly smaller than the ones kirupa used but nonetheless they should still show up right? From looking at the code I didn't see really any place that checked for size so not sure why I can't see my images.

View Replies !    View Related
Photo Slideshow Using XML And Flash > Adding Thumbnails
Hi, I have a question about the thumbnails. Is there a posibility that i randomly load a thumbmail picture in the middle. So that picture 6 (for example) load at the middle of the scroller. (fig 2) .The (__/__) is what you see.
__/__��첽����펉첽����펉
###!__/__
첽����펉첽������펉

I hope you got the point, my english is not so good so i hope i maked myself clear with a funny picture. The little square is the random chosen square (fig 2)
Thanks a lot...

View Replies !    View Related
Timer For Kirupa Photo Slideshow Using XML And Flash
Hello fellow flash people ,

- any idea on how to add a sort of timer for the slideshow...one that counts down from fx 6 seconds to 0 every time a new image in the slideshow appears. something with a variable and a text area...but how to make the count down follow the image delay...i really would like to know if this is possible.

any help out there?

regards
jonas

View Replies !    View Related
In Flash Photo Slideshow XML File Is Not Loading
I am working with the flash photo slideshow with thumbnail http://www.kirupa.com/developer/mx2004/thumbnails.htm

Its a great tutorial. I have made a slideshow of my own from that. The slideshow is running fine in my local machine but when I am placing it in server the swf file is loading in html page but the xml fikle is not loading. But there is no error message. I have placed the .swf file , xml file and images in the same place.

My xml code

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>
<pic>
<image>img1large.jpg</image>
<caption>Nice smile</caption>
<thumbnail>img1thumb.jpg</thumbnail>
<link>img1large.jpg</link>
</pic>
<pic>
<image>img3large.jpg</image>
<caption>Me with parents</caption>
<thumbnail>img2thumb.jpg</thumbnail>
<link>img3large.jpg</link>
</pic>
<pic>
<image>img2large.jpg</image>
<caption>Nice smile</caption>
<thumbnail>img3thumb.jpg</thumbnail>
<link>img2large.jpg</link>
</pic>
<pic>
<image>img4large.jpg</image>
<caption>Nice smile</caption>
<thumbnail>img4thumb.jpg</thumbnail>
<link>img4large.jpg</link>
</pic>
<pic>
<image>img1large.jpg</image>
<caption>Nice smile</caption>
<thumbnail>img1thumb.jpg</thumbnail>
<link>img1large.jpg</link>
</pic>
<pic>
<image>img1large.jpg</image>
<caption>Nice smile</caption>
<thumbnail>img1thumb.jpg</thumbnail>
<link>img1large.jpg</link>
</pic>
<pic>
<image>img1large.jpg</image>
<caption>Nice smile</caption>
<thumbnail>img1thumb.jpg</thumbnail>
<link>img1large.jpg</link>
</pic>
<pic>
<image>img1large.jpg</image>
<caption>Nice smile</caption>
<thumbnail>img1thumb.jpg</thumbnail>
<link>img1large.jpg</link>
</pic>
<pic>
<image>img1large.jpg</image>
<caption>Nice smile</caption>
<thumbnail>img1thumb.jpg</thumbnail>
<link>img1large.jpg</link>
</pic>
<pic>
<image>img1large.jpg</image>
<caption>Nice smile</caption>
<thumbnail>img1thumb.jpg</thumbnail>
<link>img1large.jpg</link>
</pic>
<pic>
<image>img1large.jpg</image>
<caption>Nice smile</caption>
<thumbnail>img1thumb.jpg</thumbnail>
<link>img1large.jpg</link>
</pic>
<pic>
<image>img1large.jpg</image>
<caption>Nice smile</caption>
<thumbnail>img1thumb.jpg</thumbnail>
<link>img1large.jpg</link>
</pic>
</images>



My html code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/s...rsion=7,0,19,0" width="592" height="484">
<param name="movie" value="thumbnail_final4.swf" />
<param name="quality" value="high" />
<embed src="thumbnail_final4.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="592" height="484"></embed>
</object></td>
</tr>
</table>


Can anybody help whats wrong?

View Replies !    View Related
Photo Slideshow With XML - Image Gap On First Cylce Through Slideshow
Hello,

I am new to this site, and I went through the tutorial on this site, "Photo slideshow using XMl and Flash, " http://www.kirupa.com/developer/mx20..._slideshow.htm
but I encountered a problem where my images lag the first time they cycle through all the images in the XML file.

The first time the flash page loads and starts the slideshow, I don't want the gap between the transitioning of the images where the movie backgound shows. I think it has something to do with the images loading for the first time, so I tried to load each picture in a different movieclip with an alpha of 0 before the slideshows starts, but it didn't work and there is still the gap between the images the first time the pictures cycle through the slide show.

Please offer any advice on how to stop the image lag the first time the slideshow cycle through all the images in the XML file.

View Replies !    View Related
Question Regarding Flash MX/MX 2004 Photo Slideshow Template
Hi everyone,

I would like to start automating some things in my photo slideshow projects. What I would like to do is use dynamic text that updates itself based on the photo that is used from the library(This should be the photo name that always appears in the upper right hand corner of the movie). I know that there's dynamic text in these photo slideshow templates that work like this:

1. They tell the user the number of the photo they are currently on(Ex: 13 of 24)

2. The text tells you how many photos are in the slideshow.

Can anyone help?

View Replies !    View Related
Help, Creating A Photo Slideshow To Burn To CD For A Presentation, Using Flash.
For a university entrance presentation, we have to put our work in a slideshow to burn onto CD and hand it in that way. I've never done this before so any advice or pointers would be great, even any links to any sites which might help me would be appreciated.

Also, once i've made my slideshow, i have to be able to burn it on to CD. How exactly does that work? And when the person i give it to watches the CD, will the flash slide show just start playing automatically? will they need to have flash? will they need to click on the file?

Ive tried google for tutorials but i cant seem to find anything that answers my questions.

thank you






























Edited: 12/16/2008 at 12:45:49 PM by keirakola

View Replies !    View Related
Adding A Border Around The Thumbnails In The Photo Slideshow Using XML And Flash
Hi, I have been using the tutorial on the Photo Slideshow Using XML and Flash, and think it is fantastic. It is really clear and easy to follow. However I have encoutered three things with it.

Firstly I would love to be able to add a border around each thumbnail accross the bottom, that would change color when the user rolls over the thumbnail.

I would also like to be able to highlight which thumbnail is currently being shown as the top image.

The third issue I have had is when a user moves the mouse to the right of the first image, it scrolls about 5 pixels to the right even though there is no other image before it. How do I stop ths from happening?

Thanks in advance.

View Replies !    View Related
Starting With Random Image: Photo Slideshow Using XML And Flash
i want to strip this down and remove the image counter, description and buttons... which is easy enough.

but i would also like the starting image to be random. i mean, the first image that is loaded is selected randomly from the xml file.

can anyone help me with the real quick? here is the AS


delay = 6000;
//-----------------------
function loadXML(loaded) {

if (loaded) {

xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {

image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;

}
firstImage();

} else {

content = "file not loaded!";

}

}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");

p = 0;
this.onEnterFrame = function() {

filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {

preloader.preload_bar._xscale = 100*loaded/filesize;

} else {

preloader._visible = false;
if (picture._alpha<100) {

picture._alpha += 10;

}

}

};
function nextImage() {

if (p<(total-1)) {

p++;
if (loaded == filesize) {

picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
slideshow();

}

}

}
function prevImage() {

if (p>0) {

p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();

}

}
function firstImage() {

if (loaded == filesize) {

picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
slideshow();

}

}
function picture_num() {

current_pos = p+1;
pos_txt.text = current_pos+" / "+total;

}
function slideshow() {

myInterval = setInterval(pause_slideshow, delay);
function pause_slideshow() {

clearInterval(myInterval);
if (p == (total-1)) {

p = 0;
firstImage();

} else {

nextImage();

}

}

}

View Replies !    View Related
Merge Photo Slideshow With Photo Gallery
I am currently working on a website to display photos and have found kirupa's tutorial using the slideshow method very helpful. But I want the added user flexibility to stop the slideshow or skip to another image in the slide-show sequence at any time. So, if you can envision entering the site, a portfolio of images starts to cycle while the user can see what image number he/she is on and skip to or pause the slideshow. I'm not very code savvy and would love some help/ideas where to find help!

View Replies !    View Related
[F8] Button In MC Slideshow To Show Hide Image
I just finished a semester in Flash and am new to action script. I feel new to flash so I don't know if I should post here or action script.

This is the deal:

I'm using flash 8 and I have a slideshow. The thumbnails are the slideshow that loop continuously and I have a play/pause button. They are also a movie clip and each individual thumnail picture is a button. When each thumnail button is clicked I want a larger image of the graphic to show in the top right corner. I have a screen shot posted at:

www.freewebs.com/alexandra4jc

so you can get an idea. When I tried to upload the flash file it was too big for a free website. The thumbnails on the left move forward as a slide and then the one in front fades before showing up in the back.

So, I can't figure out how to hide the larger images unless the thumnail version is clicked on and then they will show up on the stage. Since the thumbnail buttons are in the slideshow movie clip I need to also apply the show/hide images in the same mc. So, what is the code to hide the larger image until it's thumnail button is clicked and how to I get that particular image to pop up on the stage once it's clicked. I gave the button an instance name and tried to give the large image an instance name but it's not allowing me to do that. So I named the frame thinking that once I applied an action to the button I can direct it to the named frame.

Can anyone help me?

Thanks.

View Replies !    View Related
Flash CS3 Slideshow - Captions/slow Preloader
Hello everyone! I successfully completed a Flash CS3 slideshow. The slideshow contains picture transitions with coordinating captions and can be updated from an XML file.

After figuring out how to get the captions to rotate (finally) with each individual picture and observing a simlulated download using 56k, I noticed my loading bar is delayed for a few seconds showing a blank white screen. This did not happen until I added the captions. Not what I'm going for.

Does anyone know what may have delayed my preloader after reviewing my code below? Any help with this matter is greatly appreciated. Thanks, Michelle

Here is my code:

import mx.transitions.Tween;
import mx.transitions.easing.Strong;
this.createEmptyMovieClip("container2_mc",this.get NextHighestDepth());
this.createEmptyMovieClip("container1_mc",this.get NextHighestDepth());
this.createEmptyMovieClip("buttons_mc",this.getNex tHighestDepth());
this.attachMovie("loader","loader_mc",this.getNext HighestDepth());
loader_mc._x = 175;
loader_mc._y = 250;

var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myMCL.addListener(myListener);
myListener.onLoadProgress = function(target,bytesLoaded,bytesTotal) {
loader_mc._alpha = 100;
var pct = Math.round(bytesLoaded/bytesTotal*100);
loader_mc.bar_mc._xscale = pct;
}

myListener.onLoadComplete = function(target) {
loader_mc._alpha = 0;
fadeIn();
}

container2_mc._x = Stage.width - container_mc._width - 10;
container2_mc._y = 91;
container2_mc._x = 0;
container2_mc._y = 91;
container1_mc._x = Stage.width - container_mc._width - 10;
container1_mc._y = 91;
container1_mc._x = 0;
container1_mc._y = 91;

buttons_mc.attachMovie("prev","prev_mc",buttons_mc .getNextHighestDepth());
buttons_mc.attachMovie("next","next_mc",buttons_mc .getNextHighestDepth());
buttons_mc.next_mc._x = 265;
buttons_mc.next_mc._y = 75;
buttons_mc.prev_mc._x = 250;
buttons_mc.prev_mc._y = 75;


//------XML-------//
var myXML:XML = new XML();
myXML.ignoreWhite = true;

var picArray:Array = new Array();
var captionArray:Array = new Array();
var currentElement:Number = 0;
//create a new array to hold all the captions var captionArray:Array = new Array();
myXML.onLoad = function(success) {
if (success) {
var ss:Array = myXML.firstChild.childNodes;
for (i=0; i<ss.length; i++) {
picArray.push("images/" + ss[i].attributes.url);
//add the caption from the XML document to captionArray
captionArray.push(ss[i].attributes.caption);
}
container_mc.loadMovie(urls[currentElement]);

init();
} else

{
trace("XML could not load");
}
};
myXML.load("slideshow.xml");
var currentContainer:MovieClip = container1_mc;
function init() {
myMCL.loadClip(picArray[currentElement],container1_mc);
//this will trace the caption to the Output panel
captionTextBox.text = captionArray[currentElement]
};

buttons_mc.next_mc.onRelease = function() {
if (currentContainer == container1_mc) {
currentContainer = container2_mc;
} else {
currentContainer = container1_mc;
}
currentContainer._alpha = 0;
container1_mc.swapDepths(container2_mc);
if (currentElement<picArray.length-1) {
currentElement++;
} else {
currentElement = 0;
}
myMCL.loadClip(picArray[currentElement],currentContainer);
//this will trace the caption to the Output panel
captionTextBox.text = captionArray[currentElement]
};
buttons_mc.prev_mc.onRelease = function() {
if (currentContainer == container1_mc) {
currentContainer = container2_mc;

} else {
currentContainer = container1_mc;

}
currentContainer._alpha = 0;
container1_mc.swapDepths(container2_mc);
if (currentElement>0) {
currentElement--;
} else {
currentElement = picArray.length-1;
}



myMCL.loadClip(picArray[currentElement],currentContainer);
//this will trace the caption to the Output panel
captionTextBox.text = captionArray[currentElement]
};

function fadeIn() {
new Tween(currentContainer,"_alpha",Strong.easeOut,0,1 00,36,false);
}

View Replies !    View Related
Question On The "Photo Slideshow Using XML And Flash" In Kirupa.com
Dear all,

I got a question on this tutorial about the slideshow.
The flow of this program will be as follow:

loadXML() -> firstImage() -> slideshow() -> nextImage() -> .... -> nextImage() -> firstImage() -> nextImage() -> ......

from the above it show that the program never end, of course it is ok because we are aim
at doing slideshow and so it should not stop. However, the all the function are never end
also, what I mean is the first call loadXML() will wait for firstImage() end, but firstImage()
is waiting for slideshow() end, slideshow() wait for nextImage() and so on.... my question
is will it cause a problem if this program running for sometime? Cause it may eat up a log
of memory as all the functions are waiting for the end.

Or this problem is not applied to FLASH?

Many Thanks!

View Replies !    View Related
Photo Slideshow With XML
Here's the deal. I have a photo slideshow, I've created pulling the title of each photo and the path from each photo and placing into a dataset. It works great. I've even managed to create a transition for each photo and and have it automatically go to the next one. The only problem is that I want it to loop back to the beginning. I also have buttons which, if at the beginning or end of the file should either go the first item in the dataset or the last item. What happens is that it if it is on either the first item or the last item, it plays it through twice before going to the first item if on last item or last item if on first item when you click on the previous button. I would also like a transition out on each picture, just before going to the next picture with transitions in, which I tried to set with an interval, but I can't get the interval to ever clear. It also appears that my interval I've set doesn't reset if I hit a button instead of letting it do it automatically. Here's the code for the first frame:
code:
function photo_rotate() {
if (photo_ds.hasNext()) {
photo_ds.next();
transition_in();
}else{
photo_ds.first();
transition_in();
}

}
function intervalSet(o, duration){
setInterval(o,duration);
}

intervalSet(photo_rotate, 10000);

Button Code:
next button:
on(release){
if(photo_ds.hasNext()){
photo_ds.next();
transition_in();
}else{
photo_ds.first();
transition_in();
}
}
Previous button:
on(release){
if(photo_ds.hasPrevious()){
photo_ds.previous();
transition_in();
}else{
photo_ds.last();
transition_in();
}
}

Any idea of what I should be doing here. instead of using the dataset.first() and dataset.last(). I've figured out that it's checking to see if there is a next one or previous one with the hasPrevious and hasNext, but I don't know of a better way to do it.

View Replies !    View Related
Photo Slideshow
I am trying to make a photo slide show. I have 30 small thumbnails and I want to display 10 at a time through a small strip.

I then want a forward and back button to move the timeline forward and back

Any help pls

View Replies !    View Related
Photo Slideshow Help
Hey there, I made a photo slideshow that included horizontal and vertical images. (basically 400x550 dimensions) and made the stage 600x600 to accommodate both sizes. The flash file export looks great but when I export as a quicktime the images are all crazy distorted. How can I set the dimensions of the stage, photos, whatever, so I can export as quicktime and not have it look janky? Thanks for any suggestions!

View Replies !    View Related
Photo Slideshow
hi,
anybody know where to get tutorial for photo slideshow?
different from the photo gallery here, where i want a photo to be in front of other photos,
for example i have 2 photos, first one in level 0 and second in level 1, then after few seconds, the second one will slowly fade off so that we can see directly the one that is at the back.
it's the same with the photo gallery in kirupa...just when the first photo become transparent we can see directly the next photo(just like the background)

hope everyone can understand what i mean...

Thank you

View Replies !    View Related
Photo XML Slideshow
Hey is there anyway i can place more than one line of caption near the photo, i have tried using <br> commands in the XML file and it doesnt work (even when i change the text to multiline, any help would be gratefull

View Replies !    View Related
Photo Slideshow Help
I have been working with Kirupa's "Photo Gallery Using XML and Flash" and have walked through the tutorial to get it to work with the exception of one thing. I am curious if the photos can fade out before the next photo fades in.

The action script is below... Any and all help is greatly appreciated. I'm new to actionscript. Thanks!


delay = 6000;
//-----------------------
function loadXML(loaded) {

if (loaded) {

xmlNode = this.firstChild;
image = [];
caption = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {

image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
caption[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;

}
firstImage();

} else {

content = "";

}

}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {

if (Key.getCode() == Key.LEFT) {

prevImage();

} else if (Key.getCode() == Key.RIGHT) {

nextImage();

}

};
p = 0;
this.onEnterFrame = function() {

filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {

preloader.preload_bar._xscale = 100*loaded/filesize;

} else {

preloader._visible = false;

if (picture._alpha<100) {
picture._alpha += 5;
}
}

};
function nextImage() {

if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
cap_txt.text = caption[p];
desc_txt.text = description[p];
picture_num();
slideshow();

}

}

}
function prevImage() {

if (p>0) {

p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
cap_txt.text = caption[p];
desc_txt.text = description[p];
picture_num();

}

}
function firstImage() {

if (loaded == filesize) {

picture._alpha = 0;
picture.loadMovie(image[0], 1);
cap_txt.text = caption[p];
desc_txt.text = description[0];
picture_num();
slideshow();

}

}
function picture_num() {

current_pos = p+1;
pos_txt.text = current_pos+" / "+total;

}
function slideshow() {

myInterval = setInterval(pause_slideshow, delay);
function pause_slideshow() {

clearInterval(myInterval);
if (p == (total-1)) {

p = 0;
firstImage();

} else {
nextImage();
}
}
}

View Replies !    View Related
Photo Slideshow?
Here 's what I m trying to achieve.

http://www.villadelsolenapoli.it/english/homeengl.htm

Thanks in advance!

Regards!

View Replies !    View Related
Photo Slideshow
hi,
anybody know where to get tutorial for photo slideshow?
different from the photo gallery here, where i want a photo to be in front of other photos,
for example i have 2 photos, first one in level 0 and second in level 1, then after few seconds, the second one will slowly fade off so that we can see directly the one that is at the back.
it's the same with the photo gallery in kirupa...just when the first photo become transparent we can see directly the next photo(just like the background)

hope everyone can understand what i mean...

Thank you

View Replies !    View Related
Photo Slideshow
Looking for something to let me create a slideshow such as the ones featured on this site:

http://www20.rockyou.com/

Any software that would allow this to be done quick and easily, preferrably by just dumping a load of images into a directory?

View Replies !    View Related
Help With Photo Slideshow
Hi I need help on how to creat photo slideshow with Flash mx. I some one knows how to do it or know where I can get a free tutorial for that please let me know.

Thanks

View Replies !    View Related
Photo Slideshow Help
Okay - so about a year and a half ago, I had a freelance client that I created a slideshow for using powerpoint.

They've been using this ppt a lot, but they are having a headache with synch issues. I would love to recreate this in flash for them so the synch issues go away.

What's the most effective way to do this? The timings are all different for each picture, though i think that some of it can be streamlined a bit.

Any idea on the best way to approach? There are approx. 175 slides....

View Replies !    View Related
XML Photo Slideshow
I'm trying to make an XML photo slideshow with a fade effect. Loading XML into a movie clip in flash is such an tookus backwards code that doesn't make any sense!!!
As you can see I'm rather frustrated.
I need some help please!
I know Lee did a tutorial on this, but for some reason I am unable to find it. I know Todd posted a link to it in a different thread, but the link has expired.
Any help is much appreciated.

View Replies !    View Related
Another "Photo Slideshow Using XML And Flash" Question
http://www.kirupa.com/developer/mx20..._slideshow.htm
Here is my doubt:
I'm using this xml structure instead that the given one:

Code:
<images>
<section>
<picture>
<image />
<description />
</picture>
</section>
<section>
<picture>
<image />
<description />
</picture>
</section>
</images>
Once it's parsed, is there a simple way to change the section node you are in? I've tried several ways, but my actionscript skills are very poor.
Thanks in advance

View Replies !    View Related
A "Photo Slideshow Using XML And Flash" Question
How can I keep the code from the first part of the tutorial, but make it repeat? It would help me tons.

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved