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




Flash Slideshow Question



I am not sure what controls this but could use some help. I have noticed (using IE7) that when I view flash slideshows on different websites they will usually say something like 'Press SPACEBAR or ENTER to activate and use this control'. Is there a way to eliminate this when there is no control to activate. Also, I have noticed that different websites have different options when right clicking the flash slideshow. This one here for example: http://www.kirstenkla.com/, doesn't give you many options, while others give you the option of playing, looping, rewind, forward, and back. How do I create a slideshow in Flash that doesn't give these extra options?



Adobe > Flash General Discussion
Posted on: 11/11/2007 04:37:19 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

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.

Flash Slideshow
Hi,

could anyone explain me or give me a tut on how to do a slidshow in flash. I would like thumbnails as buttons and the pics slide in between. For instance I see Pic 1 and want to go to pic 5, I would like to see 2,3 and 4 slide by

thx

Slideshow In Flash
I need help to figure out the best way to make a slideshow in flash. I have about 10 pictures and would like to display them in flash so that the user could click to go to the next picture. What would be the best way to do this?
Thanks

Flash Slideshow Help
Hello! Does anyone know of a program or an easy way to create a flash slideshow with a drag and drop menu format? The basics are as follows:
1-presenter sees the full breakdown of slides on a menu
2-presenter selects slides to be played at designated order, drags and drops to an area
3-slideshow plays with slides presenter chooses
Any help at all would be greatly appreciated. And other alternatives to give the same effect as well. Thank you Thank you Thank you!!!

Presres

Flash MX Slideshow
hi

like everyone else im bored of power point i want to make a slideshow using the slide presentation feature is Flash MX. how do i manage to set it up automacticaly (change slides every minute)? can someone please help or offer a tutorial

Thanx

Help With Slideshow In Flash 8.
Hello, one and all
I am new to this community and am posting because I hope you can help me!

I have followed the tutorial called Flash and XML here: http://www.gotoandlearn.com/ on making a slideshow in Flash reading the data (pictures and captions etc) from an XML file, that works fine. What I now want to do is change which slideshow (of a number of different ones, stored in different XML files) is displayed in the "holder" movieclip by clicking on different buttons.

I.e = Click button 1 - Slide show 1 displayed
Click button 2 - Slide show 2 displayed

I thought this would simply be a case of loading in different XML files into my XML variable using the XML.load("") command.

This doesn't seem to work instead of slideshow one replacing slide show 2 I seemingly end up with one longer slideshow with pictures from 1 and 2.

I have tried so many ways of trying to fix this:
Separating the different slideshows to different XML variables and loading each in.
Loading in a Blank XMl document between the changes.
Using the unLoadMovie command on the holder between each change.

None of which have worked I still end up with the same issue. It seems flash has some kind of permenant memory for whats been loaded into the holder Movie clip and I can't seem to blank it and load something new.

Please note I am very new to Flash and still trying to find my feet.
Thanks.

Flash Slideshow
I'm trying to find some code or something I can excerpt to basically do a flash slide show that looks something like this...

http://profile.myspace.com/index.cfm...dID=985 91593

The middle of the page with all the stills from the film...



I have about 40 jpgs hosted on my site, I'd like to know how I can take those pics and using some flash slideshow plugin make them fade in and out over a period of time. Where can I find such a thing? You see it on the web all the time it seems. Something easy to use where I can just put in the link to the file. Where can I find something easy to use like this?

[CS3] Flash Slideshow Help
Hey

i have a problem:
i made this slideshow thing with a tutorial from this site:http://www.layersmagazine.com/flash-...e-gallery.html

and when i publish it its says 1120: Access of undefined property next_btn. last_btn.onPress=function(){

heres the file i made:

[CS3] Flash Slideshow
Hello Everybody!

I'm finishing my slideshow in Flash CS3. I have created two buttons and give it an action scripts but it does not work. For exmaple, below are my action scripts for my flash slideshow. Below are my action scripts.

stop();
//next button
next_btn.onPress=function(){
if(mc_content._currentframe==mc_content._totalfram es){
mc_content.gotoAndStop(1)
}else{
mc_content.nextFrame()
}
}

//last button
last_btn.onPress=function(){
if(mc_content._currentframe==1){
mc_content.gotoAndStop(mc_content._totalframes)
}else{
mc_content.prevFrame()
}
}

PS: It does not work! I desparetely need your help. I have upload my flash file for you to see as well. Please help me out. What did I missed in the scripts? Thank you in advanced.

Upload link:
http://www.megaupload.com/?d=0ZHV9DVP

Vince :-)

Flash Slideshow Help
I was able to figure out how to control the fade in code for the images in this slideshow script but I can't figure out how to do a fade out. Any help would be very appreciated.

Thanks!

Here's the code:


delay = 5000;
//-----------------------
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();

}

}

}

Flash Slideshow App
I am creating a Flash application where a user can upload their photos and create a slideshow. My question is: How would I go about allowing the user to publish their slideshow into an swf (or other format) when they are finished?

Here is an example of what I want to do. In this example, the user can click publish and their slideshow is converted into an swf:

