# Validation?.. in flash if

**URL:** <https://forum.kirupa.com/t/validation-in-flash-if/15953>\
**Category:** Uncategorized\
**Created:** [March 19, 2003, 7:20pm UTC](https://forum.kirupa.com/t/validation-in-flash-if/15953 "2003-03-19T19:20:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lastdon](https://avatars.discourse-cdn.com/v4/letter/l/9f8e36/32.png) [@lastdon](https://forum.kirupa.com/u/lastdon)\
**Post date:** [March 19, 2003, 7:20pm UTC](https://forum.kirupa.com/t/validation-in-flash-if/15953/1 "2003-03-19T19:20:02Z")

</div>

ok questoin

Lets say U have some values in flash

well under instance name i am using myLVS. load var thing

anyways

what i want to do using someting

IF no store number is in,  
something poping up, or writting  
perferably pop up saying

Please enter store number…

is there a way to do this??

so basically they can only pass the form, if a store number is present if not they have to enter a store number…

---

<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:** [March 19, 2003, 10:47pm UTC](https://forum.kirupa.com/t/validation-in-flash-if/15953/2 "2003-03-19T22:47:34Z")

</div>

You could either check that there is a value in the store number field and if there is you assume it’s correct, or you could load all your store numbers into an array and then use a for statement to check the entry against the array and look for a match.

---

<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:** [March 19, 2003, 11:16pm UTC](https://forum.kirupa.com/t/validation-in-flash-if/15953/3 "2003-03-19T23:16:35Z")

</div>

well lemme clearify a bit about this…

from Flash it’s going to ASP and from ASP to ACCESS mdb file…

I was always thinking, that i need to put a javascript in the ASP file, and IF doesn’t recongnize the number requested it will pop up a message saying Sorry please enter new number or something?

is that do-able?

since i am kinda of anew bie to flash,  
can u guide me on the command to check

if there nothing inthe Store text field '( i am using instance names)  
that a new movie layer or somethig plays and says  
Enter again?

sorry for bugging.

---

<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:** [March 21, 2003, 3:33pm UTC](https://forum.kirupa.com/t/validation-in-flash-if/15953/4 "2003-03-21T15:33:59Z")

</div>

I’m don’t know a lot about server side scripting, but i’m guessing you chould return a boolean value back to flash from your scripts that is then analized and action is taken based on if it is true or false.
