mrand01
03-05-2004, 12:55 PM
class SlideShow extends MovieClip
{
var curScreen:Number = 1;
function SlideShow()
{
this.curScreen = curScreen;
this.loadMovie("slides/slide" + curScreen + ".jpg");
}
public function nextScreen():Void {
curScreen++;
this.loadMovie("slides/slide" + curScreen + ".jpg");
}
}
I have a movieclip called mcSlides on my stage. The linkage properties are as follows:
identifier: mcSlides
AS 2.0 class: SlideShow
Export for Actionscript checked
Export in first frame checked
mcSlides is declared like this in the root timeline:
var mcSlides:MovieClip;
when I try to call mcSlides.nextSlide();, nothing happens. It doesn't work. What am I doing wrong?
{
var curScreen:Number = 1;
function SlideShow()
{
this.curScreen = curScreen;
this.loadMovie("slides/slide" + curScreen + ".jpg");
}
public function nextScreen():Void {
curScreen++;
this.loadMovie("slides/slide" + curScreen + ".jpg");
}
}
I have a movieclip called mcSlides on my stage. The linkage properties are as follows:
identifier: mcSlides
AS 2.0 class: SlideShow
Export for Actionscript checked
Export in first frame checked
mcSlides is declared like this in the root timeline:
var mcSlides:MovieClip;
when I try to call mcSlides.nextSlide();, nothing happens. It doesn't work. What am I doing wrong?