http://www.slideroll.com

Flash Mx And Xml Slideshow
anyboby familiar with flash mx and xml slideshow???

i got my hand on a simple slideshow that suit my need for a customer website.
the thing is i have landscape and portrait pictures.
when it loads the landscape are centered since it's the size of the .swf file but the portrait ones are on the left.
how can center them?
i am pretty sure it has to do with this part of the code but i can not figure it out

ActionScript Code:
container_mc._x = _global.xpos;
        container_mc._y = _global.ypos;

any help would be appricated

Flash Slideshow
hello boy's/girl's i followed a tutorial on www.gotoandlearn.com, about a scrolling thumbnailpanel, I made it a mouse sensetive slideshow. How futher you drag the mouse from the center, how faster it's move to that direction, ("left/right"). The problem is if you drag out your mouse of the slideshow, it's still moving with the same speed, to the side it was scrolling. when you dragged out your mouse.

What i want is that if you drag out your mouse, that the slideshow loosing his speed, and after like 3 pictures slowly stops, and not if you drag out your mouse, that the slideshow immediatly stop's.

here is the code, i hope some of you can help me??


ActionScript Code:
stop();

slideshow.onRollOver = slideshowOver;

function slideshowOver() {
    this.onEnterFrame = scrollSlideshow;
    delete this.onRollOver;
}

var b = stroke.getBounds(_root);

function scrollSlideshow() {
        if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
        this.onRollOver = slideshowOver;
        delete this.onEnterFrame;
    }
   
    if(slideshow._x >= -40) {
        slideshow._x = -40;
    }
   
    if(slideshow._x <= -2230) {
        slideshow._x = -2230;
    }
   
    var xdist = _xmouse - 310
   
    slideshow._x += -xdist / 6;
}

plz help me

Slideshow: Flash Between Pix
i have a very simple slideshow controled through xml and actionscript ... but between the images i have an anoying flash every time ... even when the pix are loaded!

check out an example

frame-eleven.com/newyork/dummy

and heres the script:

slides_xml = new XML();
slides_xml.onLoad = startSlideShow;
slides_xml.load("slides.xml");
slides_xml.ignoreWhite = true;
//
// Show the first slide and intialize variables
function startSlideShow(success) {
if (success == true) {
rootNode = slides_xml.firstChild;
totalSlides = rootNode.childNodes.length;
firstSlideNode = rootNode.firstChild;
currentSlideNode = firstSlideNode;
currentIndex = 1;
updateSlide(firstSlideNode);

}
}
//
// Updates the current slide with new image and text
function updateSlide(newSlideNode) {
imagePath = newSlideNode.attributes.jpegURL;
loadMovie(imagePath, targetClip);
}
//
// Event handler for 'Next slide'


setInterval(next,3000);

function next() {
nextSlideNode = currentSlideNode.nextSibling;
if (nextSlideNode == null) {
currentIndex = 1;
currentIndex++;
updateSlide(firstSlideNode);
currentSlideNode = firstSlideNode;

} else {
currentIndex++;
updateSlide(nextSlideNode);
currentSlideNode = nextSlideNode;
}
};
//

is there any solution to get rid of the flash and to preload the pix?


thanks a lot
best
florian

Flash XML Slideshow
I need a fully customizable flash xml slideshow, so that I can change fonts for the captions, put the captions over the pic, change everything I want and put captions, thumbnails in any part of the canvas, and even not show thumbnails if I want.

Any link to a site where I can purchase something like this? In the worst case maybe a tutorial? I'd rather learn to do it myself, but not now cause I'm in a hurry so I want to buy one...

Flash XML Slideshow
I need a fully customizable flash xml slideshow, so that I can change fonts for the captions, put the captions over the pic, change everything I want and put captions, thumbnails in any part of the canvas, and even not show thumbnails if I want.

Any link to a site where I can purchase something like this? In the worst case maybe a tutorial? I'd rather learn to do it myself, but not now cause I'm in a hurry so I want to buy one...

Slideshow Using XML And Flash
I used the actionscript included in the "Slideshow Using XML and Flash" tutorial on kirupa.com to create a slideshow; I am wondering: does anyone know if there is a way to set the duration that a picture remains at 100% alpha? And, is there a way to have the picture fade OUT as well as fade in?

Basically, I would like to have a slideshow where pictures fade in slowly, stay at 100% for about 2 seconds, and then fade out a little quicker than it faded in. I'm just learning Flash, so it may be that this is a lot to ask, but I thought I'd try anyways.

Thanks for any help you can give!

Pam

Flash Slideshow
hello friends!

I need to make a image slideshow of 1000 pictures and 1000 captions in flash. I know how to create buttons that jump to the next and previous frames, etc, but I'm hoping there's an easier way to do this than to make 1 frame for each of the 1000 images, since that would take days, weeks, months, and/or years

is there a way to automate this process, or to make it less tedious somehow?

thanks in advance

Fitz

FLash XML SlideShow + URL
Ok, I understand the general Slideshow and the AS with it, but I wanted to know if I could add another function to it where there is a button involved that opens a URL.

