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




Slide Show



using following scripts. problem is that the last page of the slide show is empty!? i think some hoe there is one position too much in the array, but i cant find out where!? can somebody help? thanks Martin actionscript:
Code:
stop();lv = new LoadVars();lv.onLoad = function(success) {if (success) {pArray = this.imgList.split(", ");changePhoto(0);_root.picsMax = "0"+pArray.length-1;} else {info.text = "could not load file";}};lv.load("horsepower.php");// variables ------------------------------------------// put the path to your pics here, include the slashes (ie. "pics/")// leave it blank if they're in the same directorythis.pathToPics = "horse/";// fill this array with your pics (set from horsepower.php)this.pArray = pArray;this.fadeSpeed = 20;this.pIndex = 0;// MovieClip methods ----------------------------------// d=direction; should 1 or -1 but can be any number//loads an image automatically when you run animationloadMovie(this.pathToPics+this.pArray[0], _root.photo);MovieClip.prototype.changePhoto = function(d) {// make sure pIndex falls within pArray.lengththis.pIndex = (this.pIndex+d)%this.pArray.length;if (this.pIndex<0) {this.pIndex += this.pArray.length;}this.onEnterFrame = fadeOut;};MovieClip.prototype.fadeOut = function() {if (this.photo._alpha>this.fadeSpeed) {this.photo._alpha -= this.fadeSpeed;} else {this.loadPhoto();}};MovieClip.prototype.loadPhoto = function() {// specify the movieclip to load images intovar p = _root.photo;//------------------------------------------p._alpha = 0;p.loadMovie(this.pathToPics+this.pArray[this.pIndex]);this.onEnterFrame = loadMeter;};MovieClip.prototype.loadMeter = function() {var i, l, t;l = this.photo.getBytesLoaded();t = this.photo.getBytesTotal();if (t>0 && t == l) {this.onEnterFrame = fadeIn;} else {trace(l/t);}};MovieClip.prototype.fadeIn = function() {if (this.photo._alpha<100-this.fadeSpeed) {this.photo._alpha += this.fadeSpeed;} else {this.photo._alpha = 100;this.onEnterFrame = null;}};// Actions -----------------------------------------// these aren't necessary, just an example implementationthis.onKeyDown = function() {if (Key.getCode() == Key.LEFT) {this.changePhoto(-1);} else if (Key.getCode() == Key.RIGHT) {this.changePhoto(1);}};Key.addListener(this);
php:
PHP Code:


<?php $dir = opendir("horse"); while ($file = readdir($dir)) { if ($file=="." or $file=="..") continue; $string.= $file; $string.= ", "; } echo "imgList=".$string; ?>



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 01-04-2005, 08:04 AM


View Complete Forum Thread with Replies

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

Slide Show Image Dispears 3 Minutes After Slide Show Is Stopped - Why?
I have created a slide show with a stop button. The buttons stops; but after about 3 minutes of being stopped, the image just disappears and all I see is the movie's background. Does anyone know why this is occuring? If so, is there a quick fix for this issue?

PS: I used one of the goToAndPlay Key Frame events built right into my software; I assume it was this (to make movie stop):


Code:
on(release) {
stop();
}

Slide In Photo Slide Show(actionscript Newbie)
Hello good pple of the forum,
I have about four jpeg pictures, wat i want to do is a slide show. What i want is a movie whereby the first pic would slide up vertically, followed by the second pictures, third and fourth.
Thank you so much for your anticipate reply.
Cheers

Why Does Slide Show Image Dispears After 3 Minutes (When Show Is Stopped)
I made a slide show with navigation buttons, but when the slide show is stopped for more then 3 minutes; the image just disappears. Here is the code I am using:

First Actionscript


Code:
loadMovie(""+photo1+"","mc1");
_root.mc1._xscale = 80;
_root.mc1._yscale = 70;
_root.mc1._alpha = 0;
Second Actionscript


Code:
var speed = 5

onEnterFrame = function() {
_root.mc1._alpha += speed
}

Then I tried this; the image did not disappear this way, but the transitional effect did not work.

First Actionscript


Code:
_root.loadMovie(""+photo1+"","mc1");
_root.mc1._xscale = 80;
_root.mc1._yscale = 70;
_root.mc1._alpha = 0;
Second Actionscript


Code:
var speed = 5

onEnterFrame = function() {
_root.mc1._alpha += speed
}
What do I need to do, too make sure image continues to display?

PS: I am sending query string from HTML to Flash to display variables (ie. movie.swf?photo1=mypic.JPG)

[CS3] Slide Out Menu W/ Flash Slide Show
I stumbled across this website and figured you may be able to help me. Since I am the "computer guy" at our church, I have been asked to design a website for them. I know the very basics of website design but figured I'd give flash a try. I have attached what I would like our menu to look like. This was designed in Photoshop as is the rest of the website (not shown). Basically, I want the pictures to become a Flash slideshow and then the menu to slide out to the left when the mouse is over it and whichever word (HOME, ABOUT US, etc) the mouse is over, that word will slide back to the right to the original position. Then, if someone clicks HOME it will go to the Home page and such. I also want the menu to slide back when the mouse is not over it. How in the world do I do this? It's an idea I had in my mind but unfortunately I don't know enough about Flash to do this. If someone can step me through this step-by-step or has any code, that'd be great. Thanks in advance guys!

Slide Show
Hi I am making a slide show where you can cycle backwards and forwards through .swf files.
I have them loading and cycling though but I am having trouble with the sizing is there any way to size them dynamicly.

Slide Show
Does anyone know of a good way to dynamicly set up and play a massive amount of pictures in a slide show format?

Slide Show Help Please
Hello,

I nned help creating a slide show file like the one seen here: http://www.hollywood.com . It's the animation at the top that has three different images flashing in the frame with the words "get full story" on one of the buttons at the bottom. If someone can tell me how they would approach doing this in Flash I would greatly appreciate it.

Thanks,
tdsilk2

Slide Show
I want to make a simple slide show with some family pictures. I would like to put the pics in an array and loop my program to call out each picture in the array instead of having a program with 1000 frames.

Is this possible or is there a better way to accomplish this?

I looked through the tutorials, but didn't see anything off hand. If there is one please give me the link.

thanks.

Slide Show Of .swf's
Hi,

This might be silly. I have a movie that contains thumbnails (buttons) that call each an .swf movie, that is basically a big photo. This was done with loadMovie, etc.

Now I also need that the big images can be controlled by a forward and back arrows, so this arrows would call in a relative way, the next movie. I have named the swf files consecutive numbering...

http://studiocom.com/scott/work.html

Can I do this? Is it an action script? Does anyone here can help me out?

Thank you!

Slide Show
Is there a way to make a slide show in Flash as you do it in go-live with a next and prev button. I want each photo to load upon request, when either button is pushed. All the photos are located on a server allready! Is there a way to do this? I know that you can make a slideshow within flash but then all the pictures would have to be included in the swf file right? Or is there a way to do it like that in Flash?

Slide Show
im trying to use flash as some sort of a slide show showing a lot of pictures, words and music.

im having trouble with it when i view it in .swf (fullscreen)...the fade in fade out sequence of the pictures are really choppy and not smooth.

can somebody suggest a way to smoothebn the fadein and fade out of the pictures.

hope sombody can help.

thanks!!

Slide Show Help
how do i do a slide show and position it anywhere i want it to....
like 1 pic by 1.... for an example, "|" represent one pic... "<---"moving to the left
Example:
<---- | | | | | | | |

and it keeps on moving to the left non stop.... ect..

Slide Show Help
can u teach me how to do this flash sample i have for u,,,, this is a porn slide show.... i hope u can mature enough to view this file...
http://members.shaw.ca/trash-can/flash/filmroll.swf

send me a sample and teach me how to make this filmroll... thx

Slide Show
First off, I want to say thanks in advance to anyone who can help me with this problem.

I am very new to flash, and I was creating a form of a slideshow. The thing is all the information I have seen on here has been slideshows that have buttons on them, and I want mine to switch an image every second.

The solution I came up with. I inserted the following code on every 12th frame: loadMovieNum("logo.JPG",1); and did this with all the pictures i wanted to load. I am sure there is a better way of doing this. The movie seems a bit choppy with this method. The reason I did this is because I do not want to load all the images becauae they are arounf 30-45 kb a piece and it would take the film forever to load.

