ActionScript 3.0 :: Add & Remove Child For Photo Slideshow?
Jan 27, 2009
I need to create a photo slideshow which runs automatically (I don't want any "back" or "next" buttons - there is to be no user interface), with the photos fading in and out, one after the other, and music in the background.
I have external .jpg files that I need to have load, one after the other, into their own movie clips (I have 5 different movie clips which I would like to alternate between my .jpgs) and stay on the stage for a set amount of time (3 seconds for some, 5 seconds for some, etc.).
I figured out how to get 1 image to load into a movie clip with the below code:
var image:Loader = new Loader ();
image.load( new URLRequest ("pic1.jpg"));
blankMC.addChild (image);
However I don't know the code to force this movie clip to only play for a set amount of time, and, unload from the stage, and then load a new movieclip.
if not, is there a way for me to accomplish this without using XML (which I have no clue how to do . . .)
i have a question about text in a slideshow. i know how to make a basic photo slideshow with external images. but now what i want to do is add 4-5 paragraphs of text next to each photo (with possible scrolling). the text will be different on each photo.
i'm new to AS3 and i was wondering what is the best way to remove a child at a point. i tried Holder.removeChild(Holder.getObjectsUnderPoint(new Point(exampleX, exampleY))[0]); however that returned ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
I have an issue where removechild won't infact remove a child. I think its something to do with my dropTarget.parent issues. The concept of the code is that you drag a source onto a destination. When you drop the source onto the destination you will get a text field that says "Hello" or "Goodbye". The objective i want to achive is that once i drop a source onto the destination, removechild will remove any previouse textfields added. This is proving difficult.
Flash slideshow by getting it to preload the next photo (from a folder of numbered jpgs) when the current photo is done loading, but I can't quite get it worked out and I'm not sure what I'm missing... What I thought I might try is to have two movie clips to hold photos, one on the stage and one off the stage.
I would load the current photo into the movie clip on the stage(pictures.slides) and when that finishes I would load the next photo in the movie clip off the stage (pictures.preloadNextPhoto) so that it would already download the image and would load faster when the user clicks "Next". It doesn't work. I won't load the whole script in here, but this is the movieloader function with the meat of the functionality:
I coded a xml slideshow with the pictures fading in but I cant seem to find the right technique to hold a picture and fade in the next. I read up on swap depth but cant seem to implement it through the use of a xml file but I have seen exaples using an array.URL...
I want to be able to use the slideshow function when called from a button. I take it that this would be a simple case of calling the function onRelease or something similar... Also on a slightly different though smei related point, I am setting up a gallery using the XML gallery though am going to be using multiple gallery options so that once a user has chosen a gallery set it will load the appropriate XML file...
I coded a xml slideshow with the pictures fading in but I cant seem to find the right technique to hold a picture and fade in the next. I read up on swap depth but cant seem to implement it through the use of a xml file but I have seen exaples using an array.
I really like this automated slide show tutorial using xml. However, I'm looking for help on why when using a modem connection the file loads the first image and stalls (out of the box, no modifications to the file at this point). I refresh the screen and it starts over and loads the first image and then the second image and stalls again. This stall occurs for each subsequent image until all images are loaded. I did try adding a preloader function in the fla file ... I tired loading the images using a JavaScript array in the body of the html page.
I read all the optimization help file information and help on publishing settings. I tried various published settings with compression, with compression. Tried different fps settings etc. I'm using MX. Downloaded trial versions of MX 2004 and MX 2004 Professional and still not working, as I would like it to on dialups.I have a similar version that is dynamically loading images but is using text files to load the variables. I am very interesting in this one because is uses xml. I tried clipping out the xml code and used it in my other file and I get the same result.
On the main page will be a Slide show of 8 pictures. I would like a next and previous button on each side of the picture.Also I would like it, to where, when you click the picture, it would take you the the page the picture is at on my flash site.. So like page "Chris_Portfolio"
I've spend two days searching this forum, to find an example on how to makea XML image gallery "like the kirupa one" but with an adittional feature...with no success.I'm looking for a gallery setup that offers you an option to inlcude extra photos' per image..For example:image one can contain 1-5 extra pictures, which can be seen either viadynamicly attached numbers 12345above the picture or even bettera "play/pause project" button which will show the extra pictures of that same project...a kind of slideshow within a slidehow..with captions/fades ...the whole deal.
I'm trying to modify Kirupa's xml photo slideshow by adding an extra text field, which if I understand correctly gives each element 3 children (image+text1+text2) instead of 2 (image+text). Even though I've added the third child correctly in the xml, I can't seem to get it to work at all. Here is what I did with the actionscript:
delay = 10000; //----------------------- function loadXML(loaded) { if (loaded) {
[code]....
I've highlighted the parts I've added to the code provided by kirupa's tutorial. sub_text is the instance name I give to the new text field in Flash.
I downloaded the sample file of making slide photos, but I just can't make it run and load pictures automatically and loop itself continuously. How do I do it without have to hit next or previous? And all done with action scripting only without using keyframes? [URL]
Would it be possible to use the Kirupa tutorial on "Photo Slideshow Using XML and Flash" and incorporate a dynamic HTML link within the XML so the photos in the slideshow were clickable using Flash MX 2004?[code]
so I have a movieclip on the stage(lets call that selection movieclip) that once a button is clicked is going to open another movieclip(call this slideshow) I am trying to remove the selection movieclip when you launch the slideshow movieclip.
the problem is that when i click on first button the Movie Clip does load ok but when i click on second button the first movie cliip is visible, i have try everything i have read here but no luck, i want to learn how to remove first child and allow only the second child to show up, i am looking forward to add more buttons so the remove child should be for multiple buttons, i am learning and so far did purchase a online tutorial but did not help me with this situation,
I'm currently trying to beef up one of the websites I run, and make a better image slideshow for the gallery page. Currently... I have this page for my own website, with the lightbox effect installed correctly. The effect is very nice:When you click on an image, it loads it into focus on top of the page. This is also possible using flash.. using lightbox++. I hope one of you knows of this My question to you is... I want a page that loads the pictures via an xml file, and have the thumbs loaded, and each of those thumbs setup to load the full size version when you click on it.
I'm looking to create a slideshow that needs to automatically advance, with each slide having 2 pictures and a short text description, each which would be unique for each slide. The file name for the pictures and description are contained in this xml, currently my XML file has the tags in the format <pic1> location.jpg </pic1>, each grouped for the slide they both need to be on.
Making a photo slideshow to load as an external movie clip on my site when a button is pushed. Here is a link to the .swf file: [URL]. There is text that describes each set of 6 pictures. After the set of 6 pictures plays through the text is supposed to disappear and a new text appears to label the next set of 6 pictures. Problem is: the text doesn't disappear! I made all the text layers a symbol/movie clip. I animated each text to disappear at a certain point in the timeline but when I test the movie the texts just remain there and build up one after the other. When watching the movieclip, pay attention to the text in the lower left screen.
I'm using a version of XML Slideshow Photogallery that loads slideshow.swf (and other pages) into master.swf. It plays good the first time through and when I trace myInterval, I can see it increment 1,2,3 ... with each slide. When I go to another page and then come back to the slideshow - the myInterval will skip a couple or I get 2 values at the same time. This causes the slideshow to display every other image (or every 3, etc). I can see that the problem is from not clearing the myInterval variable properly. The clearInterval(myInterval); function seems to just clear the last instance created. Is there a way to clear all instances?
how to add a sort of timer for the slideshow...one that counts down from fx 6 seconds to 0 every time a new image in the slideshow appears. something with a variable and a text area...but how to make the count down follow the image delay...i really would like to know if this is possible.
I just got Flash CS4.i think it is supposed to have several categories of templates.I only have the advertising category. How can I get the standard Adobe CS4 sample templates, like the photo slideshow? I cannot find anyplace on the [url]... site for template downloads.
how i would created a photo album/ slideshow type of thing. Where an arrow button is clicked to go to the next or previous 'emotion' each section will have a different emotion. I thought about gotoandStop and then the frame but how would i do this when they are only clicking one button and it will be going to around 12 different sections :S