This is what I have - but something is not working right? Pretty much when you click on the left side where the button is (under the text blocks) I want the button to open a browser window with the URL???


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

if (loaded) {

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

image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
header[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
url[i] = xmlNode.childNodes[i].childNodes[3].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);
title_txt.text = header[p];
capt_txt.text = description[p];
linkSelected = url[p];
link.onRelease = function() {
getURL(linkSelected, "_blank");}
slideshow();

}

}

}
function prevImage() {

if (p>0) {

p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
title_txt.text = header[p];
capt_txt.text = description[p];
linkSelected = url[p];
link.onRelease = function() {
getURL(linkSelected, "_blank");}
}

}
function firstImage() {

if (loaded == filesize) {

picture._alpha = 0;
picture.loadMovie(image[0], 1);
title_txt.text = description[0];
capt_txt.text = description[0];
linkSelected = url[0];
link.onRelease = function() {
getURL(linkSelected, "_blank");}
slideshow();

}

}

function slideshow() {

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

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

p = 0;
firstImage();

} else {

nextImage();

}

}

}


Any help/guidance with this would be great!

Flash Slideshow
I have created a slideshow using "creating a full flash site' on Kirupa but I cannot get the photos to appear where I want them to,my movie is bigger than at Kirupa but my photos show up at the bottom right of the flash movie and not in the center where I want them to and teh whole picture does not show either

Slideshow Using XML And Flash
HI All

Im trying to add next pause/play and prev buttons to this
http://www.kirupa.com/developer/mx20..._slideshow.htm

But I dont know is there possible I saw everybody has problem adding such a functions to this script.

Can anyOne Help us please??


Thnx a lot.
Gllanci

[Flash 8]Need Some Help For My Slideshow
I am working on a slide show [Flash 8] which will load images and videos from an XML file. My slideshow works fine for all the images. But when it comes to load the FLV file, I am facing problems. For example if I have 5 images followed by a video, the slideshow plays all the 5 images but does not load the FLV file. I appreciate if I could get help on this.

Thanks,
Venki

XML Flash Slideshow
Anyone know of any examples of XML Flash Slideshows? I need to create a small banner that has 3 links in it that each link to a separate 15 image loop of the images just fading in and out. No captions, no interaction other than the 3 links. Trying to figure out the simplest most efficient way to do this.

Help With Flash And XML Slideshow
I am working on a flash and XML photo slideshow. I want to add a fucntionality to it. Automatic image loading functionality. I want to load image continuously after some interval. I think I have to use setInterval for this:

no clear idea to me?

Please help me out.

Regards,

Mangesh Shinde.

FLASH SLIDESHOW
Sorry if I have posted this in the wrong place, But i was recently viewing this website and come across a sweet flash slideshow that I think can be downloaded somewhere.

http://www.atomic-element.com/index2.html

Notice there is flash slideshows on each section, is that some sort of stock that can be downloaded at all or an easy way to make it.

Thank you for your time on reading my request.

Flash Slideshow Help.
I need some help. I am trying to create a slide show using XML , i found the XML and FLASH Slide show tutorial but that is not How I need mine to work. My Slide show Needs to automatically transition but also have 5 buttons in case they wanna see the last image. For each number a caption and Image will display and if they like what they see they can click on it.

My design looks like this for reference:



And the Design coded with just arrows looks like so...
http://www.infinitymoldingsystems.com/slideshow/

Xml Flash Slideshow...
http://flashsourcecode.com/sourcecode.html - 4th link down.

i need to tweak this to work with 12 images and cycle through based on a timer instead of a button click. i've been fighting with it for over an hour, i'm sick, and don't know actionscript that well, so my brain is just shutting down.

i need to try and have this done tonight, so any help is greatly appreciated.

Flash Slideshow WITHOUT Xml?
Hello all,

I've learned so much from kirupa.com and these forums - especially when trying to get together an XML flash slideshow/gallery. The problem I'm having now is that I'm trying to create a slideshow with x number of images that automatically fade in/out one after another. I also need the option to pause/play and move forward/backward.

I'm using Flash 8, but can make it in CS3 if this will make a huge difference.

The images for the gallery would be loaded directly into flash in the Library (no need for XML for this one). Also, there would be a caption and link with each image - so as one image faded out and a new one appeared, a new caption and link would appear too. Any help would greatly be appreciated.

Thanks!
Manoj

Flash And XML Slideshow
Hi, I was going over the tut. on this site for the automated slideshow using flash and xml. I had a real quick question.

Here is the automated slideshows link....
http://www.kirupa.com/developer/mx20..._slideshow.htm

it is based of this non-animated slideshow located here....
http://www.kirupa.com/developer/mx20...otogallery.htm

I was wondering how one would go about keeping the forward and back controls but still keep it automated. If anyone could help me out with this it would be really really appreciated. I have been am just learning xml and actionscript. But I have a friend who would like me to build him an automated slideshow with forward and back controls.

Thanks alot.

Flash 8 XML Slideshow Help
Hello,

