Helpful stuff on Flash, ActionScript, After Effects etc

cases, code, tips and guidance

showcase: looping slidegallery made in ActionScript 3.0

without comments

yet again, I find myself doing a gallery in ActionScript.
most times new features are developed and added, luckily :)

so, this time the gallery should be able to loop endlessly.
in the example below, I add 5 pictures to the Flash through XML. but when rotating the gallery to the right it will not stop at picture 5, no it’ll just continue to rotate to the right, starting from picture 1 again.

check out the looping slidegallery here:

furthermore, the slidegallery accepts another parameter; where to start.
if you want the slidegallery to start at picture 2, you just add this as an URLparameter, like you add the XML.
here’s how it’s added:

        <script type="text/javascript">
            var theXML = "PV_showroom.xml";
            var theStartpicture = "t03.jpg";                               
       
            var so = new SWFObject("slideGallerypreloader.swf?whatXML="+theXML+"&whatStartpicture="+theStartpicture.....

the gallery is made in ActionScript 3.0 and uses Tweener.

additional info.
the pictures in this slideGallery are screenshots from the website t-rex-engineering.com, an absolutely amazing site to visit, when you’re looking for new pedals to enhance the sound of your electric guitar.

:)

Bookmark and Share

Written by admin

maj 9th, 2009 at 2:16 pm

Leave a Reply