Syntax error 1158: missing left brace({) before the function body as3

hey guys  PLEASE help ME i have looked everywhere and can't find a thing on how to fix it
stop();
btnHelp.addEventListener(MouseEvent.CLICK, GoToScene2);
btnMap.addEventListener(MouseEvent.CLICK, GoToScene3a);
function GoToScene2(event)GoToScene3a(event){
gotoAndPlay("meow")
gotoAndPlay(1,"Scene 3a")

You have two functions mashed together...
     function GoToScene2(event)GoToScene3a(event){
          gotoAndPlay("meow")
          gotoAndPlay(1,"Scene 3a")
should be....
          function GoToScene2(event:MouseEvent):void  {          gotoAndPlay("meow")
     function GoToScene3a(event:MouseEvent):void  {
          gotoAndPlay(1,"Scene 3a")

Similar Messages

  • Error 1158 "missing left brace"

    the following is my code. as you can infer from it's
    simplicity, I am inexperienced.
    import flash.events.MouseEvent;
    import flash.events.IEventDispatcher;
    fatmax.addEventListener(MouseEvent.MOUSE_OVER,extend);
    function extend(event:MouseEvent)void:
    trace("extended");
    the compiler gives the error of: 1158: Syntax error: missing
    left brace ({) before the function body.
    Yet, as can be clearly seen, there is a left brace.
    also, i do not intend for this to be void, but am just trying
    to get the button to work right now. When I later want it to play a
    motion tween that is on a different layer, how do I do that?

    Hi,
    import flash.events.MouseEvent;
    import flash.events.IEventDispatcher;
    fatmax.addEventListener(MouseEvent.MOUSE_OVER,extend);
    function extend(event:MouseEvent)
    :void
    trace("extended");
    You can then use the gotoAndPlay / myMovieClip.gotoAndPlay
    function.

  • Error has occured during install before the requested operation for i tunes could not be completed your system has not been modified

    error has occured during install before the requested operation for I tunes could be completed  Your system has not been modified to complete the install run the installer again and I have it still won't work

    See:
    Trouble installing iTunes or QuickTime for Windows

  • Google tell me to insert their codes a site map in the head section before the first body section.. but where is it on my welcome page?

    Google tell me to insert their codes for a site map in the <head> section before the first <body> section.. but where in exact terms is the head & body section on my 09 iwebsite?

    It's been a while since I had to verify my sitemap with Google, but if I remember, there were two options for verification. The one I chose was an HTML file verification. That's a file that would be put in your Site Folder in GoDaddy. Google would then crawl your site to verify that way. I found that much easier than putting a file in the website itself.
    It would be a file that looks like this:  googlebe235d8cb7e91037.html
    And would live in your Site Folder on Godaddy like this:

  • Syntax error fix needed for "...getHelperForLanguage: function(language) null,..."

    Getting the syntax error, and having limited technical experience, I do not know how to fix the problem. This is in regard to a web site asset, an mp3 file. I am having problems getting such files to play within Chrome (though they play in Internet Explorer, for instance), so I am trying to troubleshoot from within Dreamweaver, as well as from the Chrome extensions side.
    Here is the line including the syntax error, with additional lines
        getInterfaces: function(countRef) {
            var interfaces = [Ci.nsIDOMGeoPositionCoords, Ci.nsIClassInfo, Ci.nsISupports];
            countRef.value = interfaces.length;
            return interfaces;
    getHelperForLanguage: function(language) null,
        contractID: "",
    Thanks for help.

    Use HTML5 <audio>. 
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5 Audio Demo</title>
    <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    </head>
    <body>
    <audio controls>
    <source src="path/yourSong.ogg" type="audio/ogg">
    <source src="path/yourSong.mp3" type="audio/mp3">
    <p>Ooooops.  Looks like your browser is out of date and doesn't support the audio tag.  Please upgrade to a modern browser.</p>
    </audio>
    </body>
    </html>
    Nancy O.

  • Missing namespace prefix in the soap body

    Hello
    The soap body that is produced along with soap header for my webservice. I
    am the client talking to a server. The first piece in RED color is what
    weblogic generates to send to the client but does NOT work. The one below
    though works fine which is what I manipulated by hand to send to the
    server. I have no idea why weblogic drops the namespace prefix in the
    BODY.
    -Narahari
    The message is as shown below
    POST /FS HTTP/1.1
    Host: asgappsrv10:6211
    Content-Type: text/xml; charset=utf-8
    Connection: close
    SOAPAction: "ListDomains"
    <?xml version="1.0" encoding="utf-8"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <env:Header>
    <n1:Credentials xmlns:n1="urn:criticalpath:fs:api:1.0"
    xsi:type="n1:Credentials">
    <Username xsi:type="xsd:string">admin@default</Username>
    <Password xsi:type="xsd:string">password</Password>
    <SessionId xsi:nil="true"/>
    </n1:Credentials>
    </env:Header>
    <env:Body
    env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <Fulfill xmlns:n2="urn:criticalpath:fs:api:1.0"
    xsi:type="n2:Fulfill">
    <Request xsi:type="xsd:string">ListDomains</Request>
    <RequestAttributes soapenc:arrayType="n2:Attribute[0]"/>
    <Async xsi:type="xsd:boolean">false</Async>
    </Fulfill>
    </env:Body>
    </env:Envelope>
    When you see the data carefully, the env:Body has the Fulfill element. But
    it does have a namespace prefix on it. This causes the call to fail. If I
    change the above segment manally to look like
    POST /FS HTTP/1.1
    Host: asgappsrv10:6211
    Content-Type: text/xml; charset=utf-8
    Connection: close
    SOAPAction: "ListDomains"
    <?xml version="1.0" encoding="utf-8"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <env:Header>
    <n1:Credentials xmlns:n1="urn:criticalpath:fs:api:1.0"
    xsi:type="n1:Credentials">
    <Username xsi:type="xsd:string">admin@default</Username>
    <Password xsi:type="xsd:string">password</Password>
    <SessionId xsi:nil="true"/>
    </n1:Credentials>
    </env:Header>
    <env:Body
    env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <n2:Fulfill xmlns:n2="urn:criticalpath:fs:api:1.0"
    xsi:type="n2:Fulfill">
    <Request xsi:type="xsd:string">ListDomains</Request>
    <RequestAttributes soapenc:arrayType="n2:Attribute[0]"/>
    <Async xsi:type="xsd:boolean">false</Async>
    </n2:Fulfill>
    </env:Body>
    </env:Envelope>

    Hi All,
    we are also facing the same issue, Please provide the solution if anyone knows. We are also using the SOA Suite 11g Version.

  • Error in report when executing pl/sql function body returning sql query.

    Hi,
    I have used the pl/sql function body returning sql query for creating a report. I have created a datepicker(
    P10_TASK_DATE) which can be submitted.The code is as below
    DECLARE
    v_sql varchar2(3000);
    BEGIN
    if :P10_TASK_DATE is not null THEN
    v_sql:='select
          * from tasks';
    return v_sql;
    else
    v_sql:='select * from discovery';
    return v_sql;
    END IF;
    END;if the date field is empty "select * from discovery" is executed and report is getting generated. But when we give a
    date using date picker the page is submitted and i get "report error: ORA-01403: no data found" even
    though the "tasks" table has data in it. Plz help
    Thanks,
    TJ

    hi
    Please try this
    1. Create 2 region
    1st region source=
    select * from tasks'
    go to the tab -> condition =
    item NOT NULL
    EXpression1 =:P10_TASK_DATE
    this will run whenever the item have any date
    2. open your 2 nd region source code= select * from discovery
    put the condition
    item is  NULL
    EXpression1 =:P10_TASK_DATE
    thanks
    Mark Wyatt

  • I keep getting an error 2048 everytime I try to play back my Maya file that I saved as a qt movie. I just recently updated qt and this is when the errors would pop up. Before the update I had no problems. How can I fix this?

    I updated quicktime a few days ago and now I keep getting error 2048 whenever i try to play back my Maya file after saving it as a qt movie. I had no issues with this before I did the update, after the update I keep getting the error 2048 message. QT will play my earlier Maya movies and other video, it just won't play back my latest work. Help me please, I need this for school.

    The 2048 error message usually suggests the files use MPEG-2 format which is not supported natively on Windows via QuickTime without the additional MPEG-2 Playback Component ($20 from Apple).

  • DataProvider syntax error -why cant 2 components have the same dataProvider

    Hi,
    I am getting the following error:
    Multiple Initializers for property 'dataProvider' (note:
    'dataProvider' is the default property of
    mx.controls.TitleList').
    setup
    i have two components one that is a lineChart the other is a
    titleList. for each I have identified the dataProvider property as
    the same arrayCollection (dataPoints) so my code looks like:
    <mx:LineChart
    id="linechart"
    dataProvider="{ dataPoints }" .... other properties>
    for both components. I had this same error when i tried to
    add a legend component yesterday so it is not limited to just these
    two components. I tried instantiating a variable as a type
    dataProvider, so that it was not being instantiated twice, but no
    such primitive type was available via the auto-complete code
    function. I am not sure what else to try. Thanks,
    Jed

    Greg,
    Thanks again, I figured out the problem. In the mxml I was
    using the category axis tag without having a parent horizontal axis
    tag. So for others here is how a chart needs to be structured.
    correct syntax:
    <LineChart id="linechart1" dataProvider=" {
    myArrayCollection } ">
    <mx:horizontalAxis>
    <!--use the category axis tag to tell the chart what value
    in your array collection you want to use for the x axis-->
    <mx:CategoryAxis categoryField="x"/>
    </mx:horizontalAxis>
    <mx:series>
    <!--Use the line series within a series tag to tell the
    LineChart which y field it should use to draw the line-->
    <mx:LineSeries id="yourFirstYvalues" yField="y"/>
    </mx:series>
    </mx:LineChart>
    <mx:Legend dataProvider = "linechart1" />
    Jed

  • This query eithr has a syntax error or is using features of the langauage not suported in design view

    can anybody tell me what's wrong with this, please:
    SELECT DISTINCT SMS_R_SYSTEM.ResourceID, SMS_R_SYSTEM.ResourceType, SMS_R_SYSTEM.Name,
    SMS_R_SYSTEM.SMSUniqueIdentifier, SMS_R_SYSTEM.ResourceDomainORWorkgroup,
    SMS_R_SYSTEM.Client FROM sms_r_system inner join SMS_UpdateComplianceStatus
    ON SMS_UpdateComplianceStatus.machineid=sms_r_system.resourceid
    WHERE SMS_UpdateComplianceStatus.LastEnforcementMessageID = 9

    Line 4 should probably be
    SMS_UpdateComplianceStatus.resourceid=sms_r_system.resourceid
    Sorry Jason, I have to disagree. If you change that line you will get a provide error. The query is fine the way it is, I have personally test it. I didn't validate the results but it does work correct.
    http://www.enhansoft.com/

  • HT4623 I have error 1669 coming up just before the phone is to restore, have tried multiple computers including macs and still the same

    help error 1669 tried it all

    Hello, paulmonkey. 
    Error 1669 can be similar to error 1.  Try the troubleshooting steps for error one as outlined below.
    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.
    Resolve specific iTunes update and restore errors
    http://support.apple.com/kb/TS3694
    Cheers,
    Jason H.

  • Left Brace Error

    I've copied this word from word from the book, and it gives
    me the error
    "1158: Syntax error: missing left brace ({) before the
    function body.

    I thought it might have been an issue with WHERE I put it,
    because when I throw in another left brace, it whines about not
    having a right brace to finish out before the program ends. So it
    does see the left brace.

  • Error 1158, AS 3, CS4

    I searched the forums for the error, but the methods they used couldn't help my program, it's an Actionsctipt file in AS3 with CS4.
    I am receiving error 1158: Syntax error: missing left brace ({) before the function body.
    Source: public function DirectBlock (e:Event) extends MovieClip :void{  //DirectBlock
    public function DirectBlock (e:Event) extends MovieClip :void{  //DirectBlock
      var root:MovieClip;//Defining root
      var directType:String;//what kind of special block is this
      //accept some values to make it easier to place - type and coordinates
      function DirectBlock(type:String,xVal:int,yVal:int){
       directType = type;//set the directType so that all other functions can use it
       //add the required event listeners
       this.addEventListener(Event.ADDED, beginClass);
       this.addEventListener(Event.ENTER_FRAME, eFrame);
       //setting the coordinates
       this.x = xVal;
       this.y = yVal;

    That error means there is a typo in your code, usually things like using a "{" when you meant to use a "(". It can also happen when you have nested control blocks and you forget a brace. I looked at the code you posted but I don't see anything immediately wrong. You will have to read over your code again, not just that function but also the code directly before or after it. Its going to be something simple, but may be hard to catch.

  • How do I find out how much space I have left on my macbook pro? I downloaded the new mavericks operating system and can't figure it out. Before the space would be at the bottom of my finder.

    I downloaded the new mavericks operating system on my macbook pro and I can't find out how much space I have left. Before the installation of mavericks, storage space left was displayed at the bottom of the Finder window.

    In the Finder, under the View menu there is an option to Show Status Bar.  Select that and you will see the info on the bottom of folders again.

  • Getting syntax error while executing keyfigure routine BI 7.0

    Hello,
    I am writing a very simple keyfigure routine to calculate sales revune using sales quantity and sales price, I am getting error as follows
    - I am in 'Rules Details' screen and I have selected 'Routine' as the rule type. I enter the following code in routine
         RESULT = SOURCE_FIELDS_RULE-/BIC/IO_VB_QU *
         SOURCE_FIELDS_RULE-/BIC/IO_VB_PRC .
    - I hit the check button on the routine page, it says no syntax errors
    - Now I am back in the 'Rules Details' page and I hit the 'Check' button it gives me the following error
    Rule(target IO_VB_REV, group: Standard Group): Syntax error in routine
    Please tell me what is wrong. what should i check

    Hi Vaibhav,
    Here are the details
    - I am loading data from flatfile to an Infocube with 3 keyfigures: IO_VB_PRC (Sales Price) , IO_VB_QU (Sales Quantity), IO_VB_REV (Sales Revune). Getting values for IO_VB_QU and IO_Vb_PRC from flatfile and calculating for IO_VB_REV using routine
    - I created Transformations, and under  Rule Group: Standard Group box I see 'X' sign against 'IO_VB_REV' field, meaning not mapped to any datasource field
    - In rules detail screen, I add two source fields of Rule , IO_VB_QU and IO_VB_PRC. I see IO_VB_REV already added under 'Target fields of Rule' section
    - I then add the only following line to routine
    RESULT = SOURCE_FIELDS_RULE-/BIC/IO_VB_QU *    SOURCE_FIELDS_RULE-/BIC/IO_VB_PRC .
    Clicking on check button it gives no syntax error message. I save and exit back to Rule Details page.
    - I specify 'USD' as the Conversion Type and then click on check button it initially gives me 'Incorrect Input'  written in an information message box and then error that Syntax error in routine
    Let me know what is that I am missing
    Thanks for helping

Maybe you are looking for

  • Damaged image file

    I'm trying to copy an iPhoto library using the Finder, and keep getting the following error message: The finder cannot complete the operation because some data in "IMG_2255.CR2" could not be read or written. (Error code -36) I've tried searching for

  • My dad has a Sony shortwave radio, the ICF2010, that is not working and in need of repair. Help!

    Does this radio still qualify for the Sony exchange program?  Or would I need to send it in somewhere for repair? Thanks! Dan

  • I try to open my itunes and I get an error 7 Windows error 193

    Everytime I try to start up itunes I get an error; Error 7 (Windows Error 193).  I've uninstalled it and then reinstalled the program and I continue to get the same message.  I have no idea what to do.  This happened after I updated my phone to the n

  • How to install WEB PL/SQL?

    When I running "Install Web PL-SQL Generator",I got the following errors: Someone help me, please! No errors. No errors. Package wsglm... Input truncated to 11 characters No errors. Package wsgjsl... No errors. Package wsgfl... No errors. Package wsg

  • ITunes window would not open after upgrade

    Just upgraded to OS 10.4.7, and iTunes 6.0.5. All my software is fully up to date with all the latest. After the upgrade when launching iTunes I have two problems: 1. Intially the program launched. Now iTunes window does not open. Only the Equalizer