This is my first time in this forum. I have just started working in flash and I am having some trouble with a Flash XML Slideshow that I had purchased from "Flash Den" http://www.flashden.net. My problem is that I would like to add an element in the XML file to change the background color everytime the slideshow changes to a new slide. I have downloaded the xml gallery from this forum and it works great but on my home page, I would like the same function but only without the thumnails because my client would like the slideshow to be on the home page but without any thumbnails. She would also like the background color to change as the slideshow changes. If anyone can help me with this, I would really appreciate it. I have tried for weeks to figure out the code but I am fairly new to actionscript. Any help would be greatly appreciate it.

Thank you.

Flash Slideshow
Hi I saw your tutorial here and I added next and previous buttons for each slide/frame. I am loading the external images and text with xml. But I have a problem, when I press next so it goes to the next slide, its still counting down the delay of 4000 I have. So basicly if there is 1 second left till it automatically goes to the next slide and I press next, it will only be on the next slide for 1 second, until it goes to the next one AGAIN. I also want it to be so when your on the last slide, and you press next, it goes back to the first slide. And when on the first slide and press previous, it goes to the first. If anyone could figure it out here is my code I have:


Code:
delay = 4000;
//-----------------------

listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};

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 += 7;
}
}
};
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();
}
}
}

Flash 8 XML Slideshow Help
Hello,

I have a slideshow that I had purchased as a template but I would like to add a slideshow function to it. Right now, it is pulling from an xml file and you can only click "next", "previous" or on the thumbnails to view the photos. I would also like the "next" and "previous" buttons to be outside of the image. I am new to actionscript so I am having trouble writing the function that will display the images as a slideshow. I have included the code below.

Here is the code on the first frame inside the gallery_mc movieclip:

