Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make a movie wait for text to be inputed

Status
Not open for further replies.

mars21

Programmer
Feb 29, 2004
7
IE
Hi,
I need help. I have a movie loaded into a scroll pane. The user then drags a button on to this movie. I then want to ask the user to input a number. This number is needed in the movie held in the scroll pane. Passing the number is not a problem. The problem is getting it.
I would prefer not to use popups. I would also like to hide/remove the input box when done.

I'm new to Flash so I'm not sure if this is this possible. Any help or suggestions would be greatly appreciated.
Thanks
mars :)

 
Thanks pixl8r
One quick question. Will this pause the currently executing movie while waiting for the input from the new Window?
 
Thanks pixl8r
One quick question. Will this pause the currently executing movie while waiting for the input from the new Window?
mars
 
One other thing how do I call that. I have tried _root.createWindow(); with arguments but that doesn't seem to work.
 
Two things.

First make sure you have included the Window component in your library. To do this drag the component to the stage and delete it.

Second make sure you are importing the popupmanager.

Code:
import mx.managers.PopUpManager

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
Thanks pixl8r.
I decided to just load the movie that get the input on top of the current ones.
But now I have a new problem. How do I get the original movie to wait for the input before it continues? The input movie has a submit button and a input text field. How do I get the value from this movie into this original?
Is it using event listeners and if so how?
Thanks.
mars
 
Yes place a stop action in the main timeline, and then add an event listener (in the movie with the button) to the submit button that tells the main timeline to continue playing when the button is clicked.

Code:
myListener = new Object();
myListener.click = function(){
   _root.play();
}
buttonInstanceName.addEventListener("click",myListener);

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top