Any ideas in how to make this better would be greatly apprciated. Also, I have read the sound tut, but it was still a little fuzzy. I have a 2 meg mp3 i want to play as the slides move, but again is there a way it can play without having to load the whole file first.

I have tried mySound = new Sound();
loadSound = ("music.mp3",true) but it does not seem to work when I put that on the first frame of the main movie.

Slide Show
I'm new and I'm being quite stupid but...

I've created a nice flash intro into the slideshow but as the jpgs load the show goes slower, slower, slower...etc. One fades out, the next fades in...etc. while music plays.

The show will have a minimum of 50 slides and will be put on CD...this is NOT for web use.

Help! And thanks from a good, fast learner.


George

Help.. Help.. Help.. For Slide Show
Hi Folks,

I need your great help for slide show with interval of few seconds or on click and fade-in-out transitions.

Thanks in advance.

Regards

nikul

Help With Slide Show
Hi,

I need some help in creating a slideshow in Flash MX.

I have 200 fotos that I want them to automaticly appear on the screen every 1 second.

I'd like to have all the fotos as external .jpgs or .swfs that are then up loaded, so I'd probably need to pre-load the next image while the previous is showing.

Also I'd like the images to appear in random order, but to be able to control this so that the same image wouldn't appear twice until all the others have been shown.

Does anyone have any ideas on how to do this?

And I have searched the tutorials and forums, but there are none that I can find like this, as I don't want to use masks on the images, etc.

Thanks for any help,

Slide Show
hi, a client of mine has asked me to buld him a slide show demonstrating a job from start to finish, he has provided about 60 photo's and there will also be descriptive text to go with each one, can any one suggest an easy way of doing this,

open to any suggestions.

thanks in advance

brian

Slide Show
hello,

i just started teaching myself flash about 2 weeks ago, and im trying to put together a slideshow of my backpacking trip to europe.

the file size itself is already getting huge - its about 35 mb and im only about 2/3 done (because i put in an mp3 soundtrack and customized intros to each city i visited, not to mention about 300 pictures from 10 different cities), but im going to burn it onto CD to give to friends - so no downloading worries. i am trying to compress the mp3s down further and do what i can to shrink the size.

anyway, i was wondering if anyone could help answer ANY ONE of the following questions for me... (don't have to answer all of em)

so question 1): i know i should have divided the show up into scenes or separate flash files but i only learned how to do that very recently so now the show's timeline is just one jumbled mess that goes up to about 8000 frames. just started teaching myself some actionscript, so i was wondering if a flash file that is about 50 mb plays faster as a single file or one that is divided up into ten 5 mb flash files strung together by actionscript, because at this size, its starting to slow down my computer midway through the movie.

2) I want to add captions to the show for certain pictures, but i want to make them optional to see. so on my main menu page before the show begins, i want the user to be able to select an option to turn captions on/off. does anyone have tips on how to do this?

3) I also need help with a preloader. i want the movie to load onto the viewer's computer so the sound plays smoothly in sync with the pictures. Does a preloader even help in this case if the flash file is already on the harddrive and not being loaded? or is the file size just too big and will slow down any computer with insufficient memory?

if you can help with any of these, please respond. thanks for reading this through.

ricky

Slide Show
I'm trying to build something very similar to the flash piece on http://49ers.com (the 3 photos that scroll below the main photo) and to be completely honest, I don't know where to start...dang designers with no coding skills!

Basically, I have 4 photos, displaying 3 at a time. If you click on the next button or the right phototr, the photos shift left. If you click on the back button or the left photo it, the photos shift right. I really don't know how to make it animate backwards without jumping around to a million different frames and making it loop. Is anyone able to help.

Thanks MUCH in advance.

Slide Show
I'm trying to create a flash presentation. It has 6 "slides" I need when you click on [1] slide one moves in from right. when you click then on any other slide, the current one slides out and the selected on slides in.

Can anyone suggest the easiest way in flash to get the buttons (1, 2, 3, 4, & 6), when clicked, to make the current slide move out, and the one selected move in?

I had it set up to when clicked, it would go to a frame and play the tween to move the slide off the stage, then at the end of that tween, it would go to a different scene. (ie. scene 2 if slide 2 was selected) It just seems that there should be an easier way to do this.

