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.
We now create a function to go manually through the slides.
//function to go to the next slide.
//k is a global variable here and set to "0" so that first slide
//will be in fact the number for first slide. The number for the first slide
//can be different from 1.
var k = 0;
function nextSlide(firstSlide,lastSlide,slideName,slideText) {
_root.clearEverything();
_root.loadText.gotoAndStop("stop");
percentOutput = "";
//k is incremented by 1 to set to value of next slide.
k = k+1;
//i is the actual slide number.
i = (firstSlide - 1) + k;
//function to load text, when html you can place links
//var newText to load corresponding text into textbox.
newText = (slideText + i + ".txt");
loadVarsText = new loadVars();
loadVarsText.load(newText);
loadVarsText.onLoad = function(success) {
if(success) {
scroller.html = true;
scroller.htmlText = this.myText;
}else{
trace("not loaded");
}
}
// if statements to hide next or previous button
// and to load the pics
if (i == firstSlide) {
_root.leftBut._visible = false;
i = firstSlide;
_root.slideHolder.loadMovie(slideName + i + ".jpg");
_root.newText;
}
if (i == lastSlide) {
_root.rightBut._visible = false;
i = lastSlide;
_root.slideHolder.loadMovie(slideName + i + ".jpg");
_root.newText;
} else if (i !== firstSlide && i !== lastSlide) {
_root.rightBut._visible = true;
_root.leftBut._visible = true;
i = (i+1) -firstSlide;
_root.slideHolder.loadMovie(slideName + i + ".jpg");
_root.newText;
}
}