Syntax Error 1084

ICan someone help, please? I'm having trouble with ActionScript 3.0, and I keep getting an error:
1084:syntax error: expecting rightparen before colon
And this is the script:
home_button.addEventListener(MouseEvent.CLICK, takeHome);
function takeHome(evt:MouseEvent){
    gotoAndStop(1)
flash_button.addEventListener(event:MouseEvent)void:)
    nextFrame(2);
clients_button.addEventListener(event:MouseEvent)void:
    nextFrame(3);
If anyone can see anything wrong with this, I'd be more than grateful.

There are a number of errors.  The following lines are correctly written... so based the rest of the code you show on their example...
home_button.addEventListener(MouseEvent.CLICK, takeHome);
function takeHome(evt:MouseEvent):void {
    gotoAndStop(1);
Also, nextFrame() does not accept a numeric argument... it only goes to the next frame in case you are trying to go more than that.

Similar Messages

  • Location tempInit (what is it?) Syntax errors 1084 & 1086 in lines that don't exist.

    I am getting the following errors:
    tempInit, Line 280
    1084: Syntax error: expecting identifier before true.
    tempInit, Line 280
    1086: Syntax error: expecting semicolon before dot.
    tempInit, Line 376
    1084: Syntax error: expecting identifier before false.
    tempInit, Line 376
    1086: Syntax error: expecting semicolon before dot.
    I don't know where tempInit is in the location and I especially don't know where lines 280 or 376 are because I only have 111 lines of actionscript!  I don't know where to start.
    Any help would be appreciated.

    Pardon my intrusion.  I thought I'd throw this in since oddly enough it just showed up in the General forum today about an hour before you posted... it might have some info to help (or not).
    http://forums.adobe.com/thread/1083272?tstart=0

  • XML syntax error 1084

    Hi,
    this is my first post on the forum and I'm a new to Flash.
    I got an error which I can't seem to figure out on my own what is the problem, I've read through some of the 1084 errors but still couldn't figure it out
    I got "1084: Syntax error: expecting rightparen before colon" on this line: myXML = new XML(e:target.data);
    And here is the whole code:
    var loader:URLLoader = new URLLoader();
    loader.addEventListener(Event.COMPLETE,onLoaded);
    var myXML:XML;          // Variable to hold XML class
    function onLoaded (e:Event):void{
    myXML = new XML(e:target.data);
    loader.load(new URLRequest("names.xml"));
    trace(myXML);
    Thanks in advance
    Regards Sakujin

    I've discovered the error after I got help from a friend the culprit was a colon instead of a punctation after XML(e.target.data); instead of XML(e:target.data)
    Thanks for everyone that has visited my post.

  • Package Cannot Be Nested 1037 & Syntax Error 1084

    Trying to learn how to crerate a Box2D game in WIndows 8 Flash Pro CC.   Opened new document in ActionScript 3.0 Class or ".as" as a Flash Pro application.  Very very new to all developer languages and processes.  Please help.
    package {
        import flash.display.Sprite
        import Box2D.Dynamics.*;
        import Box2D.Collision.*;
        import Box2D.Collision.Shapes.*;
        import Box2D.Common.Math.*;
        public class Main extends Sprite{
            public function Main(){
                trace(*my awsome game starts here *);

    the default directory is usually in the same directory where the main fla is saved but that can be changed in advanced actionscript settings panel (file>publish settings>actionscript settings - wrench icon).
    p.s. you should copy and paste your actualy code.  if that is your actual code, that trace is incorrect and should contain a string.  ie, change the asterisks to quotes.

  • 1084 Syntax errors. Very basic.

    I am very new to flash and I have some very basic code that I need help with.
    Here;
    var paddlepos:int = paddle.x.position
    if; (paddlepos > 253)
        paddle.x.postition = 253;
    The errors are:
    Scene 1, Layer 'Actions', Frame 1, Line 28    1084: Syntax error: expecting rightparen before leftbrace.
    Scene 1, Layer 'Actions', Frame 1, Line 27    1084: Syntax error: expecting leftparen before semicolon.
    Help would be very helpful. Thanks.

    there should be no semi-colon after if.

  • 1084: Syntax error: expecting rightbrace before rightparen

    Hi,
    I am getting the following error when using the below code:
    1084: Syntax error: expecting rightbrace before rightparen.
    Code:
    Buttons.Btn_2.addEventListener(MouseEvent.CLICK,Btn_2ClickHandler);
    function Btn_2ClickHandler(event:MouseEvent):void {
    navigateToURL (new URLRequest ("http://Main/New_Projects/Album-2.htm"), "_self"));
    I am getting this error only after adding  , "_self")
    Please help.

    You appear to have one too many right parenthesis in that line.  The number of rights should equal the lefts.

  • 1084: Syntax error: expecting rightbrace before end of program.

    So I'm doing this basic coding thing to make an object "shoot" bullets. It's from a tutorial video. My code matches his exactly unless I'm missing a tiny detail. Basically the code looks like this:
    package {
    import flash.display.Sprite;
    import flash.events.Event; 
    public class bullet extends Sprite {
    private var sw:Number;
    private var sh:Number;
    private const _SPEED:int=-10;
    private const _OFFSTAGE:int=-10; 
    public function bullet():void {
    addEventListener(Event.ADDED_TO_STAGE,onadd);
    private function onadd(e:Event):void {
    sw=stage.stageWidth;
    sh=stage.stageHeight;
    addEventListener(Event.ENTER_FRAME,loop);
    private function loop(e:Event):void {
    if (y<_OFFSTAGE) {
    removeEventListener(Event.ENTER_FRAME,loop);
    parent.removeChild(this);
    y-=_SPEED;
    }public function removeListeners():void {
    removeEventListener(Event.ENTER_FRAME,loop); 
    And the compiler error I'm getting says this:
    Location:bullet.as line 31 1084: Syntax error: expecting rightbrace before end of program. Source: }
    Location:bullet.as line 31 1084: Syntax error: expecting rightbrace before end of program. Source: }
    And yes it does say it twice. What's going on?
    The vid I'm learning from is this: http://autocad.spinelink.com/adobe-flash-cs4-game-tutorial-shooting.html

    You are missing two closing curly braces at the bottom of the package declaration. You need to close the package itself and the class declaration inside.
    package {
         import flash.display.Sprite;
         import flash.events.Event;
         public class bullet extends Sprite {
              private var sw:Number;
              private var sh:Number;
              private const _SPEED:int=-10;
              private const _OFFSTAGE:int=-10;
              public function bullet():void {
                   addEventListener(Event.ADDED_TO_STAGE,onadd);
              private function onadd(e:Event):void {
                   sw=stage.stageWidth;
                   sh=stage.stageHeight;
                   addEventListener(Event.ENTER_FRAME,loop);
              private function loop(e:Event):void {
                   if (y<_OFFSTAGE) {
                        removeEventListener(Event.ENTER_FRAME,loop);
                        parent.removeChild(this);
                   y-=_SPEED;
              public function removeListeners():void {
                   removeEventListener(Event.ENTER_FRAME,loop);

  • 1084: Syntax Error:....; 1086: Syntax Error:..... ????

    I'm getting the following Compiler Errors:
    tempInit, Line 10 1084: Syntax error: expecting identifier before null.
    tempInit, Line 10 1086: Syntax error: expecting semicolon before dot.
    I'm not writing any external AS files.  All of this is basic ActionScript on frame 1 of the main timeline.
    Do I need to post the code?
    All that's in my movie are invisible buttons to navigate to the next frame in the timeline using
    my_mc.nextFrame();
    What could be wrong?

    Okay Okay..
    Here's the code
    stop();
    // A ACTIONS
    A_Master_mc.gotoCPage02_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage02);
    trace("hello");
    A_Master_mc.gotoBPage02_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage02);
    A_Master_mc.gotoAPage02_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage02);
    A_Master_mc.gotoAPage03_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage03);
    A_Master_mc.gotoAPage04_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage04);
    A_Master_mc.gotoAPage05_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage05);
    A_Master_mc.gotoAPage06_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage06);
    A_Master_mc.gotoAPage07_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage07);
    A_Master_mc.gotoAPage08_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage08);
    A_Master_mc.gotoAPage09_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage09);
    A_Master_mc.gotoAPage10_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage10);
    A_Master_mc.gotoAPage11_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage11);
    A_Master_mc.endA_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAHome);
    function gotoCPage02(e:MouseEvent):void{
         C_Master_mc.gotoAndStop(2);
    function gotoBPage02(e:MouseEvent):void{
         B_Master_mc.gotoAndStop(2);
    function gotoAPage02(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoAPage03(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoAPage04(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoAPage05(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoAPage06(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoAPage07(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoAPage08(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoAPage09(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoAPage10(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoAPage11(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoHome(e:MouseEvent):void{
         gotoAndStop(1);
    // B ACTIONS
    B_Master_mc.gotoCPage02_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage02);
    B_Master_mc.gotoBPage02_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage02);
    B_Master_mc.gotoCPage02_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage02);
    B_Master_mc.gotoCPage03_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage03);
    B_Master_mc.gotoCPage04_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage04);
    B_Master_mc.gotoCPage05_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage05);
    B_Master_mc.gotoCPage06_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage06);
    B_Master_mc.gotoCPage07_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage07);
    B_Master_mc.gotoCPage08_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage08);
    B_Master_mc.gotoCPage09_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage09);
    B_Master_mc.gotoCPage10_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage10);
    B_Master_mc.gotoCPage11_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage11);
    B_Master_mc.gotoCPage12_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage12);
    B_Master_mc.endB_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBHome);
    function gotoAPage02(e:MouseEvent):void{
         A_Master_mc.gotoAndStop(2);
    function gotoCPage02(e:MouseEvent):void{
         C_Master_mc.gotoAndStop(2);
    function gotoBPage02(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage03(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage04(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage05(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage06(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage07(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage08(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage09(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage10(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage11(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage12(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBHome(e:MouseEvent):void{
         gotoAndStop(2);
    //C ACTIONS
    C_Master_mc.gotoCPage02_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage02);
    C_Master_mc.gotoBPage02_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage02);
    C_Master_mc.gotoCPage02_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage02);
    C_Master_mc.gotoCPage03_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage03);
    C_Master_mc.gotoCPage04_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage04);
    C_Master_mc.gotoCPage05_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage05);
    C_Master_mc.gotoCPage06_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage06);
    C_Master_mc.gotoCPage07_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage07);
    C_Master_mc.gotoCPage08_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage08);
    C_Master_mc.gotoCPage09_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage09);
    C_Master_mc.gotoCPage10_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage10);
    C_Master_mc.gotoCPage11_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage11);
    C_Master_mc.gotoCPage12_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage12);
    C_Master_mc.gotoCPage13_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage13);
    C_Master_mc.endC_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCHome);
    function gotoAPage02(e:MouseEvent):void{
         A_Master_mc.gotoAndStop(2);
    function gotoBPage02(e:MouseEvent):void{
         B_Master_mc.gotoAndStop(2);
    function gotoCPage02(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage03(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage04(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage05(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage06(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage07(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage08(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage09(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage10(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage11(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage12(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage13(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCHome(e:MouseEvent):void{
         gotoAndStop(3);
    Yes you can tell I'm inexperienced kglad but I'm learning more periodically. 

  • Line 26 1084:  Syntax Error:  expecting rightbrace before end of program

    Im trying to do an animation, how do I solve Line 26 1084:  Syntax Error:  expecting rightbrace before end of program?
    package
        import flash.display.MovieClip;
        import flash.utils.Timer;
        import flash.events.TimerEvent;
        public class AvoiderGame extends MovieClip
            public var enemy:Enemy;
            public var gameTimer:Timer;
            public function AvoiderGame()
                    enemy = new Enemy();
                    addChild( enemy );
                    gameTimer = new Timer( 25 );
                    gameTimer.addEventListener( TimerEvent.TIMER, moveEnemy );
                    gameTimer.start();
            public function moveEnemy( timerEvent:TimerEvent ):void
               enemy.moveDownABit();

    I have taken your advice but now 2 errors have popped up. Line 16 1137: Incorrect number of arguments . Expected no more than 0. Line 18 1120 : Access of undefined property enemy.
    package
        import flash.display.MovieClip;
        import flash.utils.Timer;
        import flash.events.TimerEvent;
        public class AvoiderGame extends MovieClip
            public var army:Array;
            public var avatar:Avatar;
            public var gameTimer:Timer;
            public function AvoiderGame()
                    army = new Array();
                    var newEnemy = new Enemy( 100, -15 );
                    army.push( newEnemy );
                    addChild( enemy );
                    avatar = new Avatar();
                    addChild( avatar );
                    avatar.x = mouseX;
                    avatar.y = mouseY;
                    gameTimer = new Timer( 25 );
                    gameTimer.addEventListener( TimerEvent.TIMER, onTick );
                    gameTimer.start();
            public function onTick( timerEvent:TimerEvent ):void
                avatar.x = mouseX;
                avatar.y = mouseY;
                for each ( var enemy:Enemy in army )
                         enemy.moveDownABit();
                         if ( avatar.hitTestObject( enemy ) )
                                    gameTimer.stop();

  • 1084: Syntax error: expecting leftbrace before extend

    Hi all.  Not sure what is going on here.  I'm trying to improve my knowledge of AS 3.0.  I keep getting this error and this is a snippet of code that I copied and ran it.  I keep getting the same error '1084: Syntax error: expecting leftbrace before extend'.  Can anyone tell me where I'm going wrong?  Here is the code.
    package
              import flash.display.MovieClip;
              public class ActionScriptTest extend MovieClip {
                   public function ActionScriptTest(){
                                  init();
       private function init():void{
                             var bookTitle:String="Foundations";
            trace(bookTitle);

    Thanks Ned.  That was it.  Thanks for getting me unstuck. 

  • 1084: Syntax error: expecting colon before assign.

    Hi
    I am getting "1084: Syntax error: expecting colon before assign." in flash builder 4.6. My application was working fine before a day but When today i try to install app on device then automatic this error comes.
    Please update me when is the problem in my project.
    I am trying to build Flex mobile project by using Flash builder 4.6.
    Thanks
    Brij Kishor

    Well, start with this:
    [Bindable]
    public var gaugeValue:uint = UIUtils.sum(collector_Array, fld:String="rate");
    But, I have no idea what UIUtils.sum does, but you are probably shouldn't be passing in fld:String="rate", it it asks for a String, just pass in rate or the variable fld.
    i.e.
    [Bindable]
    public var gaugeValue:uint = UIUtils.sum(collector_Array, fld);

  • 1084:Syntax error: expecting rightparen before area in Math.round

    Anyone have any idea how to fix this:
    theText.scrollV = Math.round((slider.y – area.y)*theText.maxScrollV/90);
    I'm getting error:
    1084:Syntax error: expecting rightparen before area.
    It looks like a proper statement to me... all open brackets are closed.
    Please HELP!!!

    OMG - I copied the code from a post and didn't see that. Good for you!
    Thanks!!!

  • 1084: Syntax error: expecting rightparen

    Help!!  I am new to Flash.  I am trying to make a  card flip,  I have a photo on one side and info on the next.  It is controlled by a button.  I an getting this error:
    1084: Syntax error: expecting rightparen before flip on lines 5 and 6.  I have been trying to figure it out, but am stumped.  Can anyone help? any suggestion would be greatly appreciated.
    Here is my code:
    import fl.transitions.Tween;
    import fl.transitions.easing.Strong;
    import fl.transitions.TweenEvent;
    con.sidea.flip. addEventListener (MouseEvent.CLICK, on flip);
    con.sideb.flip. addEventListener (MouseEvent.CLICK, on flip);
    addEventListener(Event.ENTER_FRAME,loop);
    var isStill: Boolean=true;
    var arraytween:Array = new Array ();
    function onflip (e:Event) {
        if (isStill)  {
            arraytween.push (new Tween (con,'rotationY', Strong.easeOut,con.rotationY,con.rotationY+180,1,true));
            arraytween [0] .addEventListener(TweenEvent.MOTION_FINISH,reset);
            isStill=false;
    function reset (e:Event)  {
        isStill=true;
        arraytween=[];
    function  loop(e:Event)  {
        if (con.rotationY>=90  && con.rotationY<=270)  {
            con.addChild(con.sideb);
        }else {
            con.addChild(con.sidea);
            con.scaleX=1;
        if (con.rotationY>=360) {
            con.rotationY=0;

    It is hard to tell if it is actual or something the forum did (which it does), but you should not have spaces where there appear to be...
    con.sidea.flip. addEventListener (MouseEvent.CLICK, on flip);
    con.sideb.flip. addEventListener (MouseEvent.CLICK, on flip);
    should be...
    con.sidea.flip.addEventListener(MouseEvent.CLICK, onflip);
    con.sideb.flip.addEventListener(MouseEvent.CLICK, onflip);

  • Getting error... 1084: Syntax error: expecting leftperan before colon?

    I am trying to learn flash and make forms with them.
    I keep getting this error... 1084: Syntax error: expecting leftperan before colon
    here is my code
    function sent:(e:Event):void
    why am I getting this error?

    oh... silly me.
    Its fixed...
    function sent(e:Event):void
    Sorry

  • 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.

Maybe you are looking for