Slideshow is really kinda rare at the internet , I tried to look at some ready Slideshow that need just some modification and here we are ready , but it seems that I can't find what I want, that why I want to write this tutorial to help some people like me that are interested in a slide show .
This slide show is made with Flash 8 and ActionScript 2, and Will use the XML File .
The XML File "filelist.xml" would look like something like this :
This Snippet of Code will load the xml file , and will launch the function ChangeClip() with an interval of 10 seconds , which means that the function will be repeated each 10 seconds and will change the picture.
function ChangeClip(XMLValue) { element = XMLValue.firstChild;
easeType = mx.transitions.easing.Regular.easeOut; var begin = 20; var end = 100; var time = .5; var mc = ourMovieClip;
ballTween = new mx.transitions.Tween(mc, "_alpha", easeType, begin, end, time, true);
counter++;
}
This Snippet of code is a function that will load the image or the Movie Clip in the Stage and will increase the value of the counter
the Transition that was used here is a type of transition that wasn't documented in the flash class documentation , there is a lot different method for doing this kind of transition , so you can have a different type of transition.
Flashflickr is an application builded by Flex/Actionscript2 which uses the API flickr services, the application allow the users to browse their picture , and it implemente the authentification for the registred users , so the users can post comment for the pictures and add tags .... The application is opensource , you can download it for free , and for to be able to use , you need a flickr API key. http://www.flickr.com/services/api/
Creating photo Galleries with Adobe photoshop or photoshop element 2 was always an easy task , but nowdays with the use of Photoshop element 5 and hotoshop Lightroom, Adobe introduces a new generation of Flash-based web galleries that deliver an engaging user experience and provide many styling and customization options.
Photoshop Elements and Lightroom ship with a single SWF file containing the gallery program, which users can customize extensively using the authoring interface in those programs.
Michael Slater and Trent Brown from Adobe , will explain different necessary steps for customizing web photo galleries in ActionScript
Adobe has published the Adobe Media Gallery code as open source, so you can modify it or learn from it to create entirely new galleries. To help get you started, this article provides an overview of how the Adobe Media Gallery works with the XML files. After you read this article, you should refer to the Adobe Media Gallery XML specification and the other resources listed at the end for more details.
In our tutorial here we are going to build a flash image gallery using the photos stored in the flash library , our result would be something similar to this like this
1- firstly we create the rectangle and the color name and we convert it to a MovieClip and we repeat the same task till we finish all the color and have similar result in figure one.
2- import all the images to the library by choosing file menu , and place or use the shortcut ctrl+R , and import all the images of the cars with different colors.
4-at the step we would give the images in the library a unique identifier and export them to AS , for that they would be accessible from actionscript, right click on the images in the library and we check the checkbox of export for actionscript ,and we give a unique identifier for each image in the library.
5- we create an empty movie clip and we call it " displayer" , this is movie clip is where our cars would be shown , whenever we rollover colors.
6-now we click on the color movie clip and we go to the action section , we add the event onRollover
on(release){ import flash.display.BitmapData; var linkageId:String = "car1"; var myBitmapData:BitmapData = BitmapData.loadBitmap(linkageId); this._parent.displayer.attachBitmap(myBitmapData, this.getNextHighestDepth());
}
in the linkageid we give the unique identifier of the car that is in the library that would be shown, after we create a bitmapData and we load it to our movie clip displayer. here is the sample movie