Simple (?) problems with & quot; IF & quot; instructions and variables! Help, please...

Nested in a couple of layers down in my film, I have a form with 2 fields and a check box and a submit button (the submit button is actually just a clip rather than any actual server-side).

What I want TO ask you is for the clip NOT to play unless THE 3 elements have been 'used', that is to say: BOTH fields have SOME copy and for the check box.
If all THE 3 criteria HAVE been met, so the video should play.

Before we get to this form, 3 variables are assigned additional in the timeline, a couple of levels:
step4a = "";
step4b = "";
step4e = 'off ';


Back in my form, 2 blank fields have 'Var's called step4aName and step4bEmail.
By clicking on the button box checkbox sets the step4e variable to 'on '.

The following code is related to the Submit button:
on (release) {}
FIRST VARIABLE HAS THE VALUE FIELD FIRST MATCH
_parent._parent.step4a = step4aName;
SECOND VARIABLE HAS THE SECOND MATCH FIELD VALUE
_parent._parent.step4b = step4bEmail;
ORDERS OF TRACE FOR THE ERROR CHECKING
trace ("step4a =" + _parent._parent.step4a);
trace ("step4b =" + _parent._parent.step4b);
trace ("step4e =" + _parent._parent.step4e);
DON'T PLAY THAT CLIP IF THE TWO FIELDS ARE FILLED AND THE BOX IS CHECKED
If ((_parent._parent.step4a! = "") & &)
(_parent._parent.step4b! = "") & &
(_parent._parent.step4e == "on")) {
This.Play ();
}
}


When I test the movie, I get the following output (which is what I expected, implying that everything is fine):
step4a =
step4b =
step4e = off


Now what happens when I run the present, it is that the clip will be, quite rightly, NOT play, if I just hit send without do something else first. But the problem comes when I ONLY check the check box and then click on submit, because then the FACT clip play, when he's NOT supposed to. Why? My two fields ARE still empty as prove it track orders that I issued when I hit the submit button - they say again:
step4a =
step4b =


To further complicate things, if I AM typing something in the 2 fields, but I then delete what I typed, then the clip will be properly NOT play (with the check mark). The two issued variables still say:
step4a =
step4b =

(And if I type text in 2 text fields, then 2 outlines variables IS updated to contain the text that corresponds to what I type in.)

So according to the output that I see, how I put it together work SHOULD , but it's not.

So to summarize, the problem is, if I LET my 2 fields completely empty, as it appears on the screen, then my error checking does not work.
If I type something in my fields, then DO the virgins by deleting the text in there, then my work of error checking as it should.
What is happening with this?

Hi Brett, I don't know what version of flash/as (this applies only to later versions) you use, but you may first consider place this code in a keyframe on the timeline and use
pathto.button.onRelease = function() {}
code
}
and by changing your fields to a syntax that is similar.

Possible your error checking does not work it is because NULL values and ' ' values differ... when the first load of the text box the value NULL is that no value has been entered. The process of adding text and removing leaves a value of ' '-c' is an empty string which meets your requirements.

to resolve this problem, you could add NULL to your state of health, for example

If (((_parent._parent.step4a! = "") OR (_parent._parent.step4a.) (= NULL))
&&
((_parent._parent.step4b! = "") OR (_parent._parent.step4b.) (= NULL))
&&
(_parent._parent.step4e == "on"))

or of course if you just use a newer version of flash test

my_Text.length > 0

I hope this helps

Sam

Tags: Adobe Animate

