all groups > flash (macromedia) > february 2004 >
You're in the

flash (macromedia)

group:

5 minute delay neede



5 minute delay neede kovu
2/25/2004 10:24:24 PM
flash (macromedia): Hi:

I am creating a presentation in which I want each scene to play for 5 minutes
and then go to the next scene. Basically it is a picture with a little
animation that I want to loop for 5 minutes and then go to the next scene and
do the same thing.

Or is it better to create movieclips and place them on the maintime line and
have each frame that the movie clip is on play for 5 minutes and then go to the
next frame and play for 5 minutes. I think this is the better solution but I am
not sure how to do it.

Please be kind in explaining scripting, I have a hard time getting my head
around it.


Thanks,
plemene


Re: 5 minute delay neede stwingy
2/25/2004 10:34:53 PM
on Each frame of the maintimeline, you want to pause put
stop();
pauseI = setInterval(pauseF, 300000);
function pauseF() {
play();
clearInterval(pauseI);
}

you might want to test it with a smaller number than 300000, try 1000(1 sec)
Re: 5 minute delay needed imageus
2/27/2004 2:49:44 AM
I am new to Flash, so pardon my ignorance. Where do you put this code? I am
using Flash MX Professional 2004, v7.0. I am in need of doing a similar thing,
but with variable delay to match the audio that will go along. Thanks in
advance!
Re: 5 minute delay neede Dogged
3/20/2004 5:46:21 PM
Hi Stwingy,

Your pause solution looks to be what I'm looking for. When I try to place it
in a screens based movie - using the actions panel - I fail to get it to
function. I am trying to pause a screen before it continues to the next one
via a transition - Flash MX 2004 Pro.

Code below:

Any idea where your code should be placed to make it work - perhaps I need to
remove the 'on (allTransitionsInDone)' code?

Any advice, gratefully received.

Many thanks!

Regards,


Mike W

on (reveal) {

// Transition behavior
if (!eventObj.target._isSlide || (eventObj.target._isSlide &&
eventObj.target.currentSlide)) {
mx.transitions.TransitionManager.start (eventObj.target,
{type:mx.transitions.Fade,
direction:0, duration:3, easing:mx.transitions.easing.None.easeNone,
param1:empty, param2:empty});

eventObj.target.__transitionManager._triggerEvent = eventObj.type;
}
// End Transition behavior

}
on (allTransitionsInDone) {

// Show Screen behavior
if((this._parent.form3 != undefined) && (this._parent.form3 != 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;
}
}
this._parent.form3.setVisible(true);

if((screen != null) && (this._parent.form3 !=
screen.rootSlide.currentSlide))
{
screen.rootSlide.currentSlide.setVisible(false);
}
}
// End Show Screen behavior


// Hide Screen behavior
if((this != undefined) && (this != null))
{
this.setVisible(false);
}
// End Hide Screen behavior
}
AddThis Social Bookmark Button