I think I'm confused by this part:
if (screen instanceof mx.screens.Slide)
How do I modify that to work with the movie?
edit: nevermind, I see what you're talking about... lemme try that.
edit 2: YES it does work, I switched the code to look like this:
Code:
on (release) {
// GoTo Next Screen behavior
var screen = null;
var target = this;
while((screen == null) && (target != undefined) && (target != null))
{
if(target instanceof mx.screens.Screen)
{
screen = target;
}
else
{
target = target._parent;
}
}
if(screen instanceof mx.screens.Slide)
{
screen.rootSlide.currentSlide.nextSlide.gotoAndPlay (1);
screen.rootSlide.currentSlide.gotoNextSlide();
}
// End GoTo Next Screen behavior
Thanks so much, now I have to figure out why my sounds don't stop when I click the button now.