First time here? First time here? Newsletter Signup Newsletter
Login | Register | 651326 Members and growing!
Search tutorials
Author: edmarriner | Website: http://www.edmarriner.co.uk/

Variables - part 2 - text

hi again , this is the second part of the Variables tutorials!

So in the last tutorial we were using numbers and doing things to it . (e.g. adding , taking away elc..). in this tutorial (part 2) were going to use letters instead. if you have read my first tutorial you might of found it a bit hard to understand so i made this one super easy !.

The main aim in this tutorial is to make a user name box. these. These are VERY important if your make a action/adventure game or really any game :)

(note: thanks to Christian for providing the flash 5 codes for the first tutorail , use this instead. money = money + 10 and vice versa for -10 )


here's what YOUR going to make:

Here's something i made:




ok so lets start.

start up flash if you haven't or ready..

1) on your first frame make a text box.

Image Hosted by ImageShack.us

2) change the text box it a input text box

Image Hosted by ImageShack.us

3) now at the bottom of the input text box type " name " in to the var: box

Image Hosted by ImageShack.us

4) now on that frame give it the actionscript

stop()

Image Hosted by ImageShack.us

5) now make a new key frame

Image Hosted by ImageShack.us

6) make another text box

Image Hosted by ImageShack.us

7) this time make it a dynamic text box

Image Hosted by ImageShack.us

8) in the var: box type " name "

Image Hosted by ImageShack.us

9) now give this frame the actionscript:

stop()

Image Hosted by ImageShack.us

-------------------

you have now done the hard bit! this is just finishing off!

-------------------

10) now go back to the first frame and make a button.

Image Hosted by ImageShack.us

11) give it this actionscript:

on(press) {
play()
}

Image Hosted by ImageShack.us

12) on the second frame you could put some static text saying your name is:

Image Hosted by ImageShack.us

13) the same could be done on the first frame saying type your name here:

Image Hosted by ImageShack.us

i hope this was help-full if you have ANY flash problems please do feel free to ask them at ed@edmarriner.co.uk

ed

» Level Basic

Added: 2005-02-05
Rating: 4 Votes: 16
(10 being the highest)
» Author
english , like flash photoshop,dreamweaver,fireworks and FLASHKIT :)
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!

Comments

  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: Inocreato
» Title: RaiseTheBlocks
» Description: Raise all the blocks to win the game
Featured Sound Loops
Image for equalize

Audio Player

» Author: TomCat Carty
» Title: The Wood
» Description: Just a little game ending or it can maybe be looped. Recorders with music box and percussion to give the feel of well, I don't know, the woods? Free to use, just credit me. thank you
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: Davisigner
» Description: Hmm... what to say about this one? It's reminiscent of the closing notes of the opening music from the Three Stooges done in a church organ style with a closing cymbal crash. I'll give this one away gratis, but feel free to check out my free loops and potential upcoming license-mandated ones over in the respective part of Flashkit.