A Dynamic Movieclip Slideshow?
I am looking for a way to create a dynamic drag and drop slideshow builder. I am proficient in Flash but not much of a programmer so heavy actionscript is a bit out of my league although I am understanding enough to modify.
Scenario:
The SWF will contain six placeholders (a timeline) and six drag and drop images representing the separate movie clips. You would drag each image onto a placeholder of your choosing in whatever order you want. Then proceed to hit a play button.
This would trigger a slideshow to play each movie clip in the sequence specified. Now, depending on the order you put them in, a specific audio file would be played over each one with corresponding text being displayed as well. Each of the six images could have 6 different sound clips, the one that plays is dependent on the place holder it is placed on.
So, you would have 36 movies to call to in the whole thing. 6 possibilities for each placeholder.
Anyone point me in the right direction? Is this crazy difficult? Are my eyes bigger than my stomach!
FlashKit > Flash Help > Flash ActionScript
Posted on: 07-30-2008, 09:55 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
A Dynamic Movieclip Slideshow?
I am looking for a way to create a dynamic drag and drop slideshow builder.
I am proficient in Flash but not much of a programmer so heavy actionscript is a bit out of my league although I am understanding enough to modify.
Scenario:
The SWF will contain six placeholders (a timeline) and six drag and drop images representing the separate movie clips.
You would drag each image onto a placeholder of your choosing in whatever order you want. Then proceed to hit a play button.
This would trigger a slideshow to play each movie clip in the sequence specified. Now, depending on the order you put them in, a specific
audio file would be played over each one with corresponding text being displayed as well. Each of the six images could have 6 different sound clips, the one that plays is dependent on the place holder it is placed on.
So, you would have 36 movies to call to in the whole thing. 6 possibilities for each placeholder.
Anyone point me in the right direction? Is this crazy difficult? Are my eyes bigger than my stomach!
MovieClip Slideshow+XML W Dynamic Text
http://i61.photobucket.com/albums/h7...deShowinMC.jpg
Anyhelp anyone? This is the closest thread I came to achiving this..
http://www.gotoandlearn.com/forum/vi...asc&highlight=
but no fla to see visuals while creating in the process..
any help?
[MX04] Duplicate Dynamic Movieclip Into Another Dynamic Movieclip...doesn't Work?
I've got a problem when I try to copy some movieclips into other movie clips.
With some code I loop trough a XML file and create a dynamic movieclip mcItemI.
Within the loop to create this mcItemI is another loop that duplicates mcSubItemK into mcItemI.
The problem is, that this isn't working right.
Duplicating mcItemI works fine, but when I duplicate mcSubItemK, I see that they are duplicated, because the appear somewhere on the screen.
I want to set the properties of this mcSubItemK but it doesnt work...
this is the code i use:
Code:
for (I=0; I<varTotalItems; I++) {
mcItemX.duplicateMovieClip("mcItem"+I, ItemDepth+100);
_root["mcItem"+I]._y = ItemPosY;
//Hoog de volgende positie en depth op
ItemPosY += 21;
ItemDepth += 1;
if (varSubItemAantal > 0){
SubItemY = ItemPosY + 9;
SubItemX = 3;
varSubItemParent = _root["mcItem"+I]._name;
for (K=0; K < varSubItemAantal; K++){
mcSubItemX.duplicateMovieClip(_root["mcItem"+I]["mcSubItem"+I+"_"+K], ItemDepth);
_root["mcSubItem"+I+"_"+K]._y = SubItemY;
_root["mcSubItem"+I+"_"+K]._x = SubItemX;
ItemDepth += 1;
SubItemY += 20;
varSubItemParent = _root["mcSubItem"+I+"_"+K]._name;
}
}
}
}
}
MOVIECLIP SLIDESHOW
Hi,
I am trying to create a slideshow that has a 'next' and 'previous' button, which lets you see the next or previous movieclip when you click one of the buttons. I have done the 'next' button but cannot do the 'previous' button, please can someone help!! Also, I would like the next button to disappear when you are at the last image, and the 'previous button' to disappear when you are on the first image. I have attached the code I have created so far.
Thanks alot!!
Attach Code
//index the images
var aImages:Array = new Array(mcGreenfield, mcMillstock, mcSplash, mc1estateagency, mcCarlton, mcPrestige);
var nCurrentIndex:Number = 0;
//tell flash how it can call fadeImage function on an interval
var nInterval:Number;
//next button
mcNext.onRelease = function():Void {
clearInterval (nInterval);
//call fadeImage function on an interval
nInterval = setInterval(fadeImage, 50, aImages[nCurrentIndex]);
};
//reset button
mcReset.onRelease = function():Void {
for (var i:Number = 0; i < aImages.length; i++ ) {
aImages[i]._alpha = 100;
}
//when reset,show first image
nCurrentIndex = 0;
};
function fadeImage(mcImage:MovieClip):Void {
//decrease the alpha of the image
mcImage._alpha -= 10;
//check if alpha is 0, then clear interval and show next image
if (mcImage._alpha <=0){
clearInterval (nInterval);
nCurrentIndex++;
}
updateAfterEvent();
}
Movieclip Slideshow Problem
Hi guys....
I have a flash file that loads another flash file that is an automatic slideshow.
In the slideshow file I have placed all my images in a movieclip and placed some script on the movieclip to make it pause on each image for a certain amount of time.... script:
onClipEvent (load)
{
_root.myInterval = 0;
}
onClipEvent (enterFrame)
{
_root.myInterval++;
if (_root.myInterval > 300) {
_root["myClip"].play();
_root.myInterval = 0;
}
}
When I run my holder swf, it pauses on the image but doesnt carry on to the next image, it just stops...
Help.
pdue
Slideshow Movieclip Problem
Hello everyone!
I'm trying to make a slideshow but I'm having problems with movieclips in the main film...
If say I have 40 frames in my film and I place a movieclip in frame 20, the main film has to stop at frame 20, play the movieclip and then automatically go play frame 21 and onwards in the main movie...-I figured to put a stop action on frame 20 (in a separate actions layer) but how do I make the movie play the clip and go back and play the rest of the main movie??....-do I need an actionscript or a behaviour?...-I don't want it to be controlled by buttons....-yes, U guessed it; I'm such a beginner at Flash, so I'm adressing all U Flash heroes out there for help!
PS: laughing at these simple issues is allowed!
/beginnersluck...-yeah right!
Kirupa Slideshow With Second Movieclip
Hi all,
I have been practicing on the Kirupa Slideshow. I am currently trying to add a second movieclip so two images show at once.
I copied the original mc, renamed it to Picture2, created a new XML node <image2>, and then generally duplicated the code for the Picture mc. As a test, I renamed the new mc with the original mc name and it appears to have worked, so I guess I am missing something somewhere........
I have attached the fla if someone with a little more skill than I could have a quick look at it to see where I have gone wrong. That would be nice.
thank you
suede
Slideshow With Movieclip Transition
i'm trying to modify the xml slideshow code. i've done some searching, but haven't really found an answer for what i'm looking for.
instead of adjusting the alpha property for a fade out transition, i'm trying to use a movieclip to create a flashing transition between photos. i'm basically trying to achieve an effect similar to the one on the photo slideshow in the header of this page. i tried to use attachMovie, but i couldn't get that to work the way i wanted it to. i've got this effect working right now by just setting movieclip.play(); in the nextImage function, but is there a better way to do it? i'm suspecting that this is possibly eating up memory, so if there is a more efficient way to do this, or if i'm doing it wrong, i was wondering if anybody could point me in the right direction.
here is my code:
Code:
var delay:Number = 4500;
//flashmc.stop();
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].attributes.url;
}
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();
}
};*/
var p:Number = 0;
//var p:Number = Math.floor(Math.random()*total);
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);
picture_num();
slideshow();
flashmc.play();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
//picture._alpha = 0;
picture.loadMovie(image[0], 1);
picture_num();
slideshow();
flashmc.play();
//attachMovie("flashmc", "picture", 1);
}
}
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();
}
}
}
Movieclip In XML Slideshow Question
Hello,
This question is a followup to another question of mine which was answered a couple weeks ago...
I have an XML slideshow that is self-playing, but can skip from slide to slide with a previous button, a next button, and 5 individually numbered movieclip buttons that represent each slide in the gallery. I would like the movieclip buttons to change state when their particular slide is active. For instance, if the user is on slide 2, I'd like the movieclip for slide 2 to be highlighted (I've created each of the movieclip buttons to have only two frames, one the 'on' state and the other an 'off' state. No tweening is necessary.)
How do I go about doing this?
Below is my actionscript (ql1,ql2,etc. are my movieclip button instances)
Code:
var x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();
var captions:Array = new Array();
var whatIsCurrent:Number;
x.onLoad = function() {
var photos:Array = this.firstChild.childNodes;
for (i=0; i<photos.length; i++) {
urls.push(photos[i].attributes.url);
captions.push(photos[i].firstChild);
}
holder.loadMovie(urls[0]);
caption.htmlText = captions[0];
whatIsCurrent = 0;
};
x.load("articles.xml");
previous.onRelease = function() {
if (whatIsCurrent>0) {
whatIsCurrent--;
holder.loadMovie(urls[whatIsCurrent]);
caption.htmlText = captions[whatIsCurrent];
} else {
whatIsCurrent = 4;
holder.loadMovie(urls[whatIsCurrent]);
caption.htmlText = captions[whatIsCurrent];
}
};
next.onRelease = function() {
if (whatIsCurrent<urls.length-1) {
whatIsCurrent++;
holder.loadMovie(urls[whatIsCurrent]);
caption.htmlText = captions[whatIsCurrent];
} else {
whatIsCurrent = 0;
holder.loadMovie(urls[whatIsCurrent]);
caption.htmlText = captions[whatIsCurrent];
}
};
ql1.onRelease = function() {
clearInterval(myInt);
whatIsCurrent = 0;
holder.loadMovie(urls[whatIsCurrent]);
caption.htmlText = captions[whatIsCurrent];
autoAdvance = true;
myInt = setInterval(nextSlide, 3000);
};
ql2.onRelease = function() {
clearInterval(myInt);
whatIsCurrent = 1;
holder.loadMovie(urls[whatIsCurrent]);
caption.htmlText = captions[whatIsCurrent];
autoAdvance = true;
myInt = setInterval(nextSlide, 3000);
};
ql3.onRelease = function() {
clearInterval(myInt);
whatIsCurrent = 2;
holder.loadMovie(urls[whatIsCurrent]);
caption.htmlText = captions[whatIsCurrent];
autoAdvance = true;
myInt = setInterval(nextSlide, 3000);
};
ql4.onRelease = function() {
clearInterval(myInt);
whatIsCurrent = 3;
holder.loadMovie(urls[whatIsCurrent]);
caption.htmlText = captions[whatIsCurrent];
autoAdvance = true;
myInt = setInterval(nextSlide, 3000);
};
ql5.onRelease = function() {
clearInterval(myInt);
whatIsCurrent = 4;
holder.loadMovie(urls[whatIsCurrent]);
caption.htmlText = captions[whatIsCurrent];
autoAdvance = true;
myInt = setInterval(nextSlide, 3000);
};
// For playing and pausing and the like
var autoAdvance:Boolean = true;
var myInt:Number = setInterval(nextSlide, 3000);
function nextSlide() {
if (whatIsCurrent<urls.length-1) {
whatIsCurrent++;
holder.loadMovie(urls[whatIsCurrent]);
caption.htmlText = captions[whatIsCurrent];
} else {
whatIsCurrent = 0;
holder.loadMovie(urls[whatIsCurrent]);
caption.htmlText = captions[whatIsCurrent];
}
};
playPauseBtn.onRelease = function() {
clearInterval(myInt);
if (autoAdvance) {
autoAdvance = false;
}else {
autoAdvance = true;
myInt = setInterval(nextSlide, 3000);
}
}
Thank you for your help.
SWF/movieclip Random Timed Slideshow
Basically I need help creating a slideshow that loads .swf or movieclip files, randomly and for a small period of time (i.e. 10-15 seconds) then changes. Also be able to have back and forward buttons. You can e-mail me at nabilkazerouni@yahoo.com
Slideshow Sequence Problem When Loading More That 1 Movieclip
hello chaps, can someone help with this problem, I've tried for 2 days but can not find any mistakes.
Scenario:
I have my main animation site.swf which loads the menu.swf The menu.swf loads a different slideshow (thanks Kirupa) for each button pressed (currently I only have the 'home page' and 'the hotel - location' button working) using
Code:
on (release) {
if (_global.current_page != "home"){
_root.holder.loadMovie("slideshow1.swf");
trace("the movie should have loaded");
_global.current_page="home";
}
}
for the homepage button and
Code:
on (release) {
if (_global.current_page != "location"){
_root.holder.loadMovie("slideshow2e.swf");
trace("the movie should have loaded");
_global.current_page="location";
}
}
for the hotel-location button.
It all looks fine, I'm pleased with the direction i'm going with (considering this is my first venture into doing a full flash site). take a look at http://www.webdesco.com/hwtb/site.html
Problem:
if you click on home page, then click on 'the hotel - location', then back onto home page and then back onto 'the hotel - location', and do so again several more times the slideshow skips some of the images and does not fade some of them in, in general it gets completely screwed up!!!! The same thing happens in both IE6 and firefox (both have flash9 plugins)
Solution:
Well thats where you guys come into play, coz i'm clueless!!!!! (thanks ;-))
the whole site is included in a zip file too big to attach to this post so it can be found at http://www.webdesco.com/hwtb/site.zip , if you play the site movie through flash you will see the traces of the files being loaded and you should see the files being skipped!!
Thanks alot for reading this, thanks more if you can help, I'll be your sex slave or whatever if you can solve this!!!!(only kidding about the sex slave thing )
cheers
Philip
Problem Linking Thumbnail Buttons To Photo Slideshow Movieclip
I have a series of thumbnail buttons in a vertical strip that slides up and down when you roll over it. when each button is clicked i want it to play a movie clip that shows a larger version of the image. i've tried everything but it's not working.
there is an auto slideshow that is running all the time until a thumbnail is clicked and then it will show the related image in the space where the slideshow was originally.
how do i get the buttoins withtin the picturestrip mc to gotoAndPlay the 1photo1 mc?
please help!
i would attach the file but it's too big.
Dynamic Slideshow
I'm trying to make a template for slideshow presentations, where the text and images are dynamically loaded each time the forward button is pressed until such time when the image is undefined (the end of presentation) were the counter (amount) is reset to 1.
Quote:
amount=1;
loadSlideImage = function(){
_root.detailedText="";
slide="";
//Concatanation of filenames
slide="slide"+amount+".jpg";
details="slide"+amount+".txt";
//Loading image and description
loadMovie(slide, "Importer");
loadVariablesNum(details, detailedText);
}
//Initial Image Load
loadSlideImage();
//Forward button actions
but_Forward.onPress= function(){
trace(amount);
amount++;
loadSlideImage();
//Checks to see if image does exist and if it doesn't loads another
if(slide==NaN) {
amount=1;
}
}
stop();
Dynamic Slideshow
I'm creating a multimedia "slideshow" for a Conference and was wondering if there was any way that I could get Flash 5 to call for the images from an images folder instead of having to place the images in the flash file.
Any help would be greatly appreciated...
Thanks in advance,
Kosmo
Dynamic Slideshow
I am trying to create a slideshow in which images stay on screen for 7/8 seconds and then fade to the next image...and so on. Ideally, this slideshow would be contained within a movie clip and Images could be added / removed fairly easily.
I also want each image to have an invisible button over it - is this possible.
If anyone could help, I'd be really grateful.
Thanks
Dynamic Slideshow
I'm looking for some assistance in building a dynamic slideshow published for Flash Player 5. I'd like to use the file as a template and be able to switch the photos out to make multiple slideshows dynamically. Being that I have to publish to Flash 5 I can't use the loadmovie .jpg feature from 6. So, I'm trying to decide if it would be best to make each .jpg into a seperate .swf or to include them all in one file. I'd also like to dynamically build a button for each image so the user can jump around the photos in the slideshow. Here is a great example of what I'd like to do:
http://www.washingtonpost.com/wp-srv...03-06-06-trash
A link to an .fla or tutorial would be great if anyone could help me out. Otherwise any help is greatly appreciated, thanks!
Dynamic Slideshow
hello,
this may have been asked at one point. BUT
i'm futzing with the sample fla "load_images.fla" that comes with flash mx. works great, but can i have images load "centered" in the movie clip instead of the top left corner? I tried using free transform to move the center point but to no avail.
also if anyone is familiar with how to automate this example fla so that it automatically goes through the images and has a stop/start function you'd make my day
action script from the first frame of said fla
// initialize variables and properties
square._alpha = 0;
whichPic = 1;
// initiate change to new image when buttons are clicked
next.onPress = function() {
if (whichPic<50 && !fadeIn && !fadeOut) {
fadeOut = true;
whichpic++;
input = whichPic;
}
};
back.onPress = function() {
if (whichPic>1 && !fadeIn && !fadeOut) {
fadeOut = true;
whichpic--;
input = whichPic;
}
};
_root.onEnterFrame = function() {
// when a new Photo is selected, fade out, load new image, and fade in
if (square._alpha>10 && fadeOut) {
square._alpha -= 10;
}
if (square._alpha<10) {
loadMovie("images/IMG_"+whichPic+".jpg", "square");
fadeOut = false;
fadeIn = true;
}
if (square._alpha<100 && fadeIn && !fadeOut) {
square._alpha += 10;
} else {
fadeIn = false;
}
// initiate change to new image when Enter key is pressed
if (Key.isDown(Key.ENTER)) {
fadeOut = true;
whichpic = input;
}
};
// if a number is entered in the input field but Enter is not pressed, change
// back to current Photo number when clicking anywhere else
inputField.onKillFocus = function() {
input = whichPic;
};
Dynamic Slideshow :)
I have a dynamic slideshow (portfolio.swf) that loads external jpg file fine.
I load the portfolio.swf from main.swf and the image viewer does not work, the first image display but it doesn't slide in like it should and I can't navigate to the other images.
I followed the excellent tutorial at the following address: http://www.layoutgalaxy.com/html/htm...er43-page1.htm
I have tried changing the code in the slideshow swf from _root to this and also to _parent
Can anyone guide me on where I might be going wrong, I hope I have explained myself well enough and thanks for any help
p.s. THE SITE CONTAINS THE .FLA FILE SO YOU CAN QUICKLY TEST.
DYnamic Slideshow
I have been trying to get the answer to this everywhere but no one has been able to help me. If you go to http://www.mlb.com, the big flash area (top left below nav bar) with like 6 news stories there is what I would like to have on my site. I am not good at flash, just because I am new to it mostly. BUt I I do follow tutorials and directions well. Can somebody point me to something that would help me do this? I am using ASP and Access as my database but would be willing to switch over to php/MySQL or something of that nature if I needed to.
If you look at any of the baseball team individual sites, there is a similar news slideshow except, there are numbers to click on instead of the images at the bottom.
Can ANYONE help me PLEEEEEEEEEEEEEEASE!!
Much appreciated.
Dynamic Slideshow
i have a slideshow file that i've been working with for about a week. basically, php will pull a list of images from the database and flash calls an external file with the number of images to show, and the location of each one.
it then loops through the movie, with a different image fading in and out each time.
i got it working perfectly from the flash preview area, but when i put it up online, the pictures do not show up, it's only blank. can anyone help me out?
if you need more details, please let me know.
Dynamic Slideshow
Hi,
I need to make dynamic Slideshow in flash like this
http://www.kodakgallery.com/I.jsp?c=...v&x=0&y=v5c1o8
Image will come from database.
Play button should be there
Next Forword button
and thumb nail of the image should be there.
I have tried to make this but can't. Could anyone tell me how to make this or tell the link to the tutorial or fla.
Thanks Advance!
Dynamic Slideshow
i've been searching through the forums trying to find help on a slideshow i'm working on. i've gotten close, but am still having trouble executing it. basically, i would like the pictures in the library to load into the movie. once loaded they should fade in, hold for a few seconds, then fade out and proceed to the next picture. also, now there's a problem where when the picture loads it is centered on the stage as opposed to being lined up within a frame on the stage.
[F8] Dynamic Slideshow
Hell once again fellow flashers,
I've seen a lot of tutorials for this but none of them is what i'm looking for.
im looking for an automatic dynamic slideshow that i can load as many images as i want, allow me to set the time before switching to another image, and there only 3 buttons play, back, and forward. I would also like the slideshow to start up by itself. How would I go along doing this?
[F8] Dynamic Slideshow
Hello,
i want to make a dynamic slideshow similar to the one on aol.com. It just has pause rewind and forward. I'm also looking for it to start automatically. I know I have to have a xml file for it but I still need some help. I'm also looking for it to displays all the photos in the directory no matter the number. Does anyone have a tutorial to this?
Dynamic Slideshow
im looking to creake a slideshow - no buttons - which fade into each other (called via XML)
i have tried a few tuorials - but they see mto all be set to F8 and im stuck on MX.
only loading 4 images - names image01.jpg - image04.jpg
any help/tutorials/links are appreciated
txsRR
(MX) Dynamic Slideshow HELP?
im looking to creake a slideshow - no buttons - which fade into each other (called via XML)
i have tried a few tuorials - but they see mto all be set to F8 and im stuck on MX.
only loading 4 images - names image01.jpg - image04.jpg
any help/tutorials/links are appreciated
txsRR
Dynamic Value In Slideshow
Hi,
I have the following code (one movie, two scenes)
SCENE 1:
on (release) {
gotoAndPlay("Scene 2", 1);
chosen = "1";
}
SCENE 2:
square._alpha=0;
alpha=0
mypic=1; // mypic - variable used to count the images in the show
_root.onEnterFrame = function()
{
if (square._alpha <10)
{
loadMovie("images/image"+mypic+".jpg", "square")fadeOut=false;
fadeIn=true;
}
if (square._alpha > 10 && fadeOut)
{
square._alpha -= 10;
}
if (square._alpha < 100 && fadeIn && !fadeOut) {
square._alpha += 10;
}
else
{
fadeIn=false;
}
}
next.onPress = function()
{
if (mypic < 17 && !fadeIn && !fadeOut)
{
fadeOut=true;
mypic++;
}
if (mypic >= 17)
{
mypic=1;
}
}
back.onPress = function()
{
if (mypic > 1 && !fadeIn && !fadeOut)
{
fadeOut = true;
mypic--;
}
if (mypic == 1 && !fadeIn && !fadeOut)
{
fadeOut=true;
mypic=16;
}
}
I want the user to choose a particular image thumbnail in SCENE 1 passing a variable into the hard coded value for 'mypic' in SCENE 2. Therefore the slideshow will play from desired starting point rather than the beginning.
Am I approaching this in the correct way? Would two movies and LocalConnection be better? I thought retrieving a value from one scene and assigning it to another variable in another scene would be easy?
Many thanks in advance on this!
Dynamic Slideshow
I need some good tutorials in loading and manipulation images into flash dynamicall..please show me if theres any good tutes on this
Thanks
Dynamic Slideshow
Hi!
I would like to create a slideshow in flash that will automaticly load images from specified folder. Is it possible that if I add more photos into the folder, I don't have to change the source code?
So what I wont is that the flash movie would automaticly recognize *.jpg images in folder.
Can anyone help me and tell me how to do it.
Thanx!
Blaz
Dynamic Slideshow
I have been trying to get the answer to this everywhere but no one has been able to help me. If you go to http://www.mlb.com, the big flash area (top left below nav bar) with like 6 news stories there is what I would like to have on my site. I am not good at flash, just because I am new to it mostly. BUt I I do follow tutorials and directions well. Can somebody point me to something that would help me do this? I am using ASP and Access as my database but would be willing to switch over to php/MySQL or something of that nature if I needed to.
If you look at any of the baseball team individual sites, there is a similar news slideshow except, there are numbers to click on instead of the images at the bottom.
Can ANYONE help me PLEEEEEEEEEEEEEEASE!!
Much appreciated.
Dynamic Slideshow
Hi!!
I´ve learned how to do a dynamic slidshow by watching: http://www.learnflash.com/wp/2007/basic-animated-slideshow/ and http://www.learnflash.com/wp/2007/buttons-for-dynamic-slideshows/ but there are still one thing I miss in my slideshow and that´s a "caption" do any one know how to do a caption and what to write in the Actionscript?
PLEASE I NEED HELP!! Micke
Help With Dynamic Slideshow
I am a Flash novice but I've been trying my hand at building a dynamic slideshow for a friend's portfolio site. You can preview the porfolio page here.
The arrows (prev/next) advance the images pulling from a directory using actionscript. I have attached the actionscript. It works quite nicely, but my question relates to the small thumbnails along the right side of the page.
My question:
When a visitor clicks on one of the thumbnails, how do I get the thumbnails to load the corresponding image into the movie clip (or stage) on the left? Currently, all of the thumbnails are linked to the images using GET URL.
I haven't loaded all of the thumbnails yet as I wanted to see if anyone had any ideas before I start building the rest of the page.
Thanks!
Jason
Attach Code
// Code written by sbeener (suprabeener)
//
// i wrote this code, but you can use and abuse it however you like.
// the methods are defined in the order which they occur to make it
// easier to understand.
//
this.pathToPics = "pics/";
// fill this array with your pics
this.pArray = ["IMG_5643small.jpg", "IMG_5645small.jpg", "IMG_5660small.jpg", "IMG_5680small.jpg", "IMG_5722small.jpg", "IMG_5728small.jpg", "IMG_6259small.jpg", "IMG_6264small.jpg", "IMG_6269small.jpg", "IMG_6272small.jpg", "IMG_6273small.jpg", "IMG_6274small.jpg", "IMG_6386small.jpg", "IMG_6749small.jpg", "IMG_6790small.jpg", "IMG_6834small.jpg", "IMG_6838small.jpg", "IMG_6850small.jpg", "IMG_6873small.jpg", "IMG_6996small.jpg", "IMG_7306small.jpg", "IMG_7339small.jpg", "IMG_7460small.jpg", "IMG_7516small.jpg", "IMG_7522small.jpg", "IMG_7525small.jpg", "IMG_7547small.jpg", "IMG_7574small.jpg", "IMG_7575small.jpg"];
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 animation
loadMovie(this.pathToPics+this.pArray[0], _root.photo);
MovieClip.prototype.changePhoto = function(d) {
// make sure pIndex falls within pArray.length
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() {
// specify the movieclip to load images into
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;
}
};
// Actions -----------------------------------------
// these aren't necessary, just an example implementation
this.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
this.changePhoto(-1);
} else if (Key.getCode() == Key.RIGHT) {
this.changePhoto(1);
}
};
Key.addListener(this);
Dynamic Slideshow
I am new to flash I will tell you that up front. What I am trying to do is make a dynamically created slideshow. I have a database with the filenames located in a field. Using PHP I am able to query the DB and get the filenames. Now comes the part where I am having trouble. I will try to explain this as best as I can.
I am using Flash MX.
On my stage I have a movie clip with the name slideshow. The following code are the Actions for slideshow on the stage.
Code:
onClipEvent (load) {
stop();
loadVariables("slideshow.php", this);
SlideNum = 0;
play();
}
Okay from what I understand this will allow me to get variables from slideshow.php. In the movie clip slideshow I have another movie clip with the name animatedSlide. The following is the actionscript for the instace of animator (Instance of animatedSlide). I would like to use the variable or array name filename and call each instance of the array using SlideNum which is basically a counter.
Code:
animator.createEmptyMovieClip("slide", 0);
loadMovie("pictures/"+filename[SlideNum], animator.slide);
if (SlideNum == maxImages-1) {
SlideNum = 0;
} else {
SlideNum++;
}
The slideshow.php is as follows minus the correct structure of how to get my array of filenames to flash to use.
Code:
include("db.php");// CONNECT TO DB
db_connect($db_hostname, $db_username, $db_password,$db_database);
$select = mysql_query("SELECT * FROM pictures WHERE pic_active='1'");
$max = mysql_num_rows($select);
$i = 0;
while($row = mysql_fetch_array($select))
{
$filename[$i] = $row['pic_filename'];
$i++;
}
## SET FLASH VARIABLES UP HERE ##
echo "maxImages=$max&cap=capped";
If anybody can please help I would be more than happy to show screenshots of my flash file or allow anybody who thinks they can help I will give you the link to test it out.
TIA,
Mitt
Dynamic Slideshow
HI
I need to do a slideshow where user can select the pictures that will be added.i'll be using a text file for the user to do the selecting.
can anyone help me on a basic image uploading code according to a text file. there's always 8 images in the slideshow.if anyone has any code or tute that i can study please..
Thanks
Nameez
Dynamic Slideshow
I am new to flash I will tell you that up front. What I am trying to do is make a dynamically created slideshow. I have a database with the filenames located in a field. Using PHP I am able to query the DB and get the filenames. Now comes the part where I am having trouble. I will try to explain this as best as I can.
I am using Flash MX.
On my stage I have a movie clip with the name slideshow. The following code are the Actions for slideshow on the stage.
Code:
onClipEvent (load) {
stop();
loadVariables("slideshow.php", this);
SlideNum = 0;
play();
}
Okay from what I understand this will allow me to get variables from slideshow.php. In the movie clip slideshow I have another movie clip with the name animatedSlide. The following is the actionscript for the instace of animator (Instance of animatedSlide). I would like to use the variable or array name filename and call each instance of the array using SlideNum which is basically a counter.
Code:
animator.createEmptyMovieClip("slide", 0);
loadMovie("pictures/"+filename[SlideNum], animator.slide);
if (SlideNum == maxImages-1) {
SlideNum = 0;
} else {
SlideNum++;
}
The slideshow.php is as follows minus the correct structure of how to get my array of filenames to flash to use.
Code:
include("db.php");// CONNECT TO DB
db_connect($db_hostname, $db_username, $db_password,$db_database);
$select = mysql_query("SELECT * FROM pictures WHERE pic_active='1'");
$max = mysql_num_rows($select);
$i = 0;
while($row = mysql_fetch_array($select))
{
$filename[$i] = $row['pic_filename'];
$i++;
}
## SET FLASH VARIABLES UP HERE ##
echo "maxImages=$max&cap=capped";
If anybody can please help I would be more than happy to show screenshots of my flash file or allow anybody who thinks they can help I will give you the link to test it out.
TIA,
Mitt
Dynamic Slideshow
Wondering if anybody out there knows of any good tutorials or components for slideshows which dynamically load jpg's. Thanks in advance!
_
Dynamic Slideshow
Hi Everybody,
I need to make dynamic Slideshow in flash like this
http://www.kodakgallery.com/I.jsp?c...wv&x=0&y=v5c1o8
Image will come from database.
Play button should be there
Next, back button
and thumbnail of the image should be there.
I have tried to make this but can't . Could anyone tell me how to make this or tell the link to the tutorial or fla.
Thanks in Advance!
Dynamic Slideshow Hassles
Hi there
I have 34 jpegs that i want to use in a slideshow to loop continuously until not wanted. I want to load them in to an array and using a for loop slide one on, pause for 5 seconds then slide it off and have the next one coming on.
My problem is this: I believe I am loading them into the array correctly and when I trace an array element the correct photo name appears but I can't get it to appear on the stage. At the moment I'm just trying to get the photo to show on screen.Here is my code, I'm using MX:
numPhotos=3;
photoMCList = new Array();
function makePhotoMCs (numPhotos) {
for (var i = 0; i < numPhotos; i++) {
// Put the clip on stage
this.attachMovie("photo", "photo" + i, i);
// Store a reference to this photoMC
var thisPhoto = this["photo" + i];
//give the instance a name
thisPhoto._name = "photo"+i;
// Add this photo to the array
thisPhoto.loadMovie("photo"+i+".jpg");
_root.photoMCList[i] = thisPhoto;
}
}
makePhotosMCs(numPhotos);
//blankMC has been manually created and is sitting on the stage
blankMC=photoMCList[0];
//these 3 traces give correct results
trace(blankMC._name);
trace(photoMCList[0]);
trace(photoMCList[0]._name);
stop();
Many thanks
Simple Dynamic Slideshow HELP
I'd need to create a simple but dynamic slideshow on my website. I need it to be able to easily have images interchanged at different times. For instance: when the main page is loaded a set of 9 images should loop in the mc. Then after a menu button had been pressed and a new menu is activated I need to change the images. BTW I have basically no scripting experience and I'm on a deadline and it's crunchtime. Thanks in advance.
--Matt
Dynamic Flash Slideshow
Hi -
I found an example of a dynamic flash slideshow here
and was wondering:
1. Is there a tutorial on something like this - where the screensize conforms to the picture size.
2. can i make this a movie, and then have it load on top of the main page movie?
Apologize in advance for not using all proper terms - and any advice or help is appreciated.
Thanks!
Creating A Dynamic Slideshow ?
Hi I know how to load jpgs dynamically, All I want is to use loaded jpgs as a photo slideshow, using only two buttons (Next and Previous) So what code goes for those buttons ?
[F8] Dynamic Slideshow Problem
Hey All...thanks for helping me out!!
I posted this in the ActionScipt forum, but no luck so far.
I am trying to create a simple photo slide show dynamically using Flash Remoting with a ColdFusion Component.
Basically, I am reading a folder with 5 images in it and passing it to an .swf. I am getting an empty movie. The CFC component is called Photo_Gallery.cfc and it is located in a folder called Photo_Gallery. My images are located in a folder called Gallery1 in the Photo_Gallery folder...and I am reading them by <cfdirectory... The function in the .cfc is called slideProvider.
I will attach the actionscript I have on the first frame of the movie (It is the only thing I have in the movie):
import mx.remoting.Service;
var CFCService:Service = new Service(
"http://66.193.188.42/flashservices/gateway",
null,
"Photo_Gallery.Photo_Gallery",
null,
null);
CFCService.slideProvider();
function slideProvider_Result(result) {
var imgURL = "gallery1/"+result.items[0].name;
imageHolder.loadMovie(imgURL);
thisImage = setInterval(showImage, 7000, i=1);
function showImage() {
imageHolder.loadMovie("gallery1/"+result.items[i].name);
if (i<result.items.length-1) {
i++;
}
else {
i = 0;
}
}
}
// create the MC to hold the images
_root.createEmptyMovieClip("imageHolder", 1);
// offcenter it to be special
imageHolder._x = imageHolder._y=20;
The IP address is the IP of my server where all of the images and the .swf is located. Does any know what I need to do to make this work...am I missing something in the actionscript???
I really appreciate your help. Thanks in advance.
[F8] Dynamic Automatic Slideshow
Dear Flashkitters
I have a problem that has left me scratching my head. I'd like to set up an automatic slideshow that loads images from a folder on a server.
I'd like to load one image and display it by fading it in. When this one has loaded I'd like to load the next picture in the background and then when it has finished loading (or after 5 seconds - whichever is the longest) I'd like the first one to fade out to the new one. Then another image should load behind the second one, and so on. When it gets to the end of the slideshow I need it to loop back to the beginning, so the images should (I guess) be stored in memory.
I have a folder of 40 images (sometimes more), and this technique will prevent a large initial download time.
Thanks in advance to anyone that can help.
Dynamic Flash Slideshow
Hello to all
I tried following a tutorial on here about the dynamic slideshow, but (the author did 3 editions.)I want to do the same but in a variation. like the one on http://www.aol.com for the news and if possible I want to just be able to ad or remove as many images as I want without editing the swf. I know xml has to be involved. How would I go along doing that?
Dynamic Photo Slideshow With XML - Please Help
I need a dynamic slideshow with a basic transition like fade in/ fade out which should use an XML to call the 4-5 images in a folder.
Please post tutorial url's or sample slideshows and help.
Thanks in advance.
How To Change This Slideshow Into A Dynamic One?
I made this slideshow for a website, now the client wants it to be dynamic - he wants to upload photos and change the xml file, the slideshow should reflect the change and additions made to the xml file. I have no clue on how to change this into a dynamic slideshow, please help me on this.
Here is the link to the fla - Download FLA - 6Meg
Thanks a million in advance.
Help In Dynamic Flash Slideshow
Hi Everyone,
I need help in developing a dynamic flash slideshow like the site http://jjimoveis.net/ where the images and its name and price is loading from the database..
Can anyone help me in this or tell me a tutorial where such an example is mentioned..
Thanks
|