ActionScript 2.0 :: XML Driven Fading Slideshow
Jun 19, 2009how to build an xml driven slideshow with fade transition? I would just like to know how they build this linked here.
View 0 Replieshow to build an xml driven slideshow with fade transition? I would just like to know how they build this linked here.
View 0 RepliesI'm setting this thread up to field questions or issues with a Multi-part tutorial I'm working on here:
viewtopic.php?p=14125#14125
The tutorial thread has been locked to keep it clean and not become a 48 page monster that would be no help to anyone.
I'm working on and xml loaded slideshow. I have a script that I got off of this site where the image fades out before the next one is loaded. The only problem is that the last image does not fade out, it just goes back to the first image which makes it inconsistant
Code:
delay = 4000;
function loadXML(loaded) {
[code].....
The images are loaded via XML and fadeIn in the order set in the XML file. At the moment a new image is required, it fades in. After the set time it gets deleted (setEndFlag) and the next image fades in.
do i need to set a timer in order to fadeOut the "previous" image and fadeIn the "next" image. and after the "previous" image has run out of time it gets deleted. How can i include the cross-fading in the in the script below?
[Code]....
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.
[Code]...
I'm using kirupa's flash and xml tutorial to make a fading in slideshow. I was trying to modify some of the code so that the image will also fade out before the next one fades in. Here is my code:
[CODE]....
I'm trying to create a simple yet effective image slideshow for my homepage. It'll be a bar, 600 pixels wide, by 300 pixels high. There will be 4 buttons that will line the bottom, numbered 1 through 4, that will control 4 separate slides that'll appear in that window. If you don't click anything, the images will fade in and out after x amount of seconds. Clicking on the numbered buttons will load the appropriate slide, and each slide when clicked will take you to a certain part of the website.
I wish to do this in actionscript... not using the timeline as I prefer to do all transitions in actionscript. Can anyone shed light on how to set this up? I've been trying to use the TransitionManager function... however I'm getting mixed results. Here's a screenshot:
Code:
import fl.transitions.*;
import fl.transitions.easing.*;
ss1_mc.alpha = 1;
ss2_mc.alpha = 0;
ss3_mc.alpha = 0;
ss4_mc.alpha = 0;
var currentImage:MovieClip = ss1_mc;
[Code] .....
I am working on an xml based slideshow. Random images loading (only ones and no repeated image) and fade in-out effect. That's working fine, but the problem is that when animation starts it does it on white screen and then fades in to the first image. How can I keep my slideshow working the same way but starting with the first image already on stage (without fade in)?
My Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
import com.greensock.*;
import com.greensock.easing.*;
[Code] .....
im working on an xml based slideshow. Random images loading (only ones and no repeated image) and fade in-out effect. That�s working fine, but the problem is that when animation starts it does it on white screen and then fades in to the first image. How can i keep my slideshow working the same way but starting with the first image already on stage (without fade in)? My Code:
code: import fl.transitions.Tween; import fl.transitions.easing.*; import fl.transitions.TweenEvent; import com.greensock.*; import com.greensock.easing.*; var my_speed:Number; var my_total:Number; var my_images:XMLList; var my_loaders_array:Array=[]; var my_labels_array:Array=[]; var my_success_counter:Number=0; var my_playback_counter:Number=0; var my_slideshow:Sprite = new Sprite(); var[code]..........
i have an xml driven photogallery with thumbs and the slideshow starts automatically and is cross fading and it has a next/play/pause/for buttons. Everything is fine but i don't like the way the thumbs scroller operates, it's way to mechanical and i would love to add an easing effect to it. How do i do that? this is the code of the whole gallery:
[Code]...
im working on an xml based slideshow. Random images loading (only ones and no repeated image) and fade in-out effect. Thats working fine, but the problem is that when animation starts it does it on white screen and then fades in to the first image. How can i keep my slideshow working the same way but starting with the first image already on stage (without fade in)?My Code:
ActionScript Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;
[code].....
I bought a flash site template that loads xml driven swfs inside the main swf as different menu items are clicked. The modules that come with the template work fine, but I don't know how to add a third party xml driven swf, so that it shows up properly. While the third party swf works fine as a standalone, the embedded version loads just an empty movie.
View 4 RepliesI'm trying to play 2 external flash movies. its already running ok but i need the scene to be somewhat to gradually become transparent so that the timebased scene2 will comeout to of the screen.
Here is the script of it:
var myLoader:Loader = new Loader();
var url:URLRequest = new URLRequest("scene2.swf");
myLoader.load(url);
addChild(myLoader);
[Code]....
I can't work out why - but when I try to fade out some text (by calling fadeoutSecondText), the text fades out, and then immediately fades back in. Fading in and out struggle against each other, resulting in rapidly flashing text!
[Code]...
when i test the movie all i see is a large grey box (border color) with a medium white box (box color) in the bottom right.when i edit the border and lose the grey box but leave its line borders then i get the image with the white box in the bottom right. i've got an image: instance named 'image', a box: instance named 'box' and a border: instance named 'border' and pasted in the actionscript in
View 5 Repliesi've done the Fading Grid tutorial that Voetsjoeba wrote but i seem to be de-railing somewhere when i test the movie all i see is a large grey box (border color) with a medium white box (box color) in the bottom right.when i edit the border and lose the grey box but leave its line borders then i get the image with the white box in the bottom right. i've got an image: instance named 'image', a box: instance named 'box' and a border: instance named 'border' and pasted in the actionscript in place but it still hangs.
View 5 RepliesI have created a pie preloader(preloader.zip) which is working fine. Same preloader I am trying to incorporate in a xml based slideshow(slideshow.zip) to show image loading process but some how I got stuck. I am new to flash. Suggestions are welcome.
1. How to solve the problem of preloader2. Is it possible to integrate everything in a movie clip (including AS). I mean no AS on main time line but inside the movie clip. It would be much easier then to to create multiple slideshows by duplicating mc and changing the xml file.
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.
View 1 RepliesI have an swf with xml and external content for which I need play, stop and sound volume controls at least. The swf doesn't have them and it's action script 3 so I can't even get it opened in flash cs2.
Is it possible to create external controls or do I have to pay someone to create a new swf to go with the xml and css files?
can create a new fla/swf file that I could later edit for size, colors etc in the case where I need to create a new one. and how much... If not I may still need someone to create the controls for me and run me through the process of getting them to work with my current files.
ive made a huge xml driven site (navi and content) but now i dont know how to seo it. all the data comes from a database so it would be a problem to insert it in my html, but i load my html only once and after that flash does the hole change subpages thing.
View 5 RepliesI have a XML file with images and tags which should be loaded into movieclips.The tags are separated in maintags and normal tags. Maintags are describing the image itself and "normal" tags are referring to other images. If you click on an image/movieclip its normal tags should be read and referring to other images' maintags which now should be loaded into the movieclips.Sounds complicated but actually it's easy. Theoretically I understand what to do, but I'm not able to express it in Actionscript.Here's my(rudimentary) code:
PHP Code:
import flash.events.Event;
import flash.net.URLLoader;
import flash.net.URLRequest;[code]......
Basically, i have created a simple rollover map of London Boroughs. I have a dynamic text box following the cursor which is populated by an edited version of the Borough MC's instance name. So far so good. I would really like a way of neatly loading text and image information in a pop-up for each Borough, when that Borough MC is clicked on, via an xml file which contains all relevent data.I have managed to create a simple xml file to contain the data, and to 'trace' the various required attributes (borough name, data, images, captions), but am unsure how to connect the data to the action of clicking on a particular Borough.From reading around the many xml discussions (mostly discussing image galleries) i think this involves using a loop array? As i am new to flash i am struggling to find the right way of applying this method in this circumstance
View 5 RepliesI have never done an XML gallery, I have read over many tutorials and searched google thoroughly without success.Basically I want an area on the left of thumbnails with a scroll, represented by the red line, when you click a thumbnail the large version appears in the large black area, doesn't have to be any fancy fade in/out effects, just show up.
View 4 RepliesI could play a XML Driven SWF just fine by itself But when I load it into another XML Driven SWF, it won't get the data.Is there a way to make both XML SWF worked within each other?
View 3 RepliesIn fact, i make flash CD presentation in Adobe Flash CS5 AS2 (with minimal use of ActionScript). It occurs to me the next problem ... need to load flash image gallery that i already have created, in new presentation file. Gallery was created in Flash Slideshow maker and as products I have. Swf,. Xml and folders with thumbnails and picture (no. Fla file).The concept of the presentation (as root is concerned) should look like in uploaded picture "izgled otvorenog cd-a". In each of the folder on cd presentation (as on picture) is a Flash presentation controlled by their xml file whose name I must not change. Exe file "Prezentacija 2011" is a presentation (Flash Projector) that i try to make. In the same presentation i create frames and for each of the frames added action:
loadMovie ("02_Kapije/kapije.swf", "kapije_ucitavanje");
kapije_ucitavanje._x = 23;
kapije_ucitavanje._y = 167;
[code]......
I am looking for a non XML driven Flash banner rotator, something where I can load my images into the FLA and publish. The only rotators I can seem to find have external XML/image files, etc. All I want to do is create simple SWF's that I can use to display rotating images preferably is a smooth and stylish manner. Does anyone know of any, or could point me in the right direction?
View 1 RepliesI have an accordion menu fla, I copied the fla into my main fla so I have one file. The menu has external links that can be added in the xml file which is great but I need to link the menu from within the fla it is in. I need to have each mc or button in the menu link to a specific frame within the .fla I see now in order to do this I have to edit the actionscript within the menu. I'm new in AS3 but from my little experience in it I think I need an eventlistener that calls a function which will send the each instance to a frame inside the file.
Here is the original
[URL] (skip the crappy intro) and you will see 4 photos in an accordion. They link to separate galleries with no back buttons
Here is my remake [URL]
my version calls links thru an xml file which I posted above.
The file is in AS3
it is here [URL]
So I would need to link the 4 mc's in the menu to separate frames main.swf
I'm being asked if some resources I created can be made accessible. Currently each resource is the exact same launch.swf, but each is pulling from a different xml file. I'm so proud of myself! But now it looks like you can't dynamically generate accessilbe resources. I'm being asked for the alt.text equivalent of various text boxes, while the actual content of each box depends on multiple factors.
View 1 RepliesIm currently working on a system whereby a user can fill in text fileds within a PDF form, submit the data as XML and this is picked up by the Actionscript in a .SWF file thus allowing end user customisation without the need to edit the actual Flash files.I have all this working fine so far however im stuck at a particular part.I want to have radio buttons (or something similar) on each page of the PDF where the user can select if the page has to be output in the .SWF file or not. Ive tried creating the actionscript part for this however im completely lost. The XML from the PDF i can manage no probs but the actionscript part is stumping me.
View 3 RepliesI have a banner rotator / slideshow with 30 swf's. I have an xml file driving the lideshow. My problem is that I have video pop-ups in each of the 30 linked swf's and a geturl in each of the swf's. I need to be able to drive this content from the xml file. Is that possible? to read an xml file from a linked swf?
Root file AS:
function desc_change(id)
{
[code].....