A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Checking multiple var's with one click?

  1. #1

    Checking multiple var's with one click?

    I have 4 variables (text fields) that need to be checked with one button click. I've wasted a good hour and a half trying to figure this out.

    I had to do this hundreds of time when i was using flash 4 but haven't done it in 2 years. Well now i need to do it in flash mx and can not get it to work.

    Help Please


  2. #2
    Peace and good Vibes Pippomusic's Avatar
    Join Date
    Jan 2002
    Rome, Italy
    hello drop
    peace to you too....

    try building a function:

    checkVarz = function() {
    // check var 1
    // check var 2
    // etc...

    then, on the onPress event:

    on (Press) {

    that's the simplest way
    but there could be million better ones...


  3. #3
    Thanks Pippomusic but the function junk was giving me a head ache so i went and ate some lunch sat back down and redid my code... this is what I came up with and it works in case anyone was curious

    on (release) {
    if (a1 eq "30000"| a1 eq "30,000" && a2 eq "1000"| a2 eq "1,000" && a3 eq "9241"| a3 eq "9,241" && a4 eq "294.40") {
    } else {

    Thanks again though.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center