all groups > flash actionscript > august 2005 >
You're in the

flash actionscript

group:

Flash Presentation Slide Problems


Flash Presentation Slide Problems kellydigital
8/26/2005 9:08:01 PM
flash actionscript:
I've created a flash presentation with about 10 slides. Each of which has
their own animation. To prevent the slide from looping i've put a stop();
command at the end of each...my problem is, on my menu I used the behavious
screen.gotoslide function, and while it does go to the desired slide, it
doesn't restart the slide at frame 1...it just is stuck at the stop(); point.

question...

is there anyway to tell my button that in addition to switching slides to
slide 'X' but also to start playing slide X on frame Y.

thanks

Re: Flash Presentation Slide Problems kellydigital
8/26/2005 9:09:51 PM
here is the script attached to the button to jump to that slide...


on (release) {

// GoTo Screen behavior
if((this._parent != undefined) && (this._parent != 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(this._parent);

}
}
// End GoTo Screen behavior

}
Re: Flash Presentation Slide Problems kellydigital
8/26/2005 9:10:33 PM
plus i also have two navigational buttons that simply go to the next or previous slide ...but they too should also restart the slide from a specified frame.

thanks
Re: Flash Presentation Slide Problems kellydigital
8/27/2005 12:00:00 AM
any ideas? I'm desperate... :D
AddThis Social Bookmark Button