This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > May 2005 > gotoSlide Command...





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author gotoSlide Command...
JohnnieNeutron

2005-05-26, 4:19 am

:evil; Help, I am writing a pretty simple flash slide show in which I use the
gotoSlide command. when I run the presentation and click on the button, the
screen transistions to that slide and then after 4.5 seconds it hopes back to
the origunally slide. I have tried adding action layers to the child slides
with the 'stop();' command and this does nto seem to stop the slide from
hopping back to the title page. Please help!

Johnnie

on (release) {

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

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews