PDA

View Full Version : Using Dynamic Text


seminole14
07-14-2004, 04:18 AM
Does anyone know how to use a dynamic text box to move to another part of the movie? For instance, if I was to type "red" in the dynamic text box, could I write an "If" statement to say, "If box1 = "red" Then goto scene 2"? Would this work? Thanks!

boyzdynasty
07-14-2004, 04:23 AM
does the box1 have to be in scene 2?

it doesn't make any sense to me now...but you really need a dynamic text field to check if the text = "red"?

Can't you just use a variable?

If you want the user to input the word red, you will need an input text field.

seminole14
07-14-2004, 06:07 PM
Okay, well, if I define variable box1 = "red" in scene 1, and then have an input text field in scene 1 so the user can put whatever word in they want, how can I write the AS so that if and only if the user types in "red", it will trigger the next scene? I'm sorry if that isn't clear, I guess I need to read more about scripting. Thanks for any thoughts though!

boyzdynasty
07-14-2004, 08:34 PM
if you have a set of specific words, i would use a drop list / combo box.

When the user selects whatever color, it will call a function to check the value and perform the necessary step.

....

If you have an input box, and the user types in red...he will have to click a button (ie submit) for an action to occur.

Or you can have an onEnterFrame that constantly check the values, which I think is ineffiecnt.

P.S.
Just making sure...are you working w/ FMX or FMX2004?

seminole14
07-14-2004, 10:09 PM
That's a great idea, the drop list. I'll try playing with that. It's MX2004. Thanks a ton!