Thanks.

Slide Show-help
im not really a newb at falsh but i just dont know how to script. so can someone please give me a code for using a button to go to the next and previous frame by pressing it. and also i got this button called "autoplay", if you could give a code for that too please. and thank you. i would really apprciate it.

Slide Show
Hi,
I want to create a auto playing slide show (fadein and fadeout effect)using images in an external folder. This I could do with the help from this forum.
I want the slide show that
Displays thumbnails (Maximum around 15 - 20 Images)which can be selectiable and the user can select more than one thumbnail and after selecting the Images and clicking a button say submit, the selected Images will play a fade in and fade out slideshow.

Second question, can the use save this and send to a friend.

Is the above possible?. Can somebody help me in this regard.

Thanks in advance.

Slide Show Help
I'm trying to create a photo slideshow similar to the one used on this page:
http://www.sharethejoy.net/050303/050303.html

I need to create several slide shows with over 50 photos and music in each show. I also want the slide show too load fast, or at least start fast. Should I be using an XML based slide show for this? If so is there any existing code that I can download and manipulate for my purposes?

Any help would be greatly appreciated,
Frank DePino

Slide Show
Hi
I have made a simple slide show and i would like the movie clip to get the jpg pics from outside of the swf file,so i can update the pics without entering the fla. Is there away to do this in flash mx.

Thanks for your help

Slide Show Help
I have a very large (6.7MB) slide show.
I would like to have only part of the slide upload and while the user navigates through the beginning of the slide the remaining of the show uploads.
Anyone know what script I should add to my preloader to make this happen?
Thanks
Ecinele

Slide Show - Help...
hi there,

i am creating a slideshow which consists of 13-16 images that scroll horizontally. when the user rolls over an image the scrolling speed increases and the image moves to the middle of the viewer.

i am close, but am getting an unacceptable result when the image moves to the middle (the image goes mental!).

Click here to view the swf

in brief the movie consists of the following actionscript:

main timeline:
---------------------------------------------
initSpeed = -10;
pieces = 13;
startLoc = 606;


function setSpeed(speed, xStop, stopped) {
imageSpeed = speed;
imageXStop = xStop;
imageStopped = stopped;
}
---------------------------------------------

scrolling mc
---------------------------------------------
onClipEvent (load) {
_root.largePieceWidth = _width/_root.pieces;
_root.largeWidth = _width;
_root.imageSpeed = _root.initSpeed;
endPoint = _root.startLoc - _root.largeWidth + _root.largePieceWidth;
}

onClipEvent (enterFrame) {
// first determine if mc needs to loop
if (_x <= -15074) {
_x = -7196;
} else {
if (_root.imageStopped == 1) {
if (_x > _root.imageXStop) {
dx = _root.imageSpeed;
_x = _x + dx;
} else if (_x < _root.imageXStop) {
dx = -(_root.imageSpeed);
_x = _x + dx;
} else {
_x = _root.imageXStop;
}
} else {
dx = _root.imageSpeed;
_x = _x + dx;
}
}
}
---------------------------------------------

each image:
---------------------------------------------
on (rollOver, keyPress "<Enter>") {
xStop = 0;
stopped = 1;
_root.setSpeed(-20, xStop, stopped);
_root.mcTextVirtu.gotoandplay("startText");
}
on (rollOut, keyPress "<Enter>") {
xStop = 0;
stopped = 0;
_root.setSpeed(_root.initSpeed, xStop, stopped);
_root.mcTextVirtu.gotoandplay("stopText");
}
---------------------------------------------

sorry for the long post, any help would be MOST greatly appreciated.

mike

Slide Show
Hi, I have made a slide show, w/o buttons, I would like for the slide show to run through the course of pictures and then stop, however, I would like for each picture to pause for a few seconds. Is there an action script for this? If there is, can someone please post it here.

Thank you.

Slide Show
i have this slide show, but i want it to fade in and out when the pictures change. can anyone help me with that? thanks.

Slide Show
I have multiple photos that I want to place in a slide show - does anyone have a link where I can get some action script for this?

thanks!

