Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
Flash MX slide show
Author: Joachim Schnier
| Website: http://www.cancerinform.net/ |
Actionscript: function for thumbnail buttons
We now write functions to load the thumbnails into the nailholders (function preView) and to give function to the nailholder buttons to load the actual images into the slideholder (function showSlide).
function preView (firstSlide,lastSlide,nailName) {
i = firstSlide;
while (i <= lastSlide) {
_root["nailHolder_" + i].loadMovie(nailName + i +".jpg");
i++;
}
_root.whiteBox._visible = false;
unloadMovie(slideHolder);
loadVariablesNum("preview.txt", 0);
}
function showSlide (slideNumber,slideName,slideText,firstSlide,lastSlide) {
_root.slideHolder.loadMovie(slideName + slideNumber + ".jpg");
loadVariablesNum(slideText + slideNumber + ".txt",0);
_root.whiteBox._visible = true;
_root.rightBut._visible = false;
_root.leftBut._visible = false;
}
| » Level Basic |
|
|
Added: : 2002-05-09
Rating: 4.69 Votes: 108
Hits: 5210
|
| » Author |
|
The author is a scientist doing cancer research.
|
| » Download |
|
Download the files used in this tutorial.
|
|
Download (306 kb)
|
|
Get conversion and unzipping tools
for PC and Mac here!
|
| » Forums |
|
More help? Search our boards for quick answers!
|
|
Please rate this tutorial, 10 is the top rating, you can also click the
comments link to read/write a review.
|
|
|