Actionscript 3 - Written by Artluvr on Wednesday, March 11, 2009 9:05 - 9 Comments
XML Based Fullscreen Image Rotator With Proportional Resize – Flash CS3 – Actionscript 3
The last two years we see developers using beautiful images for website backgrounds. In Flash sites we can have functionality and interactivity with the background. So what we created a simple background image rotation component for your website. It takes two line to initialize it and a simple XML if you wish to change the images.
You can customize the following:
- Transition interval between images
- Image list
- Proportional resize
Initializing the component
Copy the RotatingBackground movieclip to the library of your .fla file.
Copy the RotatingBackground.as and images.xml files to the same folder that you have your .fla file.
Write the following two lines of code:
var rb:RotatingBackground = new RotatingBackground(“images.xml”, 12);
addChild(rb);
The first parameter is the name of the xml file and the second the transition interval between the images
XML Structure
<?xml version=”1.0″ encoding=”utf-8″?>
<images>
<image file=”images/1.jpg” />
<image file=”images/2.jpg” />
<image file=”images/3.jpg” />
</images>
Requirements
Tweener for AS3 (included in the zip file)
Price: € 6
Share and Enjoy:
9 Comments
Derek
@Derek, no unfortunately it can’t
i just purchase this. How would I unload this using a button? or is it possible to have 2 versions of this on the same sight so lets say I have a button that loads one set of images and then another button that loads another. New to as3
@snips, call the parent’s function removeChild() and pass the object as a parameter. It should look somehting like this (if you added it on the stage)
stage.removeChild(imagerotatorobject);
John
Can I change the path to imgaes.xml in runtime?
Bjørn
Hi,
I´ve just bought your XML Based Fullscreen Image Rotator With Proportional Resize in order to use it as a background for a website.
Now I would like to place some movieclips on top of the rotating background but every movieclip that I place on top of the background fades out when the first background picture fades out.
Can you tell me what I am doing wrong?
Regards
Bjørn
fagan Wilcox
this looks good. But it would have been nice to be able to target a certain image because one of the obvious uses for this would be someones portfolio.
@ John, I am afraid not
@Bjorn, try putting the background inside a movieclip on a layer at the bottom, and then load your new movieclips inside a movieclip on a top layer.
Leave a Reply
Most Popular Content
- thecodemonster.net has a new logo
- XML Based Fullscreen Image Rotator With Proportional Resize – Flash CS3 – Actionscript 3
- MP3 Player – XML based – Flash CS3, Actionscript 3, Tweener
- XML based banner rotator – Actionscript 3, Flash CS3
- Image Panning on Mouse Move – Actionscript 3 – Flash CS3
- XML Image Gallery – Actionscript 3, Flash CS3, Tweener
- XML based image gallery – Actionscript 3, Flash CS3, Tweener
- Scrollbar with easing – Actionscript 3 – Tweener – Flash CS3
- 3D Carousel XML based – Actionscript 3, Flash CS3
- Papervision3D Spiral Carousel
- Depth of Field with Papervision3D & Tweener
- @Sulaiman, you can do it by removing every child inside the movieclip, and then ...
- @william, The calendar is a movieclip. You can just move it by changing the x an...
- @fuya, unfortunately you cannot add thumbnails, neither the gallery can autoplay...
- @jck, It's not the scroller's fault. Flash has a limit on the height of textfiel...
- Hi, I just started using the scroller, but I'm having trouble with a long text, ...
- The gallery is great.
To customize, I would like to know how can I make the g...
- how do i actually move the calendar along the x and y axis. i can move the backg...
- hi Artluvr,
thanks for this. one quick question:
any idea how i could swit...
Image Galleries
- XML Based Fullscreen Image Rotator With Proportional Resize – Flash CS3 – Actionscript 3
- XML based banner rotator – Actionscript 3, Flash CS3
- XML Image Gallery – Actionscript 3, Flash CS3, Tweener
- XML based image gallery – Actionscript 3, Flash CS3, Tweener
- Auto Resize XML Image Gallery – Actionscript 3, Flash CS3, Tweener
- XML Based Zoom Gallery – Flash, Actionscript 2, FuseKit
Menus & Buttons
Utilities
- MP3 Player – XML based – Flash CS3, Actionscript 3, Tweener
- Image Panning on Mouse Move – Actionscript 3 – Flash CS3
- Scrollbar with easing – Actionscript 3 – Tweener – Flash CS3
- XML graph like Google Analytics – Actionscript 3, Flash CS3
- XML based MP3 Player Streaming Compact – Actionscript 3 – Flash CS3
- Events Calendar – XML based – Actionscript 3, Flash CS3, Tweener
- 3D Windows that rotate when you drag them – Papervision 3D 2, Actionscript 3, Flash
- XML based news bubble – Actionscript 3 – Flash – Tweener
- Magnifying glass zoom – Flash, Actionscript 2
- Interactive Snow with OOP Actionscript 2

Hi, is there a simple way with your script to play a certain image in the xml list, rather than having a slide show?