Slide Show ?
Slide show help please, Im a real newbie, but lucky enough to have flash mx pro, Id love to make a slide show, with flash, but, cant find any help files on how to do this ? any info, would be very much apprieciated

Best Way To Do A Slide Show?
I'm looking for the best way to show my portfolio & pictures,

Any good resources out there?

Thanks

Slide Show
How can I make a functional slide show on Flash MX without uploading JPGs onto the actual file? All the pictures I have are different sizes so how do I take that into account?

Slide Show
Please could someone help me on a photo viewer?

With a next and previous button that loads the next picture?

I cant even think where to start? Would the pictures load into another small movie?

I would appreciate any help...thanks

JAMES

Slide Show II
Greetings,

Since I haven't heard anything in reference to a previous plea for help with a slideshow I had attached to the message I have rethought my process and perhaps I need to think about a different type of slide show.

Does this type of show exist on this site or can someone point me to one that will:

A. Allow me to control the fade rate from one image to the next (I don't really need this but it would be nice)

B. Allows me to control how long each image is displayed

C. Allows for any number of images to be displayed.

D. Will import and/or target a folder full of jpeg images that are numbered "image000.jpg"

E. Will allow me to import and display at whatever size the images are (as long as all the images are the same size).

As mentioned in a previous message, I have a slide show that does all that accept allow a large number of images to be presented.

It would b nice if when I change any of the parameters listed above if it would apply to everything and not just one slide (who want's to have to do that to each and every image, yuk).

Hopefully someone has done this or can point me to a new and improved version.

Slide Show Help
hey does anyone know how to do a slide show full of buttons. Like when you rollon a button the picture fades in and when you rollout the gallery starts playing the slide show again

Slide Show
I have seen these people that have these slideshows on there website. Where it just changes picture every 3 seconds and it has like 4 pictures in it.

How do you do that ?

Slide Show In Aol
My slide show created in Flash MX Professional isn't working in AOL browser. please help! thank you.

Slide Show
Hi
I am trying to create a slide show that uses external jpg files
I have already set up an array and made a function to chnage the current slide by one either forward or backward.

Now what I want to do is create the option of selecting the photo to view by using buttons that are numbers, ie image1, 2, 3, 4, 5 etc
this is so the user does not have to go slowley through just 1 slide at a time
I have attached the project directory as a zip folder if anyone does not understand my queston.

So what i think I need to do is create some kind of function that uses the array I have already created and load the correct external jpg that relates to the numbered button.

The file is a flash 8 file.

any help is greatly appreciated
Thanks alot

Slide Show
i want to make a portfolio page where the images are tumbnailed then scroll over to pop up a larger photo, i would like to do some sort of slide show so only 5 images show at one time across the bottom, with directional buttons to access the next 5, and so forth

[F8] Xml Slide Show Help Please
hi there
i have an xml slide show that i want to show swfs and jpgs....when i test it it all works fine and shows the jpgs and the swfs however the functions within the swf's dont work...what do i need to do to sort this...im new to this so any help will be great thanks alot!

[F8] Swf Within An Xml Slide Show-help Please
hey there
ok i have a xml slide show that shows jpgs and swfs...they all view fine however i cant get the swf's within this slideshows functions to work...the buttons in them dont work etc..can anyone help i have tried this already....

the first frames actions layer has this..

stop();
this._lockroot = true;

the button has this code on it..

on(release){
trace("button released, I'm going to frame 2");
_root.gotoAndPlay(2);
}

but it doesnt seem to be workin....any ideas???
thanks alot

Slide Show Help
is there a better way to do t his?... My problem is it works the first time but if I neavigate away and then back to that frame the slideshow is all buggy.
-M

import mx.transitions.Tween;
import mx.transitions.easing.*;



function animation():Void {
hp_loop_2._alpha = 0;
hp_loop_3._alpha = 0;
hp_loop_4._alpha = 0;
hp_loop_5._alpha = 0;
hp_loop_6._alpha = 0;
hp_loop_7._alpha = 0;
hold = new Tween(hp_loop_1, "_alpha", Regular.easeOut, 100, 100, 4, true);
hold.onMotionFinished = function() {
fadeDown = new Tween(hp_loop_1, "_alpha", Regular.easeOut, 100, 0, 2, true);
fadeUp = new Tween(hp_loop_2, "_alpha", Regular.easeOut, 0, 100, 2, true);
fadeUp.onMotionFinished = function() {
hold = new Tween(hp_loop_2, "_alpha", Regular.easeOut, 100, 100, 4, true);
hold.onMotionFinished = function() {
fadeDown = new Tween(hp_loop_2, "_alpha", Regular.easeOut, 100, 0, 2, true);
fadeUp = new Tween(hp_loop_3, "_alpha", Regular.easeOut, 0, 100, 2, true);
fadeUp.onMotionFinished = function() {
hold = new Tween(hp_loop_3, "_alpha", Regular.easeOut, 100, 100, 4, true);
hold.onMotionFinished = function() {
fadeDown = new Tween(hp_loop_3, "_alpha", Regular.easeOut, 100, 0, 1, true);
fadeUp = new Tween(hp_loop_4, "_alpha", Regular.easeOut, 0, 100, 1, true);
fadeUp.onMotionFinished = function() {
hold = new Tween(hp_loop_4, "_alpha", Regular.easeOut, 100, 100, 4, true);
hold.onMotionFinished = function() {
fadeDown = new Tween(hp_loop_4, "_alpha", Regular.easeOut, 100, 0, 1, true);
fadeUp = new Tween(hp_loop_5, "_alpha", Regular.easeOut, 0, 100, 1, true);
fadeUp.onMotionFinished = function() {
hold = new Tween(hp_loop_5, "_alpha", Regular.easeOut, 100, 100, 4, true);
hold.onMotionFinished = function() {
fadeDown = new Tween(hp_loop_5, "_alpha", Regular.easeOut, 100, 0, 1, true);
fadeUp = new Tween(hp_loop_6, "_alpha", Regular.easeOut, 0, 100, 1, true);
fadeUp.onMotionFinished = function() {
hold = new Tween(hp_loop_6, "_alpha", Regular.easeOut, 100, 100, 4, true);
hold.onMotionFinished = function() {
fadeDown = new Tween(hp_loop_6, "_alpha", Regular.easeOut, 100, 0, 1, true);
fadeUp = new Tween(hp_loop_7, "_alpha", Regular.easeOut, 0, 100, 1, true);
fadeUp.onMotionFinished = function() {
hold = new Tween(hp_loop_7, "_alpha", Regular.easeOut, 100, 100, 4, true);
hold.onMotionFinished = function() {
fadeDown = new Tween(hp_loop_7, "_alpha", Regular.easeOut, 100, 0, 1, true);
fadeUp = new Tween(hp_loop_1, "_alpha", Regular.easeOut, 0, 100, 1, true);
fadeUp.onMotionFinished = function() {
animation();
};
};
};
};
};
};
};
};
};
};
};
};
};
};
}

animation();

Slide Show
Hi, I got this code from Kirupa.com. It works good with slide show using XML. But my problem is, the background goes while the next images fades in. I would appreciate if somebody could help me modify this code so that next images fades in over the previous image. This is urgent.

Thank you.


HTML 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("imgFlash.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 = false;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = true;
if (picture._alpha<100) {
picture._alpha += 3;
}
}
};


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

Slide Show Help
Hello everyone,
I have this dynamic slide show reading some info (file name/address/...) from an xml file but I'd like to scale each picture to 100 by 100 pixel here is how my functions look like...:

function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
url_txt.text = url[p];
img_delay = delay[p];
picture_num();
slideshow();
}
}
}
/****************************************/
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
url_txt.text = url[0];
img_delay = delay[0];
picture_num();
slideshow();
}
}
/****************************************/
function slideshow() {
myInterval = setInterval(pause_slideshow, img_delay);
function pause_slideshow() {
clearInterval(myInterval);
if (p == (total-1)) {
p = 0;
firstImage();
} else {
nextImage();
}
}
}