stageW = 800;
stageH = 600;
bgX = bg._x;
bgY = bg._y;
menu_mc.bgX = menu_mc.bg._x;
menu_mcX = menu_mc._x;
menu_mcY = menu_mc._y;
stageListener = new Object();
Stage.addListener(stageListener);
alignObjects = function () {
bg._x = bgX-(Stage.width-stageW)/2;
bg._y = bgY-(Stage.height-stageH)/2;
bg._width = Stage.width;
bg._height = Stage.height;
menu_mc._x = 0.0;
menu_mc._y = -225.0;
menu_mc.bg._x = menu_mc.bgX-(Stage.width-stageW)/2;
menu_mc.bg._width = Stage.width;
};
stageListener.onResize = function() {
alignObjects();
};
alignObjects();
//Load XML Data
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
colour = [];
thumb = [];
copy_txt = []
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
colour[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
thumb[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
copy_txt[i] = xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;
gotoAndStop(2);
}
} else {
msg.text = "Error loading XML";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("content.xml");
stop();

Here is the code on teh second frame in the gallery_mc movieclip:

////////////Initial Settings////////////
//Set border size here
border = 15;
//Set your stage width & height here
stageW = 800;
stageH = 600;
//Set initial size of white block on first image load here
bg_mc.bg._width = 200;
bg_mc.bg._height = 200;
//Set number of thumbs to be displayed
minThumbs = 15;
//Set spacing between thumbs
thumbSpacing = 6;
////////////Initial Values////////////
page = 0;
info_mc._alpha = 0;
info_mc.destAlpha = 0;
bttnNext._visible = false;
bttnPrev._visible = false;
info_bttn._visible = false;
////////////Functions: Buttons/////////////
bg_mc.bg.bttnNext.onRelease = function() {
nextPage();
};
bg_mc.bg.bttnNext.onRollOver = function() {
bttnNext._visible = true;
};
bg_mc.bg.bttnNext.onRollOut = function() {
bttnNext._visible = false;
};
bg_mc.bg.bttnNext.onDragOut = function() {
bttnNext._visible = false;
};
bg_mc.bg.bttnPrev.onRelease = function() {
prevPage();
};
bg_mc.bg.bttnPrev.onRollOver = function() {
bttnPrev._visible = true;
};
bg_mc.bg.bttnPrev.onRollOut = function() {
bttnPrev._visible = false;
};
bg_mc.bg.bttnPrev.onDragOut = function() {
bttnPrev._visible = false;
};
info_bttn.bttn.onRollOver = function() {
info_mc.destAlpha = 100;
};
info_bttn.bttn.onRollOut = function() {
info_mc.destAlpha = 0;
};
info_bttn.bttn.onDragOut = function() {
info_mc.destAlpha = 0;
};
////////////Functions: Page Navigation/////////////
function nextPage() {
if (page<(total-1)) {
if (this.menu_mc.thumb_menu._x>this.menu_mc.thumb_men u.destX-0.5 && this.menu_mc.thumb_menu._x<this.menu_mc.thumb_menu .destX+0.5) {
if (this.menu_mc.thumb_menu._x>(this.menu_mc.thumb_me nu.originX-(this.menu_mc.thumb_menu._width-(this.menu_mc.thumb_menu.thumb_mc._width+thumbSpac ing)*(minThumbs+1))-5)) {
this.menu_mc.thumb_menu.destX -= (this.menu_mc.thumb_menu.thumb_mc._width+thumbSpac ing);
}
holder._alpha = -100;
info_mc._alpha = 0;
page++;
loadMovie(image[page], holder);
pageNum();
}
}
}
function prevPage() {
if (page>0) {
if (this.menu_mc.thumb_menu._x>this.menu_mc.thumb_men u.destX-0.5 && this.menu_mc.thumb_menu._x<this.menu_mc.thumb_menu .destX+0.5) {
if (this.menu_mc.thumb_menu._x<this.menu_mc.thumb_men u.originX-5) {
this.menu_mc.thumb_menu.destX += (this.menu_mc.thumb_menu.thumb_mc._width+thumbSpac ing);
}
holder._alpha = -100;
info_mc._alpha = 0;
page--;
loadMovie(image[page], holder);
pageNum();
}
}
}
function firstPage() {
holder._alpha = -100;
info_mc._alpha = 0;
loadMovie(image[page], holder);
pageNum();
}
function pageNum() {
bg.newHEX = colour[page];
info_mc.txt.text = copy_txt[page];
}
_global.thumbClick = function(object) {
page = object.ID;
holder._alpha = -100;
loadMovie(image[page], holder);
pageNum();
};
firstPage();
alignPic();
////////////Alignment of objects on stage resize////////////
function alignPic() {
destWidth = holder._width;
destHeight = holder._height;
holder._x = (stageW-holder._width)/2;
holder._y = (stageH-holder._height-menu_mc._height)/2;
bg_mc.bg._width += (destWidth+border-bg_mc.bg._width)/5;
bg_mc.bg._height += (destHeight+border-bg_mc.bg._height)/5;
bg_mc.bg._x = holder._x;
bg_mc.bg._y = holder._y;
bg_mc._x = holder._width/2;
bg_mc._y = holder._height/2;
bttnNext._y = holder._y+(holder._height-bttnNext._height)/2;
bttnNext._x = bg_mc._width+(stageW-bg_mc._width)/2-bttnNext._width-border/2;
bttnPrev._y = holder._y+(holder._height-bttnPrev._height)/2;
bttnPrev._x = (stageW-bg_mc._width)/2+bttnPrev._width+border/2;
preloader._x = holder._x+holder._width/2;
preloader._y = holder._y+holder._height/2;
info_bttn._x = preloader._x;
info_bttn._y = preloader._y;
info_mc._x = preloader._x;
info_mc._y = holder._y+holder._height;
info_mc.bg._width = holder._width;
info_mc.txt._width = info_mc.bg._width;
info_mc.txt._x = info_mc.bg._x-info_mc.bg._width/2;
}
////////////Build Image Gallery based on XML Data////////////
for (i=0; i<total; ++i) {
this.menu_mc.thumb_menu.thumb_mc.duplicateMovieCli p("thumb_mc"+i, i);
this.menu_mc.thumb_menu.thumb_mc._visible = false;
this.menu_mc.thumb_menu["thumb_mc"+i].ID = i;
this.menu_mc.thumb_menu["thumb_mc"+i]._x = (this.menu_mc.thumb_menu.thumb_mc._width+thumbSpac ing)*i;
this.menu_mc.thumb_menu["thumb_mc"+i].holder.loadMovie(thumb[i]);
this.menu_mc.thumb_menu["thumb_mc"+i].txt = txt[i];
this.menu_mc.thumb_menu["thumb_mc"+i].destX = this.menu_mc.thumb_menu["thumb_mc"+i]._x;
this.menu_mc.thumb_menu["thumb_mc"+i]._alpha = 0;
this.menu_mc.thumb_menu._x = this.menu_mc.thumb_menu.originX=(stageW-(this.menu_mc.thumb_menu.thumb_mc._width+thumbSpac ing)*minThumbs)/2;
this.menu_mc.mask_mc._width = (this.menu_mc.thumb_menu.thumb_mc._width+thumbSpac ing)*minThumbs;
this.menu_mc.mask_mc._x = this.menu_mc.thumb_menu._x;
this.menu_mc.bttnPrev._x = this.menu_mc.mask_mc._x-thumbSpacing;
this.menu_mc.bttnNext._x = this.menu_mc.mask_mc._x+this.menu_mc.mask_mc._widt h;
this.menu_mc.thumb_menu["thumb_mc"+i].onEnterFrame = function() {
if (page == this.ID) {
this.gotoAndStop(21);
} else {
if (this._currentframe == 21) {
this.play();
}
}
if (this.isLoaded && this._alpha<100) {
this._alpha += 10;
}
};
}
////////////Thumnail menu and preloader script////////////
this.menu_mc.thumb_menu.destX = this.menu_mc.thumb_menu._x;
onEnterFrame = function () {
this.menu_mc.thumb_menu._x += (this.menu_mc.thumb_menu.destX-this.menu_mc.thumb_menu._x)/3;
loaded = holder.getBytesLoaded();
filesize = holder.getBytesTotal();
if (filesize>100) {
percentage = Math.round((loaded/filesize)*100);
preloader.percentageTxt = percentage;
if (isNaN(percentage) or percentage == 0) {
percentage = 0;
preloader.left.half._rotation = 0;
preloader.right.half._rotation = 0;
picLoaded = false;
} else if (percentage<=50 && percentage>0) {
preloader.left.half._rotation = 0;
preloader.right.half._rotation = (360/100)*percentage;
picLoaded = false;
} else if (percentage>50 && percentage<100) {
preloader.left.half._rotation = (360/100)*(percentage-50);
preloader.right.half._rotation = 180;
picLoaded = false;
} else if (filesize == loaded) {
info_bttn._visible = true;
preloader.left.half._rotation = 180;
preloader.right.half._rotation = 180;
alignPic();
if (bg_mc.bg._width>destWidth) {
info_mc._alpha += (info_mc.destAlpha-info_mc._alpha)/5;
if (holder._alpha<100) {
holder._alpha += 5;
}
} else {
info_mc._alpha = 0;
info_mc._destAlpha = 0;
}
}
}
};
stop();

I just need to add a function that will loop through the xml file and automatically start the slideshow onLoad. Any help would be great!

Thank you.

Slideshow XML And Flash
Hi,
I am referring to the following slideshow tutorial at
http://www.kirupa.com/developer/mx20..._slideshow.htm

Just curious to know if there is a way to play vertical and horizontal images in that slideshow,
that would tweak the size of each image automatically.

Thank you
uxk

Slideshow Using XML And Flash
Hi i have a question about this: Slideshow Using XML and Flash

is it possible to put the "delay"(setInterval) in the xml document for each picture, so that i can choose the delaytime for every picture.

How do i to load the xml into the ascript in the flash Slideshow Using XML and Flash


best regards
rickard andersson

AS 2 Flash Slideshow
Could you help me with creating Flash Slide show?
I have started creating it from KIRUPA's photo gallery, but need to add two more functions.
I am a beginner with ActionSscript, and not be able to figure it out myself.
..so, please help

I need to add two functions.
1. play loop images
2. which image is playing now indication on thumbnails.

Flash Mx Slideshow
Hi all, i'm trying to modify the slideshow for multiple xml gallery.
I have the code on the first frame and I want to load another xml (aria.xml) ,but if I use

on(release){
xmlData.load("aria.xml");
}

it work but not well, the loop crash.
How I do this?

Thank you!

function loadXML(loaded)
{
if (loaded)
{
xmlNode = this.firstChild;
image = [];
link = [];
total = xmlNode.childNodes.length;
for (i = 0; i < total; i++)
{
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
link[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
//trace(link[i]);
} // end of for
firstImage();
}
else
{
content = "file not loaded!";
} // end else if
} // End of the function
function fadeIn()
{
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 = picture._alpha + 5;
}
else
{
delete onEnterFrame;
slideshow();
} // end else if
} // end else if
};
} // End of the function
function fadeOut()
{
onEnterFrame = function ()
{
if (picture._alpha > 5)
{
picture._alpha = picture._alpha - 5;
}
else
{
picture._alpha = 0;
delete onEnterFrame;
nextImage();
} // end else if
};
} // End of the function
function nextImage()
{
if (p < total - 1)
{
++p;
picture._alpha = 0;
if (loaded == filesize)
{
picture.loadMovie(image[p], 1);
picture_num();
fadeIn();
} // end if
} // end if
} // End of the function
function firstImage()
{
init = true;
picture._alpha = 0;
picture.loadMovie(image[0], 1);
picture_num();
fadeIn();
} // End of the function
function picture_num()
{
current_pos = p + 1;
pos_txt.text = current_pos + " / " + total;
} // End of the function
function slideshow()
{
function pause_slideshow()
{
clearInterval(myInterval);
if (p == total - 1 && !init)
{
p = 0;
firstImage();
}
else if (p == total - 1 && init)
{
p = -1;
fadeOut();
}
else
{
fadeOut();
} // end else if
} // End of the function
myInterval = setInterval(pause_slideshow, delay);
} // End of the function
var delay = 5000;
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
p = 0;

