Actionscript and Flash

Ok so heres another problem im having!!

I have a text box that dynamically get information from some action script as to what is to be displayed in the box.

What i need is a way for flash to get a URL when that text feild get data in it.

Hope that makes sense??
Ideas??

[AS]
if(tBox.text == kirupa){
getURL(“http://www.kirupa.com”,"_blank");
}

[/AS]

Well…the problem with that is that the getURL will work only if the text box value = kirupa!! Correct??

What if its something else??

Also in referance to the script is tBox the name of the text box??

I dont quite get what you want to do. Can you give more details?

*Originally posted by Avi *
**
What i need is a way for flash to get a URL when that text feild get data in it.
**

you’ll have to explain yourself better

Ok, let me try and explain this a little better

I have a series of images saved on a database. I got an application that will allow me to search the database and view the images, this was written by someone else and i beleive is in javaS.

Now when an image is chosen a particular image ID (name) associated with the image is loaded into the flash text box.

So when this text box get a value, i need flash to open a url.
this is what i need to know how to do

Hope that a little clearer??

Store the URL’s inside an Array and depending on which image is chosen, tell flash to open the URL. If you can get it to display the name of the pic depending on which one is selected, then i cant see why you are having problems.