|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
textbox
hello,
this is the first time i have used form stuff in a flash app.... where can i find a textbox... i looked in the form elements box but there is everything but a textbox... |
|
#2
|
||||
|
||||
|
You can make your own textbox by selecting the Text Tool and dragging it across the stage while pressing the left button on your mouse and holding it down. After that, right-click on the text field and go to properties and select "input text." There is also an option in there to place a border around the textbox. Below is an fla to help get you started.
|
|
#3
|
||||
|
||||
|
thx
thank you for that post that work... but i ran into one more question... i have 1 textbox and a button next to it... what i am trying to do is... send what they put in the text box to a different page with a string like this
http://www.website.com/test.asp?promocode= " this is what was in the textbox " how can i do that.... thanks |
|
#4
|
|||
|
|||
|
Hi, in the text box properties, make sure its dynamic and give it a variable name, say "inputBoxText" (without quotes). Now left click on the button and open the Actionscript panel. Enter
on(release) { getURL("http://www.website.com/test.asp?promocode="+_root.inputBoxText, _self); } That should do it (i think) |
|
#5
|
||||
|
||||
|
nope
that didn't work... its not in the main animation its in symbol 2..... does that make a difference.... becuase i noticed in the string +_root
|
|
#6
|
|||
|
|||
|
ok well try:
on(release) { getURL("http://www.website.com/test.asp?promocode="+inputBoxText, _self); } that should work as long as the input text box and the button are in the same timeline. |
|
#7
|
||||
|
||||
|
nope
this is what i get when i use that
_level0.instance1.inputBoxText thats what shows up in the browser |
|
#8
|
|||
|
|||
|
ok
on(release) { getURL("http://www.website.com/test.asp?promocode="+_parent.inputBoxText, _self); } This will try in the parent. if that doesnt work then make sure that the dynamic text box has an instance name select the word inputBoxText in the above (within the AS panel) and then click the target button. Navigate to your text box. once found click ok. Replace the text box name with the text box variable name. That will definately do it. make sure that if you do this last option that you take off the "_parent." first. |
|
#9
|
||||
|
||||
|
ok
ok that still didn't work.... but i just made a video clip to show you my settings in the flash ap... its attached to this post
|
|
#10
|
|||
|
|||
|
Hi, yer I couldnt view your clip because I dont have the right codec. I found out what it is but I cant be bothered getting it and installing it. so instead i made an example. its the attachment. theres a single movie clip in root. inside that is a text box and a button. it has the code i posted earlier. to me it works.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > textbox |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|