How to fix a Syntax Error?

I have a problem with my MXML Application. I keep getting an error: 1084: Syntax error: expecting rightparen before rightbrace, But I don't know what that means. Here's my MXML,
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
    backgroundColor="#FFFFFF"
    backgroundAlpha="0" width="1050" height="1000">
    <mx:Text width="964" height="497" enabled="true" fontSize="15">
        <mx:text>For right now, Changer098.com is still under construction and is progressing. However the change from Adobe Dreamweaver to Adobe Flex has left Changer098.com with new difficulties. Such as; the longing bearing task for loading the page as you have experienced. Also, Flex requires Adobe Flash, AIR, and Shochwave to work correctly. So if you are viewing this site and do not have these plugins enabled, please enable them for designated viewing pleasure.</mx:text>
    </mx:Text>
    <mx:TextInput x="127" y="505" maxChars="30" editable="true" enabled="true"/>
    <mx:Label x="0" y="507" text="Your Email Addresse" enabled="true"/>
    <mx:TextInput x="127" y="535" editable="true" enabled="true" maxChars="30"/>
    <mx:Label x="0" y="537" text="Your Username" width="119"/>
    <mx:TextInput x="0" y="565" editable="true" enabled="true" maxChars="500" width="287" height="140"/>
    <mx:CheckBox x="0" y="713" label="By clicking this you agree to the terms and conditions" selected="false" enabled="true"/>
    <mx:Button x="10" y="743" label="Terms And Conditions">
        <mx:click>navigateToURL(new URLRequest('http://changer098.webs.com/tac.html'), '_blank')</mx:click>
    </mx:Button>
    <mx:Button x="0" y="773" label="Send" id="send">
        <mx:click>(navigateToURL(new URLRequest('mailto:[email protected]') , navigateToURL(new URLRequest('http://changer098.webs.com/sent.html'), '_blank')</mx:click>
    </mx:Button>
    <mx:Label x="0" y="803" text="Do Not Send Unless You Agree To Terms And Conditions" fontSize="15" textDecoration="underline" fontWeight="bold"/>
</mx:Application>
It says there is an error at line: 18. Can anyone help me?

the clickhandler function is an Actionscript function. Its not mxml.
You have to wrap it inside a mx:Script.
for example
<mx:Script>
<![CDATA[
     private function clickHandler():void
     navigateToURL(new URLRequest('mailto:[email protected]'));
     navigateToURL(new URLRequest('http://changer098.webs.com/sent.html'), '_blank')
]]>
</mx:Script>
In general, whenever you want to write Actionscript in your project you use the mx:Script tag.

Similar Messages

  • How do you correct syntax errors in OSX 10.9.3?

    How do you correct syntax errors in OSX 10.9.3?
    Hal Frederick

    Hal Frederick wrote:
    I amm double-clicking on the Disk Utility icon in the Utilities Folder.
    In that case, I'm with Tom in wanting to see a screen shot ot the error message. "syntax error" is a most unusual thing for Disk Utility to say in the GUI environment.

  • Do anybody know how to fix an unknown error

    Do anyone know how to fix an unknown error #1439 on ipod classc?
    Why the option import cd is gone now if you Itunes 10.5?

    Hello there, please verify that you are using the latest version of iTunes.
    Try these steps
    Step 1. Connect a Ethernet cable to your macbook no wifi.
    Step 2. Open iTunes
    Step 3.Plug in your iPhone to your macbook
    Step 4.  Put the device into DFU mode.
    DFU MODE STEPS
    Hold the Power Button (3 secs)
    Continue holding the power button and also hold the home button (15 secs)
    Release the power button while continuing to hold the home button (10 secs)
    You Should have black screen with nothing on the screen if done correctly.
    Step 5: iTunes will either prompt to restore and update click restore and update
    Just sit back and wait until you see the setup screen on your iphone if you still see error 53 is a hardware problem and needs to be replace by Apple.

  • How to fix 1604 &1603 error ipod touch 4g

    hi plz help me....how to fix 1604 & 1603 error.....ipod touch 4g ios 6.1.3

    Error 20, 21, 23, 26, 28, 29, 34, 36, 37, 40
    Error 1604
    This error is often related to USB timing. Try changing USB ports, using a different dock connector to USB cable, and other available USB troubleshooting steps (troubleshooting USB connections. If you are using a dock, bypass it and connect directly to the white Apple USB dock connector cable. If the issue persists on a known-good computer, the device may need service.
    If the issue is not resolved by USB isolation troubleshooting, and another computer is not available, try these steps to resolve the issue:
    Connect the device to iTunes, confirm that the device is in Recovery Mode. If it's not in Recovery Mode,put it into Recovery Mode.
    Restore and wait for the error.
    When prompted, click OK.
    Close and reopen iTunes while the device remains connected.
    The device should now be recognized in Recovery Mode again.
    Try to restore again.
    If the steps above do not resolve the issue, try restoring using a known-good USB cable, computer, and network connection.
    Error 1600, 1601, 1602
    Error 1603
    Follow the steps listed above for Error 1604. Also, discard the .ipsw file, open iTunes and attempt to download the update again. See the steps under Advanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations. If you do not want to remove the IPSW in the original user, try restoring in a new administrator user. If the issue remains, Eliminate third-party security software conflicts.

  • How to fix No service error

    How to fix No Service error for my iPhone, which is recently factory unlocked from US and using it in India

    Did you actually buy a factory unlocked and contract free iPhone from the U.S.?
    The way you put it, it implies that someone has actually done "factory unlocking" on your iPhone, which is not possible. Factory unlocked iPhone is sold on Apple online stores in the U.S.
    ** One should not receive "No service error" on factory unlocked iPhone, unless the SIM is faulty; unsupported carrier or it's a locked phone to a specific carrier.

  • Anyone know how to fix the 5002 error (cannot purchase music from i Tunes)?

    Anyone know how to fix the 5002 error (cannot purchase music from i Tunes)? What's this error about? I searched and couldn't find it on the support page. This is extremely annoying.

    Hello, I just solved my "Error 5200" problem by following these instructions to repair the permissions of the iTunes Music Folder:
    http://docs.info.apple.com/article.html?artnum=93069
    I hope this helps other people!

  • HT4623 how to fix the itune error an unknown erroe occured (310)

    how to fix the itune error an unknown erroe occured (310)

    https://discussions.apple.com/message/24177027#24177027
    Can't connect to the iTunes Store

  • How to fix the E225 error on the MF 4380 dn printer

    How to fix the E225 error on the MF 4380 dn printer

    Hi okekeP,
    The imageCLASS MF4380dn was not released by Canon USA in the United States, but was distributed in other markets such as Canada, Europe and Australia.  I would recommend to referring to the Canon support group for your geographical area to ensure the proper support application is being used for your product. However. I will be happy to offer some assistance.
    The closest US model would be the imageCLASS MF4370dn. The recommendation when the error occurs with this model is to perform a reset the product.  If you have not done so already, please attempt to reset your laser printer as outlined below:
    1. Disconnect the power cord attached to your machine while "on" for up to 10 minutes.
    2. Reconnect the power cord for the unit and plug it into a different known working outlet direct to the wall (not a surge/power strip) to ensure it is receiving full power.
    4. Once your unit has initialized, confirm an error is not displayed in the LCD.
    If unresolved, please refer to your Canon support contacts for further assistance and whether a firmware update may be available to address the issue or if service may be required.
    In case helpful to you, here are direct links to the product page for your laser product:
    - if your product was purchased in Canada, you can visit the product page for your laser device on the Canon-Canada website, www.canon.ca.
    - if your product was purchased in Australia, you can visit the Canon-Australia website, www.canon.au.
    - if purchased in Europe, you can visit the Canon-Europa website, www.canon-europe.com
    I hope this is helpful to you.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • How to fix problem "PYLR2000 error playing a file. Try again or contact your Monitoring and Recording administrator"

    Hi,
    I'm using qm 8.5.2 (endpoint recording) most of customer PCs cannot play recording file in application.
    When I launch application and try to play recoding file, it is stuck and show error message "PYLR2000 error playing a file. Try again or contact your Monitoring and Recording administrator." I've install all cilent requirements (validate pc is pass). The error still occur. Even though all requirements are complete .
    So, How to fix this problem.
    Thank in advance
    Namkhao

    Hi bsetexast,
    I'm fix this problem by using Java(TM) version 6.0.200.2 that can be download from UCCX when first run CSD (supervisor desktop). Even other higher java version is valid but this problem still occur. If you install higher version, you should uninstall it first and install this version as well.
    If you cannot find them, I will send you via email.

  • How to fix 'An Unknown error has occurred" when trying to save an  illustrator CS5 doc

    Hi
    I have just upgraded to a new iMac late 2013. After running a migration from my old mac to the new. I now have the following error: "Unknown error has occurred" when trying to save an illustrator CS5 doc.
    How do you  fix 'An Unknown error has occurred" when trying to save?
    All help, most welcome.
    Thanks
    Marty

    Hi
    Thanks for your response. I have reinstalled and used the adobe clean software to remove all adobe software first. still not working. Can you explain in more detail "fix the permissions on your User: Library folders"? I have verified disc perms in Disc Utility.
    Thanks
    M

  • How best to find syntax errors in a PDF

    Hi,
    I want to find out the best way for an end user to identify syntax errors in a PDF, such as "expected a dict object", which might occur when a user opens the PDF. I usually find these when using the Acrobat SDK to parse a PDF in some way. However, for an end-user, a tool would be necessary.
    Using the Acrobat preflight tool enables you to browse the structure of a PDF and potentially see errors but that is not suitable for anyone other than an expert. What I am looking for is a way to check a load of files for these sorts of errors in a batch process so that a non-expert can identify the problem files that need fixing. Is there a good way of doing that?
    Thanks
    David

    Thanks, that seems to do just what is needed.
    David
    In message <328241050.1047331251123977205.JavaMail.jive@sgaurwa41p>,
    Leonard Rosenthol <[email protected]> writes
    >
    >Adobe Acrobat's preflight also includes a "Report Syntax Errors" option
    >that will do many types of validation on the PDF.   You can run this in
    >Batch or via a droplet.
    >

  • How to fix netinfod socket errors

    I notice that the System log produces these two errors every hour:
    Jan 2 18:30:19 ns netinfod local[94]: notify's udp binder connection to localhost[255.255.255.255]/local failed during opening (UDP) - socket_open failed
    Jan 2 18:30:19 ns netinfod local[94]: notify's tcp binder connection to localhost[255.255.255.255]/local failed during opening (TCP) - socket_connect failed
    Anyone know how to fix them?
    ...Rene

    Go to internet options,
    Advanced section, uncheck display a notification of every script error, apply and okay.
    Close and open a new window,
    If it doesn't stop,
    Go to the security section,
    Custom level button, scroll down near the bottom and disable xss filter, apply and okay.

  • How to fix IE script errors

    I am continuously getting script errors....sometimes after every key stroke I type (this just started happening about a week ago).
    I've gone to the Advanced tab of the Internet Properties and found that the "Disable script debugging" box is checked....and the "Display a notification about every script error" is unchecked.....which are the recommendations I've read about on how to fix
    this problem.  Since these boxes are already checked/unchecked appropriately, what is causing these script error problems.....and how can I get rid of them?
    Thanks

    Go to internet options,
    Advanced section, uncheck display a notification of every script error, apply and okay.
    Close and open a new window,
    If it doesn't stop,
    Go to the security section,
    Custom level button, scroll down near the bottom and disable xss filter, apply and okay.

  • How to fix a download error for itunes on an iphone?

    How can one fix a "download error" for itunes on an iphone?

    Hi..
    First, try resetting your iPhone.
    Hold the On/Off Sleep/Wake button and the Home button down at the same time for at least ten seconds, until the Apple logo appears.
    If that doesn't help, tap Settings > General > Reset > Reset Network Settings
    Then restart the device.    Hold the power button until "slide to power off" appears.  Slide to power off.  After it is off, press the power button to turn it back on.

  • I did the Downgrade to 10.7 / How to fix the 42408 error?

    I did the downgrade iTunes to 10.7 (Because everybody who is into organizing the library knows that iTunes11 *****)
    And im getting this 42408 error?
    How to fix it? i really need to Authorize the computer.
    I want to sync my iPod and all the Apps.
    I did all the replacement of itunes library.itl
    the AppZaper and Pacifist stuff
    HELP PLEASE!!

    Thanks, I tried your idea.
    But doesn't work
    Now im gonna try this:
    McGroarty
    Re: From iTunes 11 back to 10, but (-42408) error 
    Nov 30, 2012 6:05 PM (in response to blackxacto)
    To get rid of error -42408:
    1. Close iTunes
    2. From a terminal: killall iTunesHelper
    3. Unplug any iOS devices
    4. Restore these from a backup of /System/Library/PrivateFrameworks/ - you want to replace the current versions when Time Machine (or whatever you use) asks.
    AirTrafficHost.framework
    CoreFP.framework
    DeviceLink.framework
    iTunesAccess.framework
    MobileDevice.framework
    Reboot before loading iTunes or reattaching any iOS devices for good measure.
    Good luck!

Maybe you are looking for