Monster Racer Rush
Select between 5 monster racers, upgrade your monster skill and win the competition!
4.23 / 5.00 3,881 ViewsBuild and Base
Build most powerful forces, unleash hordes of monster and control your soldiers!
3.93 / 5.00 4,634 Viewsok im making a game.(called dash, want any info on it go to my userpage) and I just finished a preview. But i wanted to make a replay button. Problem is, i dont know the action script code.
And dont say "on(release){ gotoAndPlay(1)}; " because I want a replay button to replay the whole video! not just that one scene.
Please help(btw the flash doesnt have a preloader, w/e)
GamerTag: MEGAxCptnWalrus
and I quote your user page:
"09/06/08 Created NG account.
09/06/08 Still hasn't contributed anything to the site, so here's an advertisement:"
if your trolling, you are doing a poor job. The gotoAndPlay code would work, because the nextscenecode would be uneffected, as it is on a different frame.
At 9/6/08 06:54 PM, lpfann2 wrote: "on(release){ gotoAndPlay(1)};"
Replace the "gotoAndPlay(1)" with "gotoAndPlay("Scene 1", 1)".
Unless you've changed the name of the scene.
Doomsday-One, working on stuff better than preloaders. Marginally.
At 9/6/08 07:00 PM, Conlor wrote: and I quote your user page:
"09/06/08 Created NG account.
09/06/08 Still hasn't contributed anything to the site, so here's an advertisement:"
if your trolling, you are doing a poor job. The gotoAndPlay code would work, because the nextscenecode would be uneffected, as it is on a different frame.
to the "09/06/08 Created NG account" its cuz i had an account before, then I created a Grounds Gold Account just now so i could post this thread.
and i dont really get what your saying gotoAndPlay(1) only replays that scene its on so it woudn't work.
GamerTag: MEGAxCptnWalrus
How could you have even started the game without knowing how to code a simple button?
Something smells like copypasta....
Although practicality beats purity.
Errors should never pass silently.
In the face of ambiguity, refuse the temptation to guess.
At 9/6/08 07:20 PM, Doomsday-One wrote:At 9/6/08 06:54 PM, lpfann2 wrote: "on(release){ gotoAndPlay(1)};"Replace the "gotoAndPlay(1)" with "gotoAndPlay("Scene 1", 1)".
Unless you've changed the name of the scene.
it still wont work. " on(release) { gotoAndPlay("Scene 1", 1); } " is the code right? because i didnt change the name of the scene or anything so it should be working but it isn't
GamerTag: MEGAxCptnWalrus
At 9/6/08 07:38 PM, Montycarlo wrote: How could you have even started the game without knowing how to code a simple button?
Something smells like copypasta....
ya..I haven't started the game yet. I know how to code a button, just not a replay button
"on(release) { blah blah blah } whatever. i just dont know the code for replaying the whole movie. I'm obviously not starting the game till i like almost mastered actionscripting
GamerTag: MEGAxCptnWalrus
At 9/6/08 07:39 PM, lpfann2 wrote: it still wont work. " on(release) { gotoAndPlay("Scene 1", 1); } " is the code right? because i didnt change the name of the scene or anything so it should be working but it isn't
I forgot to add _root. for you.
on(release) { _root.gotoAndPlay("Scene 1", 1); }
That should work, unless you're working in AS1 or AS3.
If you're using Flash 8, then it will most likely be fine.
If not, tell us what error messages come up.
And make sure it is on the button, not the timeline!
Doomsday-One, working on stuff better than preloaders. Marginally.
At 9/6/08 08:00 PM, Doomsday-One wrote:At 9/6/08 07:39 PM, lpfann2 wrote: it still wont work. " on(release) { gotoAndPlay("Scene 1", 1); } " is the code right? because i didnt change the name of the scene or anything so it should be working but it isn'tI forgot to add _root. for you.
on(release) { _root.gotoAndPlay("Scene 1", 1); }
That should work, unless you're working in AS1 or AS3.
If you're using Flash 8, then it will most likely be fine.
If not, tell us what error messages come up.
And make sure it is on the button, not the timeline!
i use flash CS3 and it doesnt work. but there isn't any error code. Weird. how does it look in the actionscript, like this?:
on(release) {
_root.gotoAndPlay("Scene 1", 1);
}
GamerTag: MEGAxCptnWalrus
At 9/6/08 08:08 PM, lpfann2 wrote:
i use flash CS3
GAH! No one can help you, we mostly use AS2.
At 9/6/08 08:15 PM, Conlor wrote:At 9/6/08 08:08 PM, lpfann2 wrote:i use flash CS3GAH! No one can help you, we mostly use AS2.
WHAT?!? are you telling me NO one uses CS3 (or as you guys call it AS3)
THATS bullshit. Theres gotta be someone else
GamerTag: MEGAxCptnWalrus
At 9/6/08 08:27 PM, lpfann2 wrote: WHAT?!? are you telling me NO one uses CS3 (or as you guys call it AS3)
THATS bullshit. Theres gotta be someone else
Seeing as you don't know how to code in AS3 it wont affect you if you'd just change it to AS2 via File > Publish Settings.
At 9/6/08 08:41 PM, Kuoke wrote:At 9/6/08 08:27 PM, lpfann2 wrote: WHAT?!? are you telling me NO one uses CS3 (or as you guys call it AS3)Seeing as you don't know how to code in AS3 it wont affect you if you'd just change it to AS2 via File > Publish Settings.
THATS bullshit. Theres gotta be someone else
oh ya, i have my action script as 2.0
but it still doesnt work!
GamerTag: MEGAxCptnWalrus