This is code one of the buttons have:
Code: Select all
on (keyPress "<Down>") {
// Locate the screen that is the target of the behavior
var screen = null;
var target = slide5;
while((screen == null) && (target != undefined) && (target != null))
{
if(target instanceof mx.screens.Screen)
{
screen = target;
}
else
{
target = target._slide5;
}
}
// If there's a Slide to apply the behavior to, then do so
if(screen instanceof mx.screens.Slide)
{
screen.rootSlide.gotoslide5();
}
}
Heres a screen shot: