all groups > flash actionscript > july 2007 >
You're in the

flash actionscript

group:

need help with automatic slideshow



need help with automatic slideshow sauruman
7/24/2007 8:30:25 PM
flash actionscript: I made an automatic slideshow that switches frames at a set interval but now i
want to load each frame from an extrenal swf and add a preloader for each
frame, how do i tell the slideshow to wait until the frame is loaded before it
proceeds to the next frame, but still have the movieclip be automatic. Also the
slideshow can be controlled mannually so i also want to know how to disable the
manual control till each frame is loaded.
Re: need help with automatic slideshow sauruman
7/25/2007 5:30:14 AM
Here is some of the action script for the slideshow.

This first bit sets up the automatic interval transitions in the main movie
timeline

function nextImage()
{
mc_slide.mc_transition.play();
} // End of the function
function waitImage()
{
clearInterval(slideTimer);
var slideTimer = setInterval(nextImage, timer * 1000);
nextImage();
} // End of the function
function pauseSlide()
{
mc_slide.mc_quicktransition.gotoAndPlay(2);
} // End of the function
var timer = 8;
var pauseTime = 20;
var slideTimer = setInterval(nextImage, timer * 2000);
stop ();





function nextImage()
{
mc_slide.mc_transition.play();
} // End of the function
function waitImage()
{
clearInterval(slideTimer);
var slideTimer = setInterval(nextImage, timer * 1000);
nextImage();
} // End of the function
function pauseSlide()
{
mc_slide.mc_quicktransition.gotoAndPlay(2);
} // End of the function
var timer = 8;
var pauseTime = 20;
var slideTimer = setInterval(nextImage, timer * 2000);
stop ();
Re: need help with automatic slideshow sauruman
7/25/2007 5:37:05 AM
Here is some of the action script for the slideshow.

This first bit sets up the automatic interval transitions in the main movie
timeline

function nextImage()
{
mc_slide.mc_transition.play();
} // End of the function
function waitImage()
{
clearInterval(slideTimer);
var slideTimer = setInterval(nextImage, timer * 1000);
nextImage();
} // End of the function
function pauseSlide()
{
mc_slide.mc_quicktransition.gotoAndPlay(2);
} // End of the function
var timer = 8;
var pauseTime = 20;
var slideTimer = setInterval(nextImage, timer * 2000);
stop ();


the movieclip loaders that load each movie clip are embedded with the
transition animation.
this is the code in the embedded mc-it loads the 1st movie clip and allows the
user to manually jump to any of the other movie clips.

emptyMC.loadMovie("frame1.swf");


var pageAddress = "about:blank";
btn1.onRelease = function ()
{
_parent.pauseSlide();
gotoAndStop(1);
};
btn2.onRelease = function ()
{
_parent.pauseSlide();
gotoAndStop(2);
};
btn3.onRelease = function ()
{
_parent.pauseSlide();
gotoAndStop(3);
};
btn4.onRelease = function ()
{
_parent.pauseSlide();
gotoAndStop(4);
};
stop();

I need to know how to put the code for the automation of the slideshow pause
until each movieclip has finished loading and also at the same time disable the
manual control of the movie clips before they are fully loaded.

function nextImage()
{
mc_slide.mc_transition.play();
} // End of the function
function waitImage()
{
clearInterval(slideTimer);
var slideTimer = setInterval(nextImage, timer * 1000);
nextImage();
} // End of the function
function pauseSlide()
{
mc_slide.mc_quicktransition.gotoAndPlay(2);
} // End of the function
var timer = 8;
var pauseTime = 20;
var slideTimer = setInterval(nextImage, timer * 2000);
stop ();
AddThis Social Bookmark Button