actionscript 3.0 for slideshow
very cool 3.d slide show tutorial using xml
http://www.kirupa.com/forum/showthread.php?t=245468
This is the link for the tutorial that focuses on the AS seen below
// variables
var xmlList:XMLList;
var mcLoader:Loader;
var slideNum:Number = 0;
// loads xml and assigns the text field the first node using the slideNum variable from above
var xml:XML = new XML();
var loader:URLLoader = new URLLoader();
loader.load(new URLRequest(”images.xml”));
loader.addEventListener(Event.COMPLETE,
function(evt:Event):void {
xml = XML(evt.target.data);
xmlList = xml.children();
trace(xmlList);
imageText.text = xml.image[slideNum].@name.toString();
}
);
// stage event listeners for the movieClip buttons
nextBtn.addEventListener(MouseEvent.CLICK, onClickNextSlide);
prevBtn.addEventListener(MouseEvent.CLICK, onClickPrevSlide);
// this function will change the text depending upon which number is fed to the var slideNum in the onClickNextSlide function
function changeText(slideNum:Number):void {
imageText.text = xml.image[slideNum].@name.toString();
}
changeText(0);
// this function adds 1 to the current number, if the current number is 4, it starts over
function onClickNextSlide(event:MouseEvent):void {
slideNum++;
trace(slideNum);
if (slideNum == 4) {
slideNum = 0;
}
changeText(slideNum);
}
// this function dos the opposite of the one above, it subtracts 1 to current number, when it reaches 0 it starts back at 4
function onClickPrevSlide(event:MouseEvent):void {
slideNum–;
trace(slideNum);
if (slideNum == 0) {
slideNum = 4;
}
changeText(slideNum);
}
Filed under: Uncategorized | Leave a Comment
http://www.kirupa.com/
http://www.lionbichstudios.com/flash_tutorials_01.htm
http://www.tutorialized.com/tutorials/Flash/1
http://www.vectorkid.com/
http://www.cbtcafe.com/FLASH/
http://www.flashkit.com/
http://tutorials.flashguru.co.uk/
http://www.flashcircle.com/
http://www.flashdeveloper.nl/g_flash_Tutorials.html
http://www.sephiroth.it/tutorials/flashPHP/
http://www.flash-mx.com/flash/index.cfm
http://www.flashpro.nl/flas.html
http://www.developingwebs.net/flash/#MX
http://www.actionscripts.org/tutorials.shtml
http://www.flashmove.com/
http://tutorials.flashsitesweekly.com/flash/
http://www.stranger.per.sg/
Filed under: flash animation | Leave a Comment
Tags: actionscript 3.0, flash, Resources, tutorials
check it!
sweet websites!
http://www.simpsonsmovie.com/main.html
http://cmart.design.ru/
http://www.studioaka.co.uk/html/index.html
http://www.beksinski.pl/
Filed under: Uncategorized | Leave a Comment
an AMAZING site
a great narrative/interactive site.. tons of fun!
www.hbovoyeur.com
give it a whirl!
Jess
Filed under: Uncategorized | Leave a Comment
Andrew Site
asfunction:_global.fixedGetURL,http://lab.mathieu-badimon.com/
Filed under: Uncategorized | Leave a Comment
interactivity extravaganza
posted by Colby
…on the right hand side, select Uniqlo Explorer.
Filed under: Uncategorized | Leave a Comment
Tags: interactivity
The Pocket Geek – A Tamagotchi Designer (long load!)
Yoshinoya Singapore – The Adventures of Hearty Beefy Bowl
Cheval de Troie – A French Creative Studio
Filed under: Uncategorized | 3 Comments
Search
-
Blogroll
Flash sites
Individual Sites
Open Source
Resources
Splash Pages
Student Sites