Replay Button
Hello everyone,
I have a short movie, which contains a movie clip. The movie clip has a Stop Action at the end of it. I placed a Replay button, so that the viewer can replay the movie when it's finished. But the problem is that it replayes only the movie timeline, but the movie clip doesn't restart.
How can I make the button, Replay both the movie and the movie clip?
Thanks
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 02-25-2008, 05:21 AM
View Complete Forum Thread with Replies
Sponsored Links:
Replay Button Does Not Replay Sound
Hello:
I have created a replay button to replay from the beginning. But after I click on the replay button, the animation replays, but the sound doesn't.
How do I get the sound to replay as well? Do I need to put any script in the Sound layer?
thank you
View Replies !
View Related
Replay Button
can someone show me how to script a replay button? i made a button with and UP , OVER and DOWN image. Now what? please help for i am almost done with my first attempt at flash and i love it. Cant wait to start my next project.
View Replies !
View Related
Replay Button
can anyone help me? i want to place a replay button at the end of my flash movie, i have the button made and stuff, so i guess i just need to know how to script it. Any help at all well appreciated. Thanks in advance.
View Replies !
View Related
Replay Button?
Halo everyone!!! *waves*
yap, how do i make a replay button, i'm doin a game, so the player upon pressing the replay button should be able to replay the game..
anyone able to help?
Thanks!!
I love doughnut! *grinx*
View Replies !
View Related
Replay Button?
Ok so I posted this a while back and now I don't remember the code. What's the code if you want a replay button to go back to the 3rd frame and stop all sounds.
I remember it was something like
on release {
gotoAndPlay(3);
}
on release {
stopAllSounds();
}
please help!
View Replies !
View Related
Replay Button?
I am trying to make a "replay" button at the end of my flash movie , in MX 2004, but nothing seems to work for me. The button will allow the user to start the movie back at scene 1. Any ideas guys?
View Replies !
View Related
Replay Button For A MC
have a MC on one of the pages on this site I'm making and want to have a replay button (obviously)...start the MC over again, just don't know what action to write in...
on (release) {...
and from there i don't know...can someone fill in the blank? thanks!
View Replies !
View Related
Replay Button..
What is the actionscript or process to create a button that, when you click it, returns the movie to the first frame? I'm having trouble creating one that works.
View Replies !
View Related
[CS3] Replay Button
*Srry about the other thread, I accidently forgot the title.
I made a simple a stick movie, and at the end I wanted a button that would say Replay. Then when the user clicked on the button it would go back to frame 1. I put a stop(); action in the last frame of the main timeline stopping it.
Then I put this actionscript in the button:
on (release) {
goToAndPlay(1);
}
However when I test the movie I get this error for whatever reason:
Syntax error: extra characters found after end of program. on (release) {
Can anyone tell me why this is and how to fix it? I'm somewhat new to Actionscript 3.0.
View Replies !
View Related
Replay Button
Hi everyone. I'm in need of help here.
I'm trying to create a movie and let it play automatically once the viewer open up the swf file. Upon completion of the movie i would like the viewer to be able to replay it. I'm able to make the movie run automatically but not able to get the replay button to work. I'm totally clueless how to get by this.
Attached is the .fla file for your perusal.
http://www.giftmastor.com/dangoh68/replay-test.zip
Any help would be appreciated =)
Best regards
Dangoh
View Replies !
View Related
[F8] Replay Button
I finished a flash and I want to add a replay button at the end that when pressed, jumps to frame 3 in scene 1. I tried doing it with a MC and typing gotoAndPlay(3) but it did not work. I also tried naming frame 3 "beginning" and adding on(release){gotoAndPlay("beginning");and it still does not work!
} Then I tried making it a button symbol. At the end of the flash the "replay" appears, but when I click on it, it disappears with both the "button" symbol and the "MC" symbol. I don't know if I'm adding the wrong code or maybe the replay should be on the main timeline or in the MC that the flash ends with.. I don't know! Until now, I've been copying and pasting working "replay" buttons from other movies and they always work but this one does not. I don't know whats going on! I'm not sure if there is some important information I'm leaving out, if so just ask and I'll explain in more detail.
Can anyone help!?! Thanks
View Replies !
View Related
FLV Replay Button
Hi,
I got this code that adds a reply button o the end of the flv's. But when I hit replay all it does is replay the audio. Does anyone have any clues to fixing this problem?
Many Thanks
Code:
trailerPreview.attachVideo(_root.stream_ns);
_root.stream_ns.play(_root.prefix+"videos/"+_root.currentTinVideo);
_root.stream_ns.onStatus = function(infoObject) {
if (infoObject.code == "NetStream.Play.Stop") {
_root.SoundPlayer.visible=false;
}
if (infoObject.code == "NetStream.Play.Start") {
_root.SoundPlayer._visible=true;
}
};
// on stage ... nsMov - Video object ... replay - Button
// w50s.flv in folder named - video
replay._visible = false; // hide the button
var ns:NetConnection = new NetConnection ();
ns.connect (null);
var nsStream:NetStream = new NetStream (ns);
nsStream.onStatus = function (infoObject){
trace (infoObject.code);
if (infoObject.code == "NetStream.Play.Stop"){
replay._visible = true;
}
};
nsMov.attachVideo (nsStream);
nsStream.setBufferTime(2);
nsStream.play(_root.prefix+"videos/"+_root.currentTinVideo);
replay.onRelease = function(){
nsStream.play(_root.prefix+"videos/"+_root.currentTinVideo);
replay._visible = false;
};
View Replies !
View Related
Replay Button
Hello everybody@!!!
This is my first time posting on this site.... well.. any forum for that matter..... but I could really use some expertise... :)
I have created an eCard for my company and everything has ran sooooo smoothly on it.... but.... there is one thing that I am struggling with, and that is the Replay Button.... (dramatic music)
I have created the button, and I have put the correct code on it to have the movie start at the beginning..... but because there is music.... this isn't working out how I would like it to....
When you get to the end of the movie the last picture comes in and fades out.... the replay button appears... and the music still plays.... (which is fine, I don't want to chop off the music at the end) but when you hit Replay.... it takes you to the beginning.... but the music is still playing.... and you can hear the music starting from the beginning as well....
So basically I need a code to have the movie stop the music and go to frame 1 and start everything alllllll over again.
Any help is appreciated!!! I have attached the code that I am currently using... and I am using Flash CS3.
Attach Code
on (release) {
gotoAndPlay(1);
}
View Replies !
View Related
AS3 Replay Button
OK, so here I am having finished my flash project and I have no reply button. I tried adding the code to the button, but had to slap myself very hard seeing as how I created a AS3 document! Now I have no idea how to make a replay button with AS3. I read some gibberish somewhere online, but don't understand it. There was a mile of code and something called a listener....wha?
There has to be a simple easy way to add a replay button like on action script 2....
If not, can someone made a step by step tutorial on how to add a replay button? Please T.T
Thanks
D
View Replies !
View Related
Replay Button
hello,
i've got a pretty simple CS3 animation. Just about at the end of the timeline a replay button appears. However, so far I can't get it to work.
In the replay button's timeline, I have defined keyframes for up, over and down states. (the button is changing images properly when I hover the mouse over it, and press down.) For the hit state, I've created a keyframe. I've also tried to insert some Action Script there. The window for the Action Script says "Current selection cannot have actions applied to it." So, my first question is: Does CS3 allow for Action Script to appear in the timeline of a button? I keep reading how people are applying AS3 in button timelines, but I can't put my AS3 in the "hit" frame's keyframe.
So, i've tried to get the button to work using the main timeline. I've given the button an instance name: btnReplay. In the first frame of the timeline, I've got AS that says:
function replayClick(event:MouseEvent):void
{
trace('inside onClick');
gotoAndPlay(1); // plays the current timeline from 1
} // end of onClick
btnReplay.addEventListener(MouseEvent.CLICK, replayClick);
Unfortunately, i get a compiler error with the first line. (I've changed my AS version to 1-2, it still gives me the error. So, I'm currently running AS3.)
The compiler error says '{' expected. I've compared this first line (i.e., "function...") with other examples that I've found, and I don't see what the source of the compiler error is.
does anyone have any advice? Thanks.
View Replies !
View Related
Replay Button
Hiya! Im a newcomer to this forum! And here is my first question!
I made a text at the end of my movie, it says "Replay?"
I made it so you can click it, but how do you make it so when you click it, it goes to the first frame of the movie? If anyone could help me with this I would be forever grateful.
Thanks!
-Yut343
View Replies !
View Related
Replay Button
facing problem for replay button. i want it to recount the number tat already counted after a go.
Code:
on (release) {
unloadMovie("1c");
if (count >= 3 ) {
count = 0;
}
count.stop();
//delete(count);
_root.gotoAndPlay(1);
}
View Replies !
View Related
Replay Button...
Hello everyone...
I don't have the time to read all post in this forum, so I (myabe) could help myself, but... I have a little problem with a animation... ( you can se my animation here: www.john5.dk/horror.html )
How do I make a "replay" button on my animation??
(When the "movie" is over, I want to click on a button, and see the "movie" again)
Hope you understand.. sorry for my bad english :S
Chris..
View Replies !
View Related
Help With Replay Button
Ok here is the deal i made a simple 4 scene flash movie and at the end i put a replay button. now heres how i did this replay button, : i made a box, took out the text and type in the word REPLAY and then attached it to the box, then i clicked the box went to the action menu and clicked on Goto, i put to go to scene 2 and type as frame and frame # as 1. now here's the problem, when i test the movie right at the end of the movie the replay button doesn't stop so the user can click and replay, it jumps right to the begining of the movie where i have the preloader instead of scene 2. whewwwwww . it can't be the action script cause i checked and its fine no error.
If anyone can help i would appreciate it. now i'm going to continue to bang my head on the wall.........
View Replies !
View Related
Replay Button
Hiya! Im a newcomer to this forum! And here is my first question!
I made a text at the end of my movie, it says "Replay?"
I made it so you can click it, but how do you make it so when you click it, it goes to the first frame of the movie? If anyone could help me with this I would be forever grateful.
Thanks!
-Yut343
View Replies !
View Related
Replay Button
facing problem for replay button. i want it to recount the number tat already counted after a go.
Code:
on (release) {
unloadMovie("1c");
if (count >= 3 ) {
count = 0;
}
count.stop();
//delete(count);
_root.gotoAndPlay(1);
}
View Replies !
View Related
Replay Button...
Hello everyone...
I don't have the time to read all post in this forum, so I (myabe) could help myself, but... I have a little problem with a animation... ( you can se my animation here: www.john5.dk/horror.html )
How do I make a "replay" button on my animation??
(When the "movie" is over, I want to click on a button, and see the "movie" again)
Hope you understand.. sorry for my bad english :S
Chris..
View Replies !
View Related
Replay Button
I would like to post this FLA file and see , perhaps someone could help me out here. I have a replay button on my "snow" scene and it seems to work but for some reason it will not remove the snow from the last frame. Is there a way of clearing that snow variable at replay? Check out the fla file for a better idea.
thank you in advance
http://www.malomedia.com/main.fla
View Replies !
View Related
Replay Button - Flash5
I have a cartoon split into 5 swf's. They obviously all load one after the other into level's 1,2,3..... I want to
put a replay movie button at the end of the last one.
On the script for the button do I need to unload the previous swf's to get to the start or can I target it directly.
Cheers,
Rob
View Replies !
View Related
Button Replay Problem
I am creating a tutorial that will allow users to move forward and backwards. There are some buttons that when pressed provide additional information. The problem is the button only seems to work once. Let's say in frame 10, I had the code below. When I go to frame 11 and come back to frame 10, nothing works.
code:
team_btn.onPress = function() {
team_btn._alpha = 40;
team_btn = true;
teamDone();
feedback_txt.htmlText = "<font face='arial'>Team information here</font>";
};
function teamDone(){
next_btn.enabled=true
}
EDIT: Added as tags - jbum
View Replies !
View Related
Replay Button Problem
I have a flash player which dynamically calls in a playlist.xml of swfs listed as separate tracks and I am trying to make a replay button on the player which will tell any of the swfs to go to and play the first frame.
I would think it would be fairly simple but turns out it isn't. Here's the code I have tried:
on (release) {
this._parent.display.image.gotoAndPlay(1);
}
The "image" is the holder mc for the clip
View Replies !
View Related
AS3 - Replay Button Issue
Hey, looking for some help.
I've added a replay button at the end of my game, that takes you back to menu screen. (simple function -> on press gotoAndStop menu screen).
But on the replay, it doesn't seem to take notice of any code on the code layer or something.
Rather than stopping on the menu screen (which has a stop(); command) it continues playing into the actual game.
I've also tried setting it to gotoAndStop on the first frame and it does the same, ignores any stop commands (aswell as any animations within movie clips) and plays right through to the start of the game.
Can anyone help?
(all the code works on the first play through btw, but on the replay 'second play thru' it seems to ignore everything)
Thanks.
View Replies !
View Related
Problems With A Replay Button
Hi guys,
I'm new to AS3 and I've got this problem which has been driving me insane...
I have an animation for new year greetings and I want to give the user the ability to replay it.
Everything works well... But the AS file won't re-execute itself when the replay button is pushed... So I'm left with an animation without any interactivity.
I've got one function doing everything at the start of the AS file and when I want to call it back in my replay function, it always comes up with an error of some kind.
Would there be a way to just re-execute the code in the AS file?
Here's the AS code.
PS : I'm using ParticleEmitter.
ActionScript Code:
public function Main()
{
stage.align = 'TL';
stage.scaleMode = 'noScale';
emitter = new ParticleEmitter( stage, false, 'TestParticle', 100, 0.2, [0.2,1], [10,100], 80, -2, 0, 'wander' );
emitter.x = stage.stageWidth / 2;
emitter.y = stage.stageHeight / 2;
addChild( emitter );
anim.pMenu.boutonFinal.onOffBtn.addEventListener( MouseEvent.CLICK, onClick );
anim.rejouer.b_rejouer.addEventListener( MouseEvent.CLICK, replay );
}
private function onClick( e:MouseEvent ):void
{
anim.animLigne.play();
anim.pMenu.boutonFinal.play();
emitter.init();
anim.play();
}
private function replay( e:MouseEvent ):void
{
emitter.stop();
anim.animLigne.gotoAndPlay(1);
anim.pMenu.gotoAndPlay(1);
anim.pMenu.boutonFinal.gotoAndPlay(1);
anim.gotoAndPlay(1);
}
Thanks for your help!
View Replies !
View Related
Replay Button In Presentation
I am trying to get a presentation to go back to slide1 and replay. Have created a Button, the button is located on my master presentation page. The button has the following:
gotoAndPlay(1);
The button does not work.
I have sound on each slide, the other problem I have having is going forward or backward and getting the sound files to execute from the beginning. If I click back button, it will display the slide, but I don't believe it starts from the very first frame because no sound.
Would appreciate any help.
View Replies !
View Related
Flash Help For Replay Button
I have a simple movie that consists of 1 scene with some layers. Each layer
contains a movie clip and there's an actions layer with a stop action. All
the clips play at once. The clip that contains the ending sequence contains
a replay button. The actionscript is as follows:
on (release) {
gotoAndPlay("Scene 1", 1);
}
With simple buttons enabled within flash, it does what is expected, but when
I save as a .swf, it goes back to the first frame of the movie clip it's
contained in, not the movie itself. How do I add a replay button to a movie
set up the way I have it?
Thanks
-mark
View Replies !
View Related
How To Make A Replay Button At The End Of An FLV - Please Help
Hi i know how to create a replay button... thats easy..
The problem that I have is that i want to create a replay button that will appear whe the .flv movie ends. i really dont know how to do this one.
So just to run through what i want tto happen:
1. the page loads and plays the movie on a progressive download
2. when the movies come to the end i want a button to fade in so that the user can choose to replay the movie they just saw...
Thanks!
View Replies !
View Related
Replay Button Troubles...
Hello Everyone!
I am in need of some assistance with attaching the actionscript to replay my movie (and the music to go along with it).
This is what I have done:
1. My button has been created. I just don't know where to put the actionscript.
2. I'm using Flash CS3.
Any response will be fine. Basically I just need to know where to put the actionscript for this replay button.
Thank you so much!!! :)
Attach Code
on (release) {
gotoAndPlay(1);
stopAllSounds();
}
View Replies !
View Related
Replay Button Not Working, AS3
Hello, I need some help with my replay button. Should be a simple fix. I'm using AS3, and have a simple file that I want to only play once and stop at the end, then the user will click on the replay button to take them back to frame 1 and replay the file again. My button name is "replayBtn", I have a "stop();" on the last frame but it keeps looping. Can someone help me with the replay code? I also have an actions layer for the code.
Thanks
View Replies !
View Related
How Do I Get A Replay Button To Work?
Hey everybody I can't figure out how to get my relay button to work. The effect that I want is for the timeline to play through and then a replay button appears at the end and on click you can replay the scene.
I have a button called replayBtn with an instance name of replay_btn.
In the actions layer I have this on the last frame-
stop();
function startOver(event:MouseEvent):void {
gotoAndPlay(1);
}
replay_btn.addEventListener(MouseEvent.CLICK, startOver);
But I still cannot get it to work.
Thanks
View Replies !
View Related
Replay Button - Is This Valid?
I have a replay button which reloads a flash movie and seems to work fine:
<<Begin Button Code>>
rewindButton.addEventListener(MouseEvent.CLICK, rewindClickHandler);
function rewindClickHandler(event:MouseEvent):void {
SoundMixer.stopAll(); // My replay button doesn't appear until all sounds have started so this works fine.
var urlRequest:URLRequest = new URLRequest("ctrmenu.swf");
var urlLoader:Loader = new Loader();
urlLoader.unload(); //<--- Is this even a valid attempt to unload the movie prior to reloading?
urlLoader.load (urlRequest);
stage.addChild (urlLoader);
}
<<End Button Code>>
This seemed a lot easier than placing a replay button at the end of the movie and using gotoAndPlay() considering that I have everything on one frame of the main timeline outside of independent movieclip timelines. However, am I asking for possible recursion trouble loading my movie into itself? I am not even sure my call to UrlLoader.unload(); is even valid since I obviously didn't use UrlLoader to load the first instance of the movie. Also, on another note, I have a question concerning the "import" usage. For instance, all of the examples that I have seen that cover the TIMER class use:
// Import the utils package for the TIMER class
import flash.utils.*;
or something similar to import the TIMER class. However, I can delete this from my movie and my timers still work fine. The same holds true for importing SOUND classes. If so, why use the import? I think I am missing something here.
View Replies !
View Related
|