Slideshow Flash
Hello

I have never used flash b4 but I think I am going to have to start looking at it for my webpage.

www.amalgam-models.co.uk/james/test4.htm

Basically there are 2 buttons forward and back that control the slideshow and they also control a smaller slideshow( the moving button)
Can anyone tell me if this is possible to achieve in flash, and any advice on how to go about it.
I have spent a long time trying to get this slideshow to work in all browsers but to no avail. Any help on doing this in flash would be greatly appreciated.
Thanks
James

Flash Slideshow
Couple of questions here.

I had some help creating a Flash slideshow that would reference a .XML file to determine which images were used, how long they appeared, and the duration of the transition to the next image. It is currently up @ >http://www.galbijim.com/private/current/

The client requested that this slideshow be used in two different areas on the subpages, and therein lies the problem. I am not proficient enough to get it to where the Flash file can read from seperate .XML files. Even if I put it into a different directory and reference that .swf, it seems as though the controlling XML file is pulled from the browser's cache.

Can anyone help with this? I've attached the .fla and some test files. I just really can't figure it out.

Thanks in advance guys.

Flash Slideshow
In flash there is this pre-made photo slide show. I have been trying to edit some of the shapes and colors, but when I try this with for instance a 'next' button it stays untouched. When I click break apart I can edit it but the function will be gone. Is there a way to copy the function of someting and drag it to some other shape?


