|
-
Unable to move to the next scene in a flash game
Hello there,
I'm quite new in adobe flash and my teacher just roughly go through one flash game and expects us to be able to make a flash game out of ourselves.
I've used one of the hangman source code online and i couldn't get it to work.
I want to move from hangman 1.2.1 to hangman 1.2 but i can't do that because the button just won't work. By the way, i'm using adobe flash cs5.
http://www.bezzmedia.com/swfspot/tut...8/Hangman_Game
this is the original source code.
this is my work so far.
http://www.mediafire.com/?87zb17n3an1jlsh
i need some reply asap as my project submission is due 3 days later.
Thanks in advance!!
-
Prid - Outing
If I'm correct, you can't use Frame Label as the second parameter, because the syntax for gotoAndPlay is as following:
gotoAndPlay(scene, frame);
to change "hangman 1" to 1
I am back, guys ... and finally 18 :P
BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS
-
Hey nig_13! thanks for the help!
it worked! now, i am able to move the scene from hangman 1.2.1 to hangman 1.2, however, the movieclips used in hangman 1.2.1 are still inside. what do you suggest me to use to remove the movieclip whenever i click the button?
i've used:
back.onPress = function() {
//Reset the hangman graphic to the first frame
gotoAndPlay("hangman 1.2", "1");
//loop through all of the letter holders of the answer on the screen and delete them
for (curindex=0; curindex<length(answer); curindex++) {
//if the current position in the answer isn't a blank, remove it
if (answer.charAt(curindex) != ' ') {
{removeMovieClip('holder'+curindex);
removeMovieClip('missgraphic');
removeMovieClip('guessletter');
removeMovieClip('letterholder');
removeMovieClip('displayletter');}
}
}
};
}
and i can only remove everything except the letters for the user to choose.
Thanks so much for your help again.
-
Prid - Outing
for the movieclips that aren't loading, try unloadMovie() instead
I am back, guys ... and finally 18 :P
BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS
-
I've done unloadmovie() as well. however, the error still exist.
for example, the question is: _ _ _ _ _
and my letters is A-Z
when i add in the command: unloadMovie('guess'+String.fromCharCode(curindex+6 5));
it will just delete the first 5 letters and the other 21 letters will remain.
do you have any suggestions for this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|