Similar Questions

  • Hello! I have an Acer Aspire Switch 10 and I have problems with my device audio, high fidelity. Help, please.

    This morning, my sound devices have been working well. I could still hear the sounds of him. Before blocking down, I put the volume down to 0. When I opened it again this afternoon I couldn't hear all the sounds more. Help, please!

    I have Apowersoft_AudioDevice, Intel ESS Audio Device (WDM) and Audio Codec from Realtek I2S.

    Press the logo windows + X

    Select Device Manager

    on the Device Manager, expand "sound, video game".

    check if a yellow exclamation is present

    Double-click any device available and check in the windows pop up, if the status of the device is ok, or any error is present.

    Please also download and install this:

    http://global-download.Acer.com/GDFiles/driver/audio/Audio_Realtek_0.22_W81x86_A.zip?acerid=63543086...

    then restart volume and try to play any video or audio from youtube file.

  • problem with the netsh wlan command from. Help, please

    Hello Mr. met,

    I have problem with my laptop as wfi hotspot.
    It shows an error while startin.
    the error said... "" the device or resources are not in correct state to do "
    I don't know why this error is coming.
    I am attaching the picture of the error.
    I used the command "netsh wlan start hostednetwork"...
    To start the wifi network...
    Thank you..

    Hi Eddy,.

    Sorry for the delay in response.

    You can refer to these discussions that could help you with password in mind.

    See Anshul Khanna replied on 26 May 2013 and this thread

    I hope this helps.

  • do phone microsoft to say there is a problem with the download of updates and offer help

    I got a phone call from a woman with an Indian accent, saying: I had a problem downloading of updates and I had to go online and she would help me. It's a real call from microsoft or some sort of a scam

    It's a scam.

    http://www.Microsoft.com/security/online-privacy/msName.aspx

    http://www.Microsoft.com/security/online-privacy/phishing-scams.aspx

    http://www.Microsoft.com/security/online-privacy/avoid-phone-scams.aspx

    http://blogs.msdn.com/b/securitytipstalk/archive/2010/03/09/Don-t-fall-for-phony-phone-tech-support.aspx

  • Problem with the software. Treo 680. Help, please

    Hello. I am of the Republic - a country of Eastern Europe. I have a friend in the United States and he send 2 weeks ago, a mobile - unlocked Palm Treo 680. Maybe in Moldova is this Treo 680 is the only mobile Palm they are not popular in our country, no one has seen before this mobile. When I received it I try to install in many programs, games, utilities... Before installing different programs, it is Treo680 - 1.12 - ROW. but he is now -/13/R01.92- (glance at the screen) [URL =http://img196.imageshack.us/i/p9303898.jpg/] [IMG]http://img196.imageshack.us/img196/3710/p9303898.jpg[line] [url]

    It doesn't work so well that before, are numerous shifts. I tried to reinstall the update of 1, 12-LINE, but I can't. Please help me... What can I do now?

    Where do you have the ROM update file? I have not seen a RO1.92 update. What is a hacked ROM update? The phone has been hacked?

    Here is the link for the update for the Treo 680 unlocked using a memory card to install. The link of update synchronization does not work right now.

    http://KB.Palm.com/wps/portal/KB/na/Treo/680/unlocked/solutions/article/10837_en.html

    This is the page you got the download from?

    I see that there is no serial number in your screen shot, which is not normal.

    You can try a hard reset to fix the problem. The hard reset will erase all data on the device. Make sure that synchronize you with PC to back up your data.

    Click on the following link for the Web page of kb.palm.com for the article about reset procedures

    http://www.Palm.com/cgi-bin/cso_kbURL.cgi?id=887

    When you update the ROM, you cannot revert to a previous version. That ususlly results in a 'brick' phone

    For reference purposes, click the following link to the support page for your device on the kb.palm.com Web page.
    http://KB.Palm.com/wps/portal/KB/na/Treo/680/unlocked/home/page_en.html

    There are links on the page the user Troubleshooting Guide, how to, downloads, etc.

  • problem with kb2347290 impossible to install error ox8050800x help please

    Cannot install kb2347290-error message 0x8050800x

    tried several things without success - can help you

    Hi Woollygm,

    ·         The issue is limited to a specific update?

    ·         Did you do changes on the computer before the show?

    I suggest you to consult the article in the Microsoft Knowledge Base and check.

     

    You cannot install some programs or updates

    http://support.Microsoft.com/kb/822798

    Let us know if that helps.

  • I have a problem with the Narrator, repeating words and phrases.

    original title: NARRATOR in WIN7 SUPPORT

    I use windows7.  The annoying Narrator sometimes voices repeat words and phrases.  I also need help, change of voice and using Narrator to read aloud my text book I downloaded.  It is in PDF format.

    Original title: Narrator sometimes repeat words and phrases

    Hello

    Thanks for posting your query in the Microsoft Community.

    You have a problem with the Narrator, repeat words and phrases. It can be difficult when something that is important to you does not work as expected. It's pretty simple and we're here to help you solve the problem. We work as a team and get this sorted out.

    Please answer these questions-

    (1) exactly where you run the Narrator?

    (2) the Narrator extends from a particular document?

    (3) have you made changes on the computer before the show?

    I would like more information about the issue.

    Method-

    I wish that return you the items for assistance-

    Narrator doesn't read what I expect him

    http://Windows.Microsoft.com/en-us/Windows7/Narrator-doesn

    Hear text read aloud with Narrator

    http://Windows.Microsoft.com/en-us/Windows7/hear-text-read-aloud-with-Narrator

    Let us know if you need assistance regarding the issue. We will be happy to help you. We at Microsoft, strive for excellence and provide our customers with the best support.

    Thank you.

  • Are there problems with OS 10.11.4 and opening?

    Are there problems with OS 10.11.4 and opening?

    Upside down images in the mode list. There is no hope of any problem opening fixing. There will be no further development.

  • Problems with different e-mail addresses and the different Apple ID

    Hi, I have some problems with the different Apple ID and e-mail addresses connected to them, and I hope someone can help me in what to do.

    First a primer on my Apple ID

    ***@me.com - it's my account General iCloud (backup, iMessage, Facetime etc.).

    ***@losmail.no - my iTunes/App account (purchase and download music, app, etc..)

    ***@me.com: I have no problem connecting to this account (appleid.apple.com, iCloud.com etc etc..)

    ***@losmail.no: I have no problem connecting to this account in iTunes/App Store. However, I can not connect on appleid.apple.com with this account because he asked me to check the email address. However, this e-mail address use a messaging service that doesn't work anymore, so I can't check it out. Because it is a private messaging service, I want to change the Apple ID on my account @gmail.com.

    I believe, however, that the account @gmail.com has been connected to the account @losmail.no because I received my shopping etc. of my account @losmail.no sent to ***@gmail.com. These recipes also "Apple ID: * @gmail.com. When I connect to the account, however, use ***@losmail.no. However, an I said, I want to log on by using ***@gmail.com.

    What is strange is that in iTunes / App Store, I can connect with ***@gmail.com. However, this is not the same account as ***@losmail.noand previous purchases / comments etc. are not available. It's strange because said revenues (Ref. above).

    An other ting that indicates that the Apple ID where I use ***@losmail.no once was connected to ***@gmail.com, is what happens when I try to log in to ***@gmail.com to appleid.apple.com. Then, I get a message saying that the e-mail address must be verified. I can write the code sent to the ***@gmaiI.com, but it is said then that this e-mail address is already is used by another Apple ID, so it cannot be verified.

    So I guess my question is, basically, how I can change the ID of the ***@losmail.no to ***@gmail.com Apple when I can't access the account losmail, but the appleid.apple.com tells me that I need to check this email address.

    Best regards

    Philippe

    Hi phillla,

    Thanks for all the details with your accounts.

    Can be difficult to have more than one Apple with several e-mails all mixed together.  If an email is used with another Apple ID, for example, that e-mail can be used to create a new Apple ID or rename an old.

    The analysis of what you seem to have however...

    Your purchases are with your *@losmail.no Apple ID, but the emails for this go to your *@gmail.com email address.

    *@gmail.com is the primary e-mail address for your Apple ID *@losmail.no.

    You can connect to iTunes or manage your page ID with *@gmail.com Apple says it's an Apple ID on its own.  As an email address can only be verified for an Apple ID, which means that he must check with your *@losmail.no Apple ID and cannot be verified with *@gmail.com.

    You say you can not connect on appleid.apple.com with *@losmail.no you will need to check the email address.  You have a relief attached to this ID e-mail? This is the email that would be used to recover.   You receive your check or reset email - Apple Support

    Bottom line, you want to change your primary Apple ID but outdated to *@losmail.no to *@gmail.com, you must first rename *@gmail.com to something else and delete this email of all codes from Apple as well.  Then follow the link above to get access to *@losmail.no and control so that you can rename it.

    Best regards.

  • Problems with Windows 10 screen standby and sleep mode

    After downloading 10 Windows on my desktop all-in-one HP, I have problems with the display of standby and sleep mode.  When the computer turns off, he doesn't have the bright screen.

    After the upgrade to Windows 10, some laptops have experienced one or more of the following symptoms:

    • > Power LED remains lit after stopping
    • > Computer enters standby or hibernation.

    HP recommends that customers see these symptoms first update the graphics drivers by removing and then reinstalling the hardware in Device Manager.

    See the section updating the graphics driver from where can I find drivers Windows 10 and software for my model?

  • Error - there is a problem with the external Setup program and it must be closed when you try to install windows updates

    Original title: How can I fix external MSI?

    When I try to download the updates, the error message says there is a problem with the external Setup program and it must be closed.  Updates will not be installed.  Anyone know how to solve this problem...?

    Hi John,.

    ·         You are able to install other applications on the computer?

    It seems to be a problem with the corruption of the .net framework. I suggest trying to repair the .net framework on the computer and see if you can install the updates.

    http://support.Microsoft.com/kb/923100

    Hope the helps of information.

  • I'm having a problem with my Windows Media Player and its automatic scoring system.

    I'm having a problem with my Windows media player and its rating system. Usually in Windows Media Player the blue side star system only rate once internet-based critical car. Then after playing constant song change the blue stars. However, on my Windows Media Player ratings only to have automatically scored only once and every time I play the song the side remains the same.

    Whenever I play a song in Windows Media Player 11 it rates the song but when I play the song again the rating remains the same. It auto-taux only the song once. How can I fix it?

    chk this link

    How are ratings used in Windows Media Player?

    http://Windows.Microsoft.com/en-us/Windows-Vista/how-are-ratings-used-in-Windows-Media-Player

  • Downloaded and paid of Minecraft and having problems with Java, Anti Virus Scan and Windows Update - error code 800F081F

    Downloaded and paid of Minecraft and having problems with Java, Anti Virus Scan and Windows Update - error code 800F081F

    Would you advice, thank you.

    Hi Hugo,.

    1. what anti-virus software you have installed in the computer?

    2. What is the full error message/code?

    3. the issue occurred after you install Minecraft?

    4. are you able to play Minecraft without any problem?

    5. what happens with Antivirus and Java?

    Windows Update can occur if one or more of the following conditions are met:

    1. the Windows Update database is damaged.

    2. antivirus software is configured to scan the %Windir%\SoftwareDistribution folder.

    3. the service (BITS) Background Intelligent Transfer Service does not receive a content link header.

    4. a required system file is incorrectly registered.

    5. Windows Installer has encountered an error.

    6. the manifesto of component maintenance (EC) is damaged.

    7. the Windows Update service has stopped during the installation.

    8. a version of the file conflict exists with Windows Update agent files.

    Please follow the steps described in the methods to solve the problem:

    Method 1: We will try the steps from the following link and check the result:

    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article:http://windows.microsoft.com/en-US/windows7/Back-up-the-registry

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058?WA=wsignin1.0

    Method 2:

    To correct the errors that occur when you use Windows Update, install, and run the system update readiness tool. The tool analyzes inconsistencies on your computer and fixes as its current installation.

    You can view the following link to download the system update readiness tool and check:

    System tool update that corrects problems of Windows Update is available for Windows 8, Windows 7, Windows Vista, Windows Server 2008 R2 and Windows Server 2008

    http://support.Microsoft.com/kb/947821

    Details of the event log to find what caused the Antivirus and Java to fail:

    What are the information contained in the logs of the event (Event Viewer)?

    http://Windows.Microsoft.com/en-us/Windows7/what-information-appears-in-event-logs-Event-Viewer

    Hope that the information provided is useful.

    For any help related to this problem or any question of Windows, you can still display in the Microsoft Community Forum!

  • Problems with UAC, Sims 3 downloader and original windows

    Problems with UAC, Sims 3 downloader and original windows

    I have windows Vista and have been using it for a while to play the sims 3 and download games via original EA downloader/store.  I had run a windows update and an original updated in the last days and therefore my sims 3 expansion packs ceased to operate.  I uninstalled all and have reinstalled the original game of the downloader of origin and now when I try to download my expansion packs I get an error message saying that windows has prevented the application creates a download directory, please accept the UAC prompt to start to download this game.  I approved the promt and they have same message came still high and so I disabled UAC altogether and still got the same error message, I looked on the EA forums and the only line I can find of them our it may be a windows problem (which I doubt)?  Can you help me?

    Hello

    Method 1:
    Right click on all of the files and select run as administrator and try to install it.

    Method 2:

    You can try creating a new user account.
    http://Windows.Microsoft.com/en-us/Windows-Vista/fix-a-corrupted-user-profile

    Note: select the Administration option while creating a user account

    Method 3:

    You try to run the system restore at the same time that it worked very well.
    http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-system-restore

    I hope this helps. Get back to us with results

  • Install KB3024777 to fix a problem with KB3004394 on Windows 7 and Windows Server 2008 R2 now not authentic

    Separated from this thread.

    Joachim

    When first pose the problem? Was it before or after the December updates?

    KB3004394 and KB3024777 appear in view update history? Or do they appear in installed updates?

    Gerry, thanks for your post. I have the same problem as Joachim started this thread. I am running Windows 7 sp1. I have a Dell computer and it's certainly a legitimate copy of Windows (confirmed computer 'properties' and it is enabled).

    By your post, I saw just to update and the KB3004394 (installed on 12/10/2014) and KB3024777 (installed on 12/12/2014) show as comfortable. I usually leave the Windows download updates automatically and I install them to stop. I watched the second update and according to Microsoft.com:

    Install KB3024777 to fix a problem with KB3004394 on Windows 7 and Windows Server 2008 R2

    The KB 3004394 update which was dated December 10, 2014 can cause additional problems on computers that run Windows 7 Service Pack 1 (SP1) and Windows Server 2008 R2 SP1. This includes the inability to install future updates. This new update is available to remove KB 3004394 from your computer.

    My problem is, as of today 14/12/2014, I still get the pop up "this computer is running not windows genuine', even with KB3024777 installed.

    Any thoughts?

    Thank you

    Bob C

    Right-click on CMD

    Click on run as administrator

    At the command prompt, type the following commands:

    slmgr.vbs - ipk xxxx-xxxx-xxxx-xxxx (to replace the specified in the current product key)

    xxxx-xxxx-xxxx-xxxx - represents your product key

    Press enter on your keyboard

    Then type: slmgr.vbs - ato (this will force the activation)

    Leave the command prompt

    Restart your computer

Maybe you are looking for