Featured FLA
» Author: Bugra Ozden
» Title: Skatalog v9 - product catalog
» Description: Create your product catalog easly and publish on your website or Create your image gallery, documents list, portfolio. Fully XML Driven
» More by Bugra Ozden
Featured Site
» Posted in the Flash Kit Links section
» Title: Creative DW Image Show PRO
» Description: Creative DW Image Show PRO is a Dreamweaver extension which enables the user to create multimedia presentations. It combines the features of the popular Creative DW Image Show with the ability to add professional text effects to slides (similar to After Effects). The product is very customizable: the user can choose the duration of the transition effects, the slide motion start and end position, zoom and panning type for both images and texts.
Actionscript: frame 1, Loading thumbnails and function to load slides
The next two functions are to load the thumbnails and to make the thumbnail buttons functional (function showSlide).
//function to load the thumbnails
function preView (firstSlide,lastSlide,nailName) {
clearEverything();
//loading the thumbnails
while (firstSlide <= lastSlide) {
_root["nailHolder_" + firstSlide].loadMovie(nailName + firstSlide +".jpg");
firstSlide++;
}
unloadMovie(slideHolder);
// load text for preview
loadVarsText = new loadVars();
loadVarsText.load("preview.txt");
loadVarsText.onLoad = function(success) {
if(success) {
headline.html = true;
headline.htmlText = this.headText;
}else{
trace("text not loaded");
}
}
}
//function for each thumbnail button to load slide into slideholder.
//This function is attached to thumbnail buttons. Each slidenumber has
//to be set individually. See the invbox actions for details.
function showSlide (slideNumber,slideName,slideText,lastSlide) {
clearEverything();
_root.slideHolder.unloadMovie();
_root.slideHolder.loadMovie(slideName + slideNumber + ".jpg");
newText = (slideText + slideNumber + ".txt");
loadVarsText = new loadVars();
loadVarsText.load(newText);
loadVarsText.onLoad = function(success) {
if(success) {
scroller.html = true;
scroller.htmlText = this.myText;
}else{
trace("not loaded");
}
}
//This is to hide the slideshow right and left buttons.
_root.rightBut._visible = false;
_root.leftBut._visible = false;
}