anybody knows how I can do that?
best regards...
Karan

Slide Show
Hey guys,

Situwation
Made a photo slide show with music for a client.

Problem
The page with the flash file on it works perfectly on 75% of all machines.

But on a few it takes awhile before the preloader actually starts displaying. (I'm using the smooth preloader from the tutorials)

And then sometimes the music starts but the photos never do. The photo movie clip is on the same frame as the music player code so it shouldn't be starting before the other.

When this happens and they hit refresh all works perfectly.

I reduced the size of the file down from 10MB to 4MB but the problem still happens.

Question
Is this because of the size of the file? I made one last year and didn't have any problems using the same preloader, music player and format.

This older stuff not work as well with the new players or something? Any ideas on fixing it?

Thanks

Help With Xml Slide Show
Hi all,

Im wanting to create a flash xml driven slideshow and although I found a heap of tutorials online, Im wanting a slide show that runs automatically without the user having to click a next button.

Could someone help me out with some code or paste a url link to a tutorial showing how I would build such a thing.

Cheers

Slide Show
I followed a tutorial and created a slide that loades external .jpgs and fades them in and then transitions nicely to the next. I posted it on the web, and on a fast connection the slides load really nicely and look smooth. On a slow connection, the images never appear because the file doesn't have time to load before it is told to go on to the next image.

So, is there a way to preload the external .jpg's?
The other thing that I was thinking is that I could import all of the .jpg's into the movie and make mc's with them. Then I could preload the movie. How would I modify this code to accomidate mc's?

this.pathToPics = "slides/";

this.pArray = ["slide_1.jpg", "slide_2.jpg", "slide_3.jpg", "slide_4.jpg", "slide_5.jpg", "slide_6.jpg", "slide_7.jpg", "slide_8.jpg", "slide_9.jpg", "slide_10.jpg", "slide_11.jpg", "slide_12.jpg", "slide_13.jpg", "slide_14.jpg", "slide_15.jpg", "slide_16.jpg", "slide_17.jpg"];
this.fadeSpeed = 5;
this.pIndex = 0;

loadMovie(this.pathToPics+this.pArray[0], _root.photo);
MovieClip.prototype.changePhoto = function(d) {

this.pIndex = (this.pIndex+d)%this.pArray.length;
if (this.pIndex<0) {
this.pIndex += this.pArray.length;
}
this.onEnterFrame = fadeOut;
};
MovieClip.prototype.fadeOut = function() {
if (this.photo._alpha>this.fadeSpeed) {
this.photo._alpha -= this.fadeSpeed;
} else {
this.loadPhoto();
}
};
MovieClip.prototype.loadPhoto = function() {
var p = _root.photo;
p._alpha = 0;
p.loadMovie(this.pathToPics+this.pArray[this.pIndex]);
this.onEnterFrame = loadMeter;
};
MovieClip.prototype.loadMeter = function() {
var i, l, t;
l = this.photo.getBytesLoaded();
t = this.photo.getBytesTotal();
if (t>0 && t == l) {
this.onEnterFrame = fadeIn;
} else {
trace(l/t);
}
};
MovieClip.prototype.fadeIn = function() {
if (this.photo._alpha<100-this.fadeSpeed) {
this.photo._alpha += this.fadeSpeed;
} else {
this.photo._alpha = 100;
this.onEnterFrame = null;
}
};
aChange = function(i) {
i.changePhoto(1);
};
setInterval(aChange, 6000, this);

Slide Show
Below is what I will be talking about.

Click Here

It is a photo galery, and I want to set it up that if the user preses the button, the pictures rows 1, 2, 3 will be visible, thet when the user presses the button again rows 4, 5 , 6 will be visible ...

Here Is the function that I am using:


Code:

function up(mc) {
if (_root.photo1.photo._y==-336.0) {_root.photo1.gotoAndPlay(21);} else
_root.photo1.gotoAndPlay(2);
}
._y == -336 is where the photo1 mc stops and rows 1 , 2 and 3 are visible.

The code is not working, how can I fix it to do what I want ?

Slide Show
Here's a real basic question that I can't get my mind around. All we
want to do is create a slide show movie with stop - forward - rewind
buttons. An example would be a site like this one:
http://www.tileroofing.org/tileroofing/index.aspx

We've done a movie with photo dissolves but not with the control
buttons. As you can tell we haven't done much in Flash. I've done
searches on Flash slide shows but can't find the right example. Project
Seven has some nice slide show programs but not with the dissolves and
control buttons that we need. If anyone could point us to a Flash
tutorial or third party program that does this it would be greatly
appreciated.

Thanks.

Fred

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