ActionScript 2.0 :: Create A Crossfading Slideshow From XML?
Jul 27, 2008
Does anyone have a tutorial that would show me how to create a crossfading slideshow from XML? Currently I have found one that worked but as you click around the website the slideshow jumps around in the pictures and does not work properly. Here is a link to the website that is currently up.
The end result is going to be a "photo-stack" with each image layered on top of one another, all cycling through the list of images. So container 1 would start of showing image 1, then image 2, and so on. Container 2 would start with image 2, then 3, and so on. One the container gets to it's final image, it loops back to the first image. I've duplicated all the necessary functions and duplicated all required variables with different names so there shouldn't be any overlap, however when I run my SWF, only one of the galleries loads. If I try and load the galleries as external SWF's, only one gallery appears.
Here is my actionscript code:
Code: var id, current; var k = 0, p = 0; var slide = 1;
I am trying to make a sound crossfading between the loops (an example would be: same as in a "Winamp" media player you toggle the Crossfading function in a Modern Skin and select a duration of it). Say I got a loop of 10 seconds, altho it is not perfect as its cut of the song without a proper editing tool. Any way I could accomplish it by using the ActionScript?
I have a huge memory handling headache in a project I am working on. This is basically what the program does. I have a main shell swf that loads a xml document. This xml document points to a interface swf and many content swfs. The interface swf has my container, buttons, and preloader. The content swfs holds images, audio, and other interactions.
My shell loads a content swf and adds it to a container movieclip with in the interface swf. When a new content swf is loaded, it needs to crossfade on to the old swf.Each content swf is set up as such: all of the content is in a movieclip that is exported on frame 1. There is also a large string of text that sits on frame one that is loaded into the interface swf.
1 . I can't figure out how to load / unload the swfs to set them up for garbage collection while still crossfading them when they load.
2 . When I built a test to see if the swfs would unload correctly, It would not unload any bitmap data within the swfs.
My current code is below. This works fine functionality wise but nothing is removed from the memory. I can't figure out how to add an unload script without breaking the crossfade.
Code: Select allvar slide:MovieClip=null; var isLoading:Boolean=false; //buildSlide is passed a content swfs url
I am trying to create a flash program that will create a slideshow on the fly. I have a collection of music and images that I want to put in the show. The program will pick a piece to play randomly and the next image to show is also picked randomly. However, the speed at which the images will be shown in the show is decided by the tempo/speed/mood of the music at that moment. In one piece of music there will faster and slower movement, and the slide will fade in sooner if the music is faster and vice versa. The show will keep running until the program quits.
I'm new to Flash and I need to learn how to do a slideshow with exactly the same features as can be found in this link: [URL]. Just like at the link above, it needs to play through the slides automatically once the page is loaded, each slide needs to link to a specific URL, and I need controls similar to the boxes at the bottom so the viewer can click on any specific slide they wish to view (I'd like to have numbers in the boxes though). The transitions don't have to slide across like this. If a fade is easier, that would be fine.
Actually, I thought I'd be able to do this fairly easily with Flash Catalyst, so I updated to Adobe CS5 Design Premium. I found that Flash Catalyst can be used to create a slide show like this, but unfortunately it won't play automatically when the page loads and the viewer has to manually click through the slides, which is not what I need. I could be wrong, but from what I've read, I need Flash Builder to add code so the slide show will play automatically if I create it in Flash Catalyst.
I want to create a slideshow of 5 images, with black fade effect in between. So from black to image to black to the next image and so on. Then it stops on the last image. I dont want any buttons or any interactions.
I have aboat 5000 picture and i want to create a slideshow , using only one keyframe(instead of using 5000 keyframe with go to next frame script for button) for displying the next picture, for example, only with pressing next button using actionscript.
I'm trying to create a slideshow in a gallery. I managed to make it work but only if you first click on the slideshow button and then you click on one of the thumbnails. I haven't been able to do just by clicking on the slideshow button. This is the code I used in summary:
Code: package galery { public class GaleriaFotos{ public function GaleriaFotos() {
I have my XML file with only some sentences I wish to create a slideshow from.
Something really simple: Sentence _______________ V V V Sentence (delay) V V V _______________ Sentence
I have loaded my xml like so: Code: function loadXML(loaded) { if (loaded) { xmlNode = this.firstChild; textim = []; total = xmlNode.childNodes.length; [Code] .....
I can access the titles using dynamic text fields but I don't know how to make it go sentence by sentence automatically (with the animation).
Previously I've done all the monkeywork by hand on the timeline, but now I need to make an automated slideshow for an image portfolio that collects pictures from an external folder (1.jpg, 2.jpg, 3.jpg, etc...) so I can just upload variants of the image without having to change the flash file each time.
I'm also hoping to include fading transitions and an easy way to change the amount of time each image is on screen.
I am trying to improve the quality of the slideshow displayed on this website[url]... My knowledge of flash is pretty limited. I know how to create the slideshow, I'm just not sure how to maximize the quality and keep the file small. The original was created as a .wmv and then converted to .flv. I have heard that creating the slideshow in flash using vector images is the way to get the best quality. So, my questions are:
1. How do I convert a jpeg to a vector image? Can I do this in photoshop?
2. How do I convert the .swf file to .flv without losing quality?
I am pretty new to flash but I am kind of getting the hang of things. I am trying to create a interactive slideshow in flash that will not end up on the web. These are three quick questions I currently have. Thanks for any help you can provide
1. Let's say I have an icon of a person in my flash file, how can I make it so that when my moves rolls over the person a thinking bubble appears and when it rolls off the bubble disappears?
2. If I have a small image of a page version of a .pdf file in my flash file, how can I make it so that when the little .pdf page icon is click the .pdf file is launched?
3. I understand how to create a square button over text and mess with its up/down/over/click settings, but I am wondering how I can do something like change the color of the text when it is clicked or when the mouse is over it? Right now I only know how to change the color of the square button.
I currently have a slideshow working with prev and next buttons, but would like to add numbered buttons for each slide at bottom of images, with a static number for the active slide that has a colored circle around that number.
I can create static number with colored circle in Photoshop and add that to a layer, but it's labor intensive to do that for all numbers.
Is there a better way to create the highlighted numbers for active slide?
For numbered buttons that link to non-active slides, I can create numbers in Photoshop and import images into Flash, then convert to symbols and assign actions for them, But that too is labor intensive to do for all the numbers.
Is there a better way to create numbered buttons for non-active slides?
I'd also like to have a hover function on the numbered buttons, that changes from plain image of number to number with colored circle like I want to use for active slide.
How do I assign a hover function to button symbol, that will load another image or symbol?
I would like to create a simple slideshow for my Web site that is populated with images from a database. All I want it to do is pull the 6 most recent photos using ColdFusion, fade from one image to the next and loop.
I'm trying to run this AS, so it appears on say 'Layer 11'. That way I can use it underneath other elements. Is this possible? I tried to phyiscally put it on 'Layer 11' but it always shows the slideshow on top of all the layers. I'm sure many of you are familiar with this script.
how to create a slideshow with multible frames. One photo on each frame.All the images I want to show have been imported.I guess I have to put the names of the imported images in an array.But what is the syntax for loading an imported image by clicking a button?
I am trying to create a slideshow from a premade gallery script I found once. The reason for using it was its ease of use. However I have encountered some issues that I really want this slideshow to have.
1. Automatic Change to the next image with a Pause Button.2. Also I want to understand how the desc_text instance reads the <Caption> tags in the XML. I intend to have a Heading Option as well, but I can't seem to find a logical answer to do it.
function loadXML(loaded) { if (loaded) { xmlNode = this.firstChild;[code].....................
Is it possible to create an xml slideshow that runs .swf files for my home page?and does anyone know where to find some good tutorial on creating xml slideshows that run the .swf files.
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.
I am wondering if anybody can tell me how to create a picture PUSH. I have three images that I wish to work with. By pushing I mean having an image come in from the left (or right) and place itself on top of the other (or pushing the other out of view). Like a slide show of three images scrolling along but one stops for a brief period before the other image comes into view.