I keep getting errors. Help?

So I am just starting the if and if else statements.
How can I make this work. And it keeps giving me bracket errors.
If you know, please help
btnpH.addEventListener(MouseEvent.CLICK, determinepH);
function determinepH(e:MouseEvent):void
var pH:int;
pH=int(txtinpH.text)
//Do the "if" to see if they are eligible
if (pH == 6.5 && <=7.5)
lblpH.text = "NEUTRAL - FISH IN STREAMS, RIVERS AND LAKES WILL SURVIVE.";
if (pH <= 6.5)
    lblpH.text = "TOO ACID - FISH IN STREAMS, RIVERS AND LAKES WILL NOT SURVIVE.";
    if (pH >=7.5)
lblpH.text = "TOO ALKALINE - FISH IN STREAMS, RIVERS AND LAKES WILL NOT SURVIVE";
function clearLabels(e:MouseEvent):void
lblpH.text = "";
txtinpH.text = "";

The error originates here:
if (pH == 6.5 && <=7.5)
Correct syntax is:
if (pH == 6.5 && pH <=7.5)
In any case, your entire code should be:
btnpH.addEventListener(MouseEvent.CLICK, determinepH);
function determinepH(e:MouseEvent):void {
     var pH:int = int(txtinpH.text);
     if (pH > 6.5 && pH <= 7.5){
          lblpH.text = "NEUTRAL - FISH IN STREAMS, RIVERS AND LAKES WILL SURVIVE.";     
     else if (pH <= 6.5)     {
          lblpH.text = "TOO ACID - FISH IN STREAMS, RIVERS AND LAKES WILL NOT SURVIVE.";
     else (pH >= 7.5){
          lblpH.text = "TOO ALKALINE - FISH IN STREAMS, RIVERS AND LAKES WILL NOT SURVIVE";
function clearLabels(e:MouseEvent):void {
     lblpH.text = "";
     txtinpH.text = "";

Similar Messages

  • Imac 10.6.8 keeps getting error when i try to upgrade to mavericks

    i have went under apple and applied all software updates then to itunes to download mavericks and i keep getting error. help. please. im not computer savy.

    You can upgrade to Mavericks OS 10.9 for free IF you have one of the following Macs, with not less than 2GB of RAM, and at least 8GB of available space on your hard drive:
    iMac (Mid-2007 or later)
    MacBook (13-inch Aluminum, Late 2008), (13-inch, Early 2009 or later)
    MacBook Pro (13-inch, Mid-2009 or later), (15-inch, Mid/Late 2007 or later), (17-inch, Late 2007 or later)
    MacBook Air (Late 2008 or later)
    Mac Mini (Early 2009 or later)
    Mac Pro (Early 2008 or later)
    Xserve (Early 2009)
    iCloud system requirements:
    http://support.apple.com/kb/ht4759
    If you cannot run Mavericks you can purchase the code to use to download Lion from the App Store (Lion requires an Intel-based Mac with a Core 2 Duo, i3, i5, i7 or Xeon processor and 2GB of RAM, running the latest version of Snow Leopard):
    http://store.apple.com/us/product/D6106Z/A/os-x-lion
    or Mountain Lion:
    http://store.apple.com/us/product/D6377Z/A/os-x-mountain-lion

  • My Ipod touch is stuck in recovery mode. I keep getting Error 9 and I have done everything they asked but nothibng helps.

    Help I think when I went to restore my ipod touch the date was wornign on the ipod and not it is stuck in recovery moder and I keep getting Error 9. I have tried everything but nothing works can someone help me?

    Error 9: This error occurs when the device unexpectedly drops off the USB bus and communication stops. This can occur if the device is manually disconnected during the restore process. This issue can be resolved by performing USB isolation troubleshooting, using a different USB dock-connector cable, trying another USB port, restoring on another computer, or by eliminating conflicts from third-party security software."- it's taken from the Apple support web.

  • I am trying to download the latest iTunes update.  Keep getting error message stating "The folder path 'My Documents' contains an invalid character".  I can't uninstall iTunes for the same reason.  HELP!

    I am trying to download the latest iTunes update; keep getting error message that says "The folder path 'My Documents' contains an invalid character".  This also happens when I try to uninstall iTunes.  HELP!

    OK, never mind!  I saw another question on the right side that addressed the problem, and it worked perfectly!  Went to Major Geeks' page, downloaded the Windows Installer Cleanup Utility, and was able to reinstall the updated version of iTunes!  This community is super!

  • I'm trying to load video file into CS6 I keep getting error message: 'Could not complete you request because the DynamicLink Media Server is not available.' No Idea what to do next. Help please.

    I'm using CS6 Extended. My OS is "Windows 7 home premium.
    Can no longer load video files into CS6 for edited I keep getting error message:
    'Could not complete your request because the DynamicLink Media Server is not available.'
    Don't know what this means. Until just now I was able to load videos without any problems. Now I'm getting this message. Any thoughts?

    Hi Mylenium,
    upfront:
    I hope I won't be marked as spam now, since I am posting on a few relevant discussions now to this topic.
    However, I really would like to ask the people who have experienced this problem to see if they were able to solve it.
    Now the real deal:
    I posted a question in this discussionDynamicLink Media Server won't let me import video for video frames to layers anymore.
    The linked discussion is a lot younger, which is why I posted there first.
    I also put in information on the steps that I have tried and my computer specifications.
    I am experiencing this problem for a while now and hope you and jones1351may be able to help out.

  • I cannot install Creative Suite 5.5 on my Windows 7 Professional. I keep getting error message: "Exit Code: 15 - Media DB sync failed". I have disabled UAC and Startup items and Services with no luck. Can you please help?

    I cannot install Creative Suite 5.5 on my Windows 7 Professional. I keep getting error message: "Exit Code: 15 - Media DB sync failed". I have disabled UAC and Startup items and Services with no luck. Can you please help?

    I am sorry Erickkasner but there is no longer direct support provided for Creative Suite 5.5 installation issues.
    You are welcome to post any specific errors you are able to discover within your installation log to this discussion.  Since you are using Windows then Exit Code 15 could mean one of the following:
    Installer database is corrupted
    Update pending to your operating system
    Improper permissions set for the Media.db
    The installation log file should provide additional insight into the exact error you are experiencing.  Please make sure to use the find command to look for the words 'ERROR' and 'FATAL' to locate the relevant error messages.

  • Keep getting error message itunes wont sync with iphone...help anyone

    keep getting error message...iphone wont sync with itunes..help anyone

    keep getting error message
    What does the message say? (Precise text, please.)

  • I have tried to download ITunes 11on Windows 7 but I keep getting error message 5 telling me it did not install correctly and to install again. Can anyone help?

    I have tried to download ITunes 11on Windows 7 but I keep getting error message 5 telling me it did not install correctly and to install again. Can anyone help?

    HI there,
    I would recommend taking a look at the troubleshooting steps found in the artilce below.
    Trouble installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/ht1926
    -Griff W

  • Trying to put pics on a flashdrive and keep getting error that there is not enough free space when there is.  I tried to empty trash with the flash drive in but still not working.  Help!

    Trying to copy photos in folder on desktop to a flash drive but keep getting error that there is not enough free space when there is.  I read to delete trash with the flash drive in but that still doesn't work.  Help!!

    How is the flash drive formatted? Open Disk Utility (Applications>Utilities) and see how it's formatted - that might be the problem.
    Clinton

  • Keep getting error 1611on itunes help!!

    keep getting error 1611on itunes help!!

    Error 1611
    This error typically occur when security software interferes with the restore and update process. FollowTroubleshooting security software issues to resolve this issue. In rare cases, this error may be a hardware issue. If the errors persist on another computer, the device may need service.
    iTunes: Specific update-and-restore error messages and advanced troubleshooting

  • HT203200 Cannot get into itunes via Mac keep getting error −50 ?  help

    Cannot get into itunes via Mac keep getting error −50 ?  help please

    Make sure your Mac's software is up to date.
    Open system Preferences > Software Update > Check Now.
    Restart your Mac after all updates are installed.
    Then try iTunes.
    Which OS X is installed on your Mac ?
    Click the Apple () menu top left in your screen. From the drop down menu click About This Mac. The version is noted there.
    Troubleshooting advice can depend on that information.

  • HT201210 I,m trying to restore my phone but I keep getting Error code 21.... help please

    I,m trying to restore my phone but I keep getting Error code 21.... help please     iPhone 4S

    Take a look at this Apple doc -> iTunes: Specific update-and-restore error messages and advanced troubleshooting
    Error 20, 21, 23, 26, 28, 29, 34, 36, 37, 40
    These errors typically occur when security software interferes with the restore and update process. Follow Troubleshooting security software issues to resolve this issue. In rare cases, these errors may be a hardware issue. If the errors persist on another computer, the device may need service.
    Also, check your hosts file to verify that it's not blocking iTunes from communicating with the update server. See iTunes: Advanced iTunes Store troubleshooting—follow steps under the heading Blocked by configuration (Mac OS X / Windows) > Rebuild network information > Mac OS X > The hosts file may also be blocking the iTunes Store. If you have software used to perform unauthorized modifications to the iOS device, uninstall this software prior to editing the hosts file to prevent that software from automatically modifying the hosts file again on restart.
    You could just update or uninstall the security software on your computer and then test again.

  • HT201210 I have an old i phone 3G and do not know the password for it. trying to restore it from itunes but keep getting error code 1015, any help on how to get passed this please?

    I have an old i phone 3G and do not know the password for it. trying to restore it from itunes so my daughter can use it as an ipod but keep getting error code 1015, any help on how to get passed this please?

    Hi ratcat14!
    I have an article that can help you troubleshoot this issue:
    Resolve specific iTunes update and restore errors
    http://support.apple.com/kb/ts3694
    Check for hardware issues
    Try to restore your iOS device two more times while connected with a cable, computer, and network you know are good. Also, confirm your security software and settings are allowing communication between your device and update servers. If you still see the alert when you update or restore, contact Apple support.
    Common errors: 1, 10-47, 1002, 1011, 1012, 1014, 1000-1020.
    Thanks for being a part of the Apple Support Communities!
    Cheers,
    Braden

  • HT1338 Update bundle just released for Aperture 3.4.2, Safari 6.0.2, and iPhoto 9.4.2 will not install.  Keep getting error "The operation couldn't be completed. (NSURLErrorDomain error -3001.)(102)"  Any one else having this issue?  Please help.

    Update bundle just released for Aperture 3.4.2, Safari 6.0.2, and iPhoto 9.4.2 will not install.  Keep getting error "The operation couldn't be completed. (NSURLErrorDomain error -3001.)(102)"  Any one else having this issue?  Please help.

    Hi there!
    Yes, same problem too; I've already sent an email to apple support and just received a very vague and unpractical response with "call apple support in your country" as main advice. I've obviously emailed back stating that I need a clearer response and I don not have any intention to spend money calling for support when updates is a free tool. I do also believe this is a probem generated on Apple's end, I just wish they learned to say "sorry, it's us;  working on it!"
    Message was edited by: MacLuc

  • I keep getting error code 3131 when trying to publish a ping playlist -- help!!!

    I keep getting error code 3131 when trying to publish a ping playlist -- help!!!

    Same problem. I make playlists on Ping so the listeners of my podcast can easily download the songs I talk about. But for **** near 2 weeks now I can't edit a playlist or add a new one. When are they gonna fix this?

  • TS1424 When attempting to download iTunes I keep getting error The system administrator has set policies to prevent this installation.  This is home PC and I am administrator.  Any help is appreciated.

    When attempting to download iTunes I keep getting error The system administrator has set policies to prevent this installation.  This is a home PC and I am the administrator.  Any help would be appreciated.

    Hi PSpark!
    I have an article here that I believe will help you troubleshoot this issue a little further. That article can be found right here:
    Trouble installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/ht1926
    Thanks for coming to the Apple Support Communities!
    Regards,
    Braden

Maybe you are looking for

  • Error message when downloading rental from itunes to ipad

    I purchased two rental movies on itunes and when I transfer to my ipad, it says they've already been downloaded to another computer or device (but they haven't been).  Anyone have experience with this problem?

  • Adobe media encoder produced mixed-up results

    I have never used the Queue button in Premiere before to batch process video output.  Yesterday when I was working on a choir project where I had multiple sequences representing individual songs, I found it convenient to delay the encoding until I co

  • User can't login in EBS 12.0.6.

    Hi, When user gives user name and pass the following error received. this is only with specific user(only one user). we are using 12.0.6 EBS with database 10.2.0.3, OS linux AS 4. Exception Details. oracle.apps.fnd.framework.OAException: java.lang.Nu

  • Regarding BAPI's

    Hi experts,        i have one doubt about BAPI's. Here iam using SAP PLM system. I have to search the suitable BAPI to display the list of materials form SAP PLM system.Here the requirement is i have to give this BAPI to the XI people. There they wil

  • Drop a datafile that is offline and not on the OS

    I am running a 2 node rac on ASM . 10gR2 on HP UX. By mistake 1 datafile has been deleted on the OS , and that datafile is marked as offline in the dba_data_files. How can I drop the datafile from the database. since when I query the dba_data_files t