# Actionscript and Flash

**URL:** <https://forum.kirupa.com/t/actionscript-and-flash/25752>\
**Category:** flash\
**Created:** [July 16, 2003, 5:35am UTC](https://forum.kirupa.com/t/actionscript-and-flash/25752 "2003-07-16T05:35:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Avi](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@Avi](https://forum.kirupa.com/u/Avi)\
**Post date:** [July 16, 2003, 5:35am UTC](https://forum.kirupa.com/t/actionscript-and-flash/25752/1 "2003-07-16T05:35:53Z")

</div>

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??

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 16, 2003, 5:46am UTC](https://forum.kirupa.com/t/actionscript-and-flash/25752/2 "2003-07-16T05:46:53Z")

</div>

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

[/AS]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 16, 2003, 5:54am UTC](https://forum.kirupa.com/t/actionscript-and-flash/25752/3 "2003-07-16T05:54:15Z")

</div>

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

What if its something else??

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 16, 2003, 2:10pm UTC](https://forum.kirupa.com/t/actionscript-and-flash/25752/4 "2003-07-16T14:10:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 16, 2003, 2:16pm UTC](https://forum.kirupa.com/t/actionscript-and-flash/25752/5 "2003-07-16T14:16:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 16, 2003, 2:37pm UTC](https://forum.kirupa.com/t/actionscript-and-flash/25752/6 "2003-07-16T14:37:45Z")

</div>

> \*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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 17, 2003, 5:40am UTC](https://forum.kirupa.com/t/actionscript-and-flash/25752/7 "2003-07-17T05:40:12Z")

</div>

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??

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 17, 2003, 2:38pm UTC](https://forum.kirupa.com/t/actionscript-and-flash/25752/8 "2003-07-17T14:38:50Z")

</div>

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.