And I also want the slide show to automaticaly play. Any advice on how to do this?

EDIT: Just so you know, I'm a complete noob at flash

Flash Slideshow
Hi,

Does anyone know of any type of free software or online service that allows you to make flash slideshows?

Important: I don't want any watermarking or labels of the software to appear...this is for a client.

Help Please: Flash Slideshow
Basically I have a movie player that loads and plays external swf files (mostly short flash movies of 4-5 seconds each).

Here are the issues though:

1) Initial autoplay works well.

2) When you click the "next" and "previous" buttons while an external swf is still preloading (you can see the preloader on the screen), it functions perfectly, no glitches.

However, while on autoplay:

3) When you click on the "next" button after the current external swf has loaded, it loads the next one (incompletely), then loads it again (completely) and plays it. Almost like deja vu.

4) With the "previous" button - say the first external swf has loaded and played, and then the second one has loaded as well, when you click "previous", it doesn't return to the first external swf, but instead, replays the second one that has just loaded (it's supposed to go back to the first).

5) Finally, when you click the "autoplay" (play) button while on autoplay, it plays the same (current) external swf twice in a row.

Loading it twice as well.

Can somebody help shed some light? I'm new at this and I think I need some more checkers or something.

This is how my timeline looks like:


And the URL to view my flash file is: http://www.hellog3cko.com/flash/index.html

Here's my code:


Code:
var loadValue;
var skipStop;
var playOnce = 0;
counter = 0;

// ARRAY

clipLabel = ["PartA", "PartB", "PartC", "PartD", "PartE", "PartF", "PartG", "PartH", "PartI"];

// FUNCTION

prevLabel = function() {

counter--;
if (counter >= 0 && counter <= (clipLabel.length-1)) {
_root.gotoAndPlay(clipLabel[counter]);
trace("Counter is: " + counter);
updateAfterEvent();
}

if (counter < 0) {
counter = (clipLabel.length-1);
_root.gotoAndPlay(clipLabel[counter]);
trace("Counter is: " + counter);
updateAfterEvent();
}

updateAfterEvent();

}

// FUNCTION

nextLabel = function() {
counter++;
if (counter >= 0 && counter <= (clipLabel.length-1)) {
_root.gotoAndPlay(clipLabel[counter]);
trace("Counter is: " + counter);
updateAfterEvent();
}

if (counter > (clipLabel.length-1)) {
counter = 0;
_root.gotoAndPlay(clipLabel[counter]);
trace("Counter is: " + counter);
updateAfterEvent();
}

updateAfterEvent();

}

// EVENT HANDLERS

bprev.onRelease = function() {
loadValue = 0;
skipStop = 0;
playOnce = 1;
prevLabel();
updateAfterEvent();
}

bnext.onRelease = function() {
loadValue = 0;
skipStop = 0;
playOnce = 1;
nextLabel();
updateAfterEvent();
}

bplay.onRelease = function() {
loadValue = 1;
skipStop = 1;
if (playOnce != 0) {
counter++;
if (counter >= 0 && counter <= (clipLabel.length-1)) {
_root.gotoAndPlay(clipLabel[counter]);
}
if (counter > (clipLabel.length-1)) {
counter = 0;
_root.gotoAndPlay(clipLabel[counter]);
}
playOnce = 0;
}
updateAfterEvent();
}

Flash Slideshow
Hello everyone,

Right now, I am working on a main "marquee" if you will for the homepage of a site Im working on. I can do basic flash but at the same time, its has been long overdue for me to try and make this slideshow easier for me to setup and maintain since im constantly having to add and remove slides.

I looked into using something like slideshowpro, or monoslideshow, however i've been told that people like the moving text and objects, so on and so forth and to stick to creating that in flash.

Click here to view the slideshow

I guess my goals are to:

1. Setup the slide timings with AS so I don't have to manually key frame everything.

2. Use AS for transitions in between the slides (a smooth fade).

3. Overall try to make adding slides easier while keeping the filesize as small as possible

Right now, all of these slides are in scenes and they are manually key framed. I guess I feel really stuck because I know theirs potential for this to be a lot better but I'm just really limited. I'm a fast learner though so, any advice would be greatly appreciated.

Flash Slideshow
A couple of questions:
1. I have used flash, swish and powerpoint before but don't have Flash 2004 Pro. Is there a great reason to get it to help build better slideshows?
2. Anyone seem to be extremely tallented in making slideshows/graphics say for a wedding and have examples of any type of slide shows? This is for my sisters wedding.

Thanks,
sean
sean@blue32.net

Flash Slideshow
Hello everyone,

Right now, I am working on a main "marquee" if you will for the homepage of a site Im working on. I can do basic flash but at the same time, its has been long overdue for me to try and make this slideshow easier for me to setup and maintain since im constantly having to add and remove slides.

I looked into using something like slideshowpro, or monoslideshow, however i've been told that people like the moving text and objects, so on and so forth and to stick to creating that in flash.


Click here to view the slideshow

I guess my goals are to:

1. Setup the slide timings with AS so I don't have to manually key frame everything.

2. Use AS for transitions in between the slides (a smooth fade).

3. Overall try to make adding slides easier while keeping the filesize as small as possible

Right now, all of these slides are in scenes and they are manually key framed. I guess I feel really stuck because I know theirs potential for this to be a lot better but I'm just really limited. I'm a fast learner though so, any advice would be greatly appreciated.

Flash Slideshow
Hello

I have never used flash b4 but I think I am going to have to start looking at it for my webpage.

www.amalgam-models.co.uk/james/test4.htm

Basically there are 2 buttons forward and back that control the slideshow and they also control a smaller slideshow( the moving button)
Can anyone tell me if this is possible to achieve in flash, and any advice on how to go about it.
I have spent a long time trying to get this slideshow to work in all browsers but to no avail. Any help on doing this in flash would be greatly appreciated.
Thanks
James

Flash SlideShow
I'm making a flash slide show that is dynamic(using xml) that will rotate through pictures by user clicking on the next/previous button on the player or having the image change every 8-10 seconds. I'd also like the images to fade-in/out.

I got the basic proto-type of the player working, it loads the images and the next/previous buttons work. I'm trying to decide how I want to implement this time function and the fade-in/out. My current thought is to use a onClipEvent on the movieclip(targetClip) that holds the image that is loaded. I was playing with the getTimer function and I'm kinda stuck on how I should implement it to check if 8 seconds has passed. Figure I could store the initial time on(Data), and somehow write a function to check the stored time with the new getTimer value. Was thinking I could maybe use the onMouseMove event because it would be constantly triggered. Would this be a bad implementation? And for fading these images out could I use the getTimer function and use it in conjunction with the alpha level of the clip to give the effect of a fade-in/out?

Here is the current slide show: Current Slideshow Project

And if you want to look at the other files or my .fla just download it from my directory:
Grab any source files

Any advice or thoughts are welcome

Flash Slideshow When Opened On Top Of Another Flash Movie Won't Play
Problem playing a flash 8 or mx 2004 slideshow when loaded on top of another movie.

I have a main movie. I can open another movie automatically (no button) on top of a particular scene by using loadmovie or this code...

this.createEmptyMovieClip("new_mc", 1);
loadMovie("emailForm2.swf", "new_mc");
new_mc._x = -110;
new_mc._y = -130;

OK. When I load a slideshow (even a new slideshow created from flash's template files) on top of my movie or (even a new blank movie), the slideshow controls (play, forward, back, etc) do not work.

In my movie, when I press play, the entire MAIN movie reloads (sporadically) and the audio file of my main movie begins playing out of sync. The slideshow's next button is grayed out. The first jpeg image in the slideshow presents itself but of course you can't move to the second image.

Any ideas why this happening?

If I insert the slideshow into an html file and call it via javascript, it works fine. But of course this is ugly. So, something is messing up my slideshow when it loads on top of my main movie.

Your intellectual pursuit in solving this matter would be appreciated.

hamlett22

Updating A Flash Slideshow
I have a slideshow I created in Flash. The images in the show are all the same size. The slideshow will be updated weekly. Is there a way for someone who doesn't have flash update the images, that way I don't have to do it everytime. Or if you know of another alternate, I'd love to hear it.

Thanks,
Jiffy Loop

Modify Flash MX Slideshow
We are looking for someone to modify the Flash MX slideshow template to do the following:

1. Allow the viewer of the slideshow to set the timing between slides.

The template already allows for setting the timing before exporting the movie, but we need for the user to set the timing after the movie is exported.

We are willing to pay for the modification.

Thank you.

Slideshow Preload Flash 5
Hi all,
I desperately need to create a simple slideshow that streams over the web for a client. I've researched this subject quite a bit on the forums but need some clarification.

Here's a description of my slideshow.
1. Basically a powerpoint conversion with 40 slides.
2. simple one frame animations (eg. bullets appear) synced to voice over.
3. Each slide (voice over plus graphics) is about 100k. 4MB total
4. Flash 5

My Dilemma:
I basically wasted 2 days assuming that scenes would load on the web the way they do when you test the movie in flash. I was wrong. So now I'm debating over loading external swf's or just using one big movie with preloading.

If I use one swf to hold all 40 slides (slide 1 on frame 10; slide 2 on frame 20; and so on to frame 400), does all the audio load before the movie will start? Or can I set up a series of preloaders to allow slide one to start while loading latter slides sequencially? I would prefer to use embedded audio(where you see it on the timeline), but I am willing to use "Linkage" if that's the only way.

If I use 40 external swfs, will I need to load each swf when the user gets to it? Or can I preload up to 40 swfs? Remember, none of my animation tweens. Only a simple timer that occationally tells playhead to move one frame.

Any help is greatly appreciated. I appologize if this has been repeated but I couldn't find the answer and I'm hurting for time.

Thanks, Joe

Copyright © 2005-08 www.BigResource.com, All rights reserved