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
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)
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!
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 }
Don't see what you're looking for? Try a search.
|