First time here? First time here? Newsletter Signup Newsletter
651326 Members and growing! | Flash Jobs
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: S.Saipriya
» Title: Flash Fire Effect
» Description: This tutorial explains about how to create Fire Effect in Flash of Actionscript 2.0.I hope this tutorial helps you!
Featured Sound Loops
Image for equalize

Audio Player

» Author: Aidan Crouzet-Pascal
» Title: Falling Star
» Description: This loop is a cool sounding, E minor loop.
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: Brandan Paulin
» Description: Epic sounding loop with Brass, Percussion, Strings and Winds. This is actually part of a Loop Pack called the Coming where you can download the rest of the loops that go with it FREE from my website.