-
Text Boxes! how do they make the cursor flash and erase whats currently in the box???
Please help me out if you can. I have wondered this for so long now. How do they make it so when you click on a text box w.e is in it disapears so you can type your own stuff. as well as the cursor flashes?? can someone help me out please. Thanks.
Matt
-
Who, What, Why ... ?
The cursor flashing is an automatic thing, you don't control that (or am I mistaken?)
As for your other question, once you have created your input text field, if you type some message inside it then export the movie, the message will show up. When the user click in the field the message will dissapear so they can type they're own stuff.
Regards,
-
Ok wait I dont really understand that?
-
Senior Member
i dont think what he suggested will work but he is bassically saying create an input text box.. type the content you want inside of it
export it..
now test it out..
the message should be within the text box.. but when you click it wont disappear.. you'd have to highlight it and type over it...
hmm im to lazy to figure this one out tonight.. sorry
-
Who, What, Why ... ?
You need to make the text box an input text field. This is done by changing the properties of the field in the properties panel. Once you have created your text field, type something in the area and export your movie.
You will see your text in the field area, give the field focus and your text will disapear and your cursor will be sat in the field flashing for you.
Regards,
-
Monkey Moderator
Fraggs, that is not true.
If you create an input text field with some text in, it will not automatically be deleted when you click inside it!
You will need some code to handle that for you.
If your input text field is called "inputTxt", this code will set an initial text for the box and clear it when the user clicks inside it (unless the text has been changed by the user).
code:
defaultTxt = "<insert something here>";
inputTxt.text = defaultTxt;
inputTxt.onSetFocus = function(){
if (this.text == defaultTxt){
this.text = "";
}
}
www.lexicon-design.co.uk
If we aren't supposed to eat animals, then why are they made of meat?
If Vegetarians like animals so much, why do they eat all their food?
-
Who, What, Why ... ?
It worked for me.
Perhaps my version is broken or something.
-
Flashkit Veteran
Yea lex is right, but my flash had done something like this before too, but after I saved the file and then tried it it worked fine (it was pissing me off)
-
Flashkit Veteran
Hey lexicon, I was just checking your site, did you make that top banner it is a really good display of animation
-
Monkey Moderator
my site doesn't have a top banner
www.lexicon-design.co.uk
If we aren't supposed to eat animals, then why are they made of meat?
If Vegetarians like animals so much, why do they eat all their food?
-
Flashkit Veteran
yea it does, the html site
-
Monkey Moderator
umm yes i made it in photoshop. it definitly does not animate tho It helps to have a girlfriend who is fantastic at photography, gives a good base to create graphics from She is superb at photo's of textures. I just mix em up in photoshop using different layer effects.
Last edited by Lexicon; 10-10-2004 at 03:38 PM.
www.lexicon-design.co.uk
If we aren't supposed to eat animals, then why are they made of meat?
If Vegetarians like animals so much, why do they eat all their food?
-
Flashkit Veteran
Originally posted by joejoe2288
Hey lexicon, I was just checking your site, did you make that top banner it is a really good display of animation
Animation as in graphics but it is really cool
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
|