|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
capturing input text for movie clip
OK, I'm going to start from scratch on this one... my troubleshooting has totally confused me.
In one scene I have an input text box, variable name "inputTextBox". Using the onRelease command and a button I want to capture this text for use later on. This is what I have tried using: on (release) { _root.textVar = _root.inputTextBox.text; gotoAndPlay("Scene 2", 1); } I want to use this text in a dynamic text box contained in a movie clip (instance name "movie1") in the next scene. I've tried calling the text in every imaginable way to no avail. What AS or variable string do I need to use in the movie clip to get this text to show up? Any help appreciated. Last edited by pipspeak : December 17th, 2003 at 01:25 AM. |
|
#2
|
|||
|
|||
|
Hi, not sure if that is a problem with passing the variables between scenes.
If that is a problem then this may be a solution: http://www.flashkit.com/board/showt...threadid=299918 - Faq #10 Modified to something like: on (release) { _root.createEmptyMovieClip("varpasser", 10); varpasser.textVar = _root.inputTextBox.text; gotoAndPlay("Scene 2", 1); } then in scene 2 you can read it with: mynewtextbox.text = _root.varpasser.textvar; That should do it (at least in my head) |
|
#3
|
|||
|
|||
|
Thanks for the suggestion... but I couldn;t get that to work either. I attached an fla file that illustrates basically what I'm trying to do. Input text in one scene, use it in a movie clip in the next scene. I'm sure I'm missing somethign obvious!
|
|
#4
|
||||
|
||||
|
I modified your fla and got it to work.
|
|
#5
|
|||
|
|||
|
Great, thanks... I noticed a bunch of other errors in the file caused when I pared it down. Oops. I also got it to work by simply entering the variable "_root.inputTextBox" as the dynamic text box's variable.
Now I have a new problem... is it possible to render the dynamic text in some way to avoid the rather lumpy movement of the movie clip? As it is now, the dynamic text is unaliased and moves erratically. (New, functioning, file attached) |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > capturing input text for movie clip |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|