|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
i've looked everywhere to find this answer so im sorry i had to resort to asking a question on this forum, but i desperately need help with input text boxes in flash.
when i made the original site in html, here's what the code looked like. <form method=GET action="http://groups.yahoo.com/subscribe/jinxband"> <input type=text name="user" value="" size="12"><input type="image" border="0" align="abscenter" src="im/join.gif"> if the answer lies in actionscript, cool, because this next question will be easier, i think. how do you customize the style of the input text by making it have a 1px color border and no background? Any info on doing this would be very helpful. -shawn |
|
#2
|
|||
|
|||
|
Hi, you can use AS to do this. Give your text box the instance name myText. Then use this AS:
myText.border = true; myText.borderColor = 0x000055; myText.background = false; I'm not sure how wide the border is and I dont know off the top of my head how to change that. you could try resizing a movie clip placed around the text box but I think the above will be fine for you. |
|
#3
|
|||
|
|||
|
Tann,
thanks for that info! am i supposed to put just that code only into the actionscript window? nothing else? also.. i'm using a component that uses myText, so when i put it in, it changes the borders on that stuff too, can i change the name of the myText? I did and nothing happend |
|
#4
|
|||
|
|||
|
Hi, I'm not sure but it sounds like your having trouble with targetting now.
For the code I posted earlier it must be placed in the same timeline as the input text box. If you changed the name of the textbox from myText (which is just what I used for an example) then you must also change the code, i.e. if you renamed the text box to "franksDinner" then your code would be: franksDinner.border = true; And you would have to make sure your that your component is reading from the correct name for the text box. say your component reads the data like this: acomponentfunctionreading = myText.text; (that being inside the component maybe) Then you will have to change it to: acomponentfunctionreading = franksDinner.text; I havent really played with components much but I think you just set things up using the properties panel. Open that up and see what text box its linked to. If the names are different then you know what to do. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Input Text Hellpp!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|