I have the lovely task of working in a Flash slide presentation file. This uses the mx.screens.Slide class and I am having some trouble getting an action to work.
I am able to go from slide to slide through the behaviors, what I cant figure out is how to go to a particular frame in the timeline of a slide. I have been using code below and it works, just not when I try to add a keyframe number to it, any suggestions would be really appreciated.
on (release) {
if ((_root.presentation.slide4 != undefined) && (_root.presentation.slide4 != null)) {
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.gotoSlide(_root.presentation.slide4(1));
}
}
}
This is the section thats troubling me, you can see I am trying to go to a particular frame in a slide.
screen.gotoSlide(_root.presentation.slide4(1));