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.

Similar Messages

  • 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")

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

  • Formula Node error: left brace required ???

    Hi,
    I'm trying to use a formula node to do a simple line calculation. However I'm receiving this error and I'm not sure why.
    Formula Node: left brace required
    Error on line 1 is marked by a '#' character: "y = 0.0183*x -# 0.2982;"
    I've tried replacing the y-intercept with a variable, but the same error results.
    Anyone know what to do?
    Thanks in advance.

    What version of LV are you using? The formula:
    y = 0.0183*x-0.2982;
    works perfectly fine in V6.0.2...
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • After Effects Error: Tracker_Register: Missing Suite ( 1 :: 0 )

    Product: AE CS4
    Version: 9.0
    OS: OS X 10.5.7
    One day this error just sprung up on me, after having worked fine for quite a while. Strangely, I have scoured the internet and found no mention of this specific error. The error happens upon launching After Effects and after clicking OK, the application shuts down. It does not ever reach the user interface. The loading splash screen comes up and then the errors come up shortly after.
    The two error messages come up one after the other and read in this order:
    "After Effects error: Tracker_Register: missing suite. ( 1 :: 0 )"
    "After Effects can't continue: Failed to register built-in motion tracker."
    I have attempted to reinstall After Effects entirely, even going as far as to wipe all the associated files that are left behind after an uninstall.
    I will attempt to update AE and will report back the progress on that.
    UPDATE
    Updated AE to 9.0.2
    There are now three errors, including the above two. The third error reads: "After Effects can't continue: unexpected failure during application startup"

    Okay, let's do this one step at a time. Removing components without proper uninstall procedures can indeed be dangerous, but I don't think that's the issue here. If the program reports an entire suite missing (which is merely another way of saying that some pieces of its core code have gone anywhere but here), one of the system libraries is not initializing. This is extremely rare on Macs, so this is even more puzzling. As a first step, I would definitely run a tool like OnyX or Apple's own Repair Permissions and disk health utility to check disk integrity. The thing is, the exact spot on the drive could be damaged and it's in the nature of OSX to not waste space, so it will always try to place files in the same physical spot, if they have the same name and similar properties to the predecessor and that region may actualyl have problems. Therefore updating AE might not solve the matter. Second, check the language settings on the files in your AE directory using right-click - Information. This also works with multiple files selected. If they have different settings, you will get a warning and may need to select them separately. On the info panel, have a look at the language options. If the language in which you run AE is not enabled or you have multiple instances of the same language checked (OSX again stores this per file redundantly), disable/ enable the check marks until everything seems right. While you are on the panel, also have a look at the compatibility infdo (it should refer to intel compatibility) and of course the user permission settings. All users must be at least able to read the files. From inside AE, check, whether you are using the "accelerate panels" option in the prefs. Since tracking is a layer window feature, it may cause issues, if there is something not right with your graphics card settings. Speaking of which, check your monitor settings if everything is right. As a last thing, definitely check your Quicktime install. I'm not aware of any definite problems, but QT is always a good candidate for causing issues of any kind.
    Mylenium

  • HELP! ERROR MESSAGE: Missing PDFMaker Files

    Hello-
    My Adobe Acrobat Professional 7.0 has been running perfectly fine for over a year now. However, today I went to create a pdf. and I received the following error message:
    Missing PDFMaker Files
    Do you want to run the installer in repair mode?
    So I said yes, and then restarted my computer. That didn't fix it.
    I uninstalled Adobe Acrobat Professional and re-installed it. That didn't fix it.
    I really have no idea what to do. It's extremely frustrating because I have CS2 and the phone support people said they couldn't help me because I don't have the newer version. I'm looking for any sort of solution to this problem because it makes this program virtually useless.
    Thanks in advance for your help.
    Chris

    ok i just got mine working. you have 7 i have 8, but its still worth a try. here are the steps i took. i hope this helps good luck
    i did this in excel, so ill use excel as the application, otherwise its outlook or word or whatever your application name is ok oh i have 07 office
    - open excel
    - click the office button (the big yellow button at the top left)
    - click excel options button (at the bottom)
    - click add ins on the left side dialog box
    - do one of the following
         - if pdfmoutlook or acrobat pdfmaker office COM addin is not listed, choose COM Add ins form the manage pop-up menu (at the bottom) and click go
         - if pdfmoutlook or acrobat pdfmaker office COM addin is listed under Disabled Application Addin, select disabled items from the manage pop up menu and click go
    - select pdfmoutlook or acrobat pdfmaker office COM addin and click ok
    - restart your application (again i was in excel)
    i choose acrobat pdfmaker not outlook
    i googled
    activate PDFMaker in Microsaoft Office and clicked on the one that says
    acrobat 9 pro extended convert a file using pdf maker
    for some reason (im not very good with these forums) i cant copy the link into this wondow and its extremly long
    it begins
    help.adobe.com/en_US and so on....so google that and click on that link
    let me know if this owrked ok

  • ORA-00906: missing left parenthesis in Partitiion

    Hi,
    Error issuing while command below:
    ORA-00906: missing left parenthesis
    ALTER TABLE TEST ADD PARTITION DATE_20090904000000 VALUES LESS THAN DATE_MINVALUE
    Any help will be needful for me

    Hi,
    I thing DATE_MINVALUE is a not valid syntax.
    Try with the following. It will work.
    ALTER TABLE TEST ADD PARTITION DATE_20090904000000 VALUES LESS THAN (TO_DATE('04-SEP-2009', 'DD-MON-YYYY'));
    Thanks&Regards,
    Rajam Raju.

  • ORA-00906: missing left parenthesis

    I'm a newbie trying to run: create table test_table ( col1 varchar2 null, col2 number null );
    from: Home>SQL>SQL Commands
    with the following error message: ORA-00906: missing left parenthesis
    Can someone point out what I'm doing wrong?
    Thanks, Tracey
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production

    Try it after removing both occurences of "null".
    I beleive that you only specify that if you want "not null", otherwise allowing a null value is assumed.

  • Error " Data missing for the entry check while creating a new waste code

    Hi all, While setting a new Waste code I get the error " Data missing for the entry check, correction:". while filling the NAM- WASTECOCAT - LER item.
    This sould look for the catalog's name included in the phrase set but for some reason it doesn't find it giving me this error.
    I am changing original Characteristics, phrase set, classes, and value assignment type. Just to have my own estructure with Znames for all of them.
    I have also change the enviroment parameter "WAM_PHRSET_WACATLG" with the name of my phrase set.
    I have checked everything several times watching for typos or looking for a missing step.
    I have even tried including my new Z's characteristics in the classe and living the original SAP_EHS_1024_001_WASTE_CATALOG. (changing the enviroment parameter WAM_PHRSET_WACATLG to SAP_EHS_1024_001_WASTE_CATALOG) and it works.
    I will like to change this characteristic by Z_EHS_WA_WASTE_CATALOG
    Phrase set to Z_EHS_WA_WASTE_CATALOG.
    enviroment parameter WAM_PHRSET_WACATLG= Z_EHS_WA_WASTE_CATALOG
    After matching up the master data It should work fine but I might be missing something to get it running ok.
    ¿Any idea?
    Regards,
    Alvaro

    Hello Juan Carlos, the value and class that I want to duplicate and doesn't work is for Waste Code, I have also duplicated the one you have displayed (waste pproperties) without any problem.
    1.I have duplicated and changed class SAP_EHS_1024_001. to Z_EHS_WA
    2. Create a copy of the 5 characteristics included in this class.
    SAP_EHS_1024_001_WASTE_CATALOG
    SAP_EHS_1024_001_WASTE_CODE
    SAP_EHS_1024_001_WA_SUBCATEG
    SAP_EHS_1024_001_WA_CATEGORY
    SAP_EHS_1024_001_REMARK
    change the name by
    Z_EHS_WA_WASTE_CATALOG
    Z_EHS_WA_WASTE_CODE
    Z_EHS_WA_SUBCATEG
    Z_EHS_WA_CATEGORY
    Z_EHS_WA_REMARK.
    I checked the funcion C14K_WASTECATLG_CHECK is in the value of the Z_EHS_WA_WASTE_CODE characteristic
    I checked the funcion C14K_WASTECODE_CHECK is in the value of the Z_EHS_WA_WASTE_CATALOG characteristic
    3. Create phrase sets for each new category. with same name.
    4. Match up the master data.
    5. Change the enviroment parameter.to Z_EHS_WA_WASTE_CATALOG
    I think I have followed all the steps, but for some reason it doesn't find the catalog
    The phrase for the catalog is EWC in english and LER in spanish.
    Regards
    Alvaro.

  • Error message: Missing PDF maker files in Word 2007

    OK, I am beyond frustrated. I have had nothing but trouble with Windows Vista and Adobe Acrobat. Please help!!!
    What happens: first, the pdf addin for Word 2007 suddenly becomes disabled, for no apparent reason. Forget about trying to re-enable it through the Add-Ins menu, because Word tells me that the "connected state of Office Add-Ins registered in the HKEY_LOCAL_MACHINE cannot be changed". This is a problem for me, because I use a special font (Vietnamese) that sometimes gets corrupted when running pdf maker. The only consistent way I have found to avoid this problem is to run the pdf maker as "Quick PDF" and as far as I can see that option is only available through the pdf addin in Word, I have never been able to find it when I open the Acrobat program and create a pdf from there.
    Second problem: shortly after the pdf addin becomes disabled, my Acrobat program loses the ability to create pdfs altogether. I get the error message "Missing PDF maker files". Yes, I have tried repairing the installation and re-starting my computer per the instructions given. It doesn't fix the problem. I also tried looking in the Knowledge Database on this website, but it appears that the instructions they have to fix the problem there are for earlier versions of Word, not 2007, because my version of word does not look like the version of Word in their little videos.
    This is the second time this has happened. The first time I resolved the problem by a) re-installing Acrobat, which is a pain because it involves calling Adobe and wading through their customer service to get a new installation number, and b) paying a computer repair service to dig deep into the guts of my computer and convince it to change the Office Add-ins to allow the pdf addin again. It worked for about 6 months, and now I have the same problem again. For some reason Vista is spontaneously disabling Acrobat.
    I simply cannot deal with this every few months. We all know that Vista is a crappy program, but I run a business and I need a program that works with whatever crappy program Microsoft puts out. Please, can anyone give me suggestions about how to re-enable these functions when Vista disables them?
    Thanks in advance!
    Alycia

    for Office 2007, see if this Microsoft product will work for you
    http://www.microsoft.com/downloads/details.aspx?FamilyId=4D951911-3E7E-4AE6-B059-A2E79ED87 041&displaylang=en

  • Cannot install Designer. Install error 1158

    Has anyone had a problem installing LiveCycle Designer?  I keep getting (Installshield) error "1158", which apparently means it's having problems with the content of the setup.ini file strings. However, that file and its contents don't appear corrupt.  I've tried installing several times and have even re-downloaded the zip, all without sucess. 
    Any ideas? I am running Windows 7 32-bit. Note that this OS isn't specifically mentioned in the setup.ini file, but online discussions suggest that the Designer will run under Win 7.
    Afrikaans
    Albanian
    Arabic
    Armenian
    Azerbaijani
    Basque
    Belarusian
    Bulgarian
    Catalan
    Chinese (Simplified)
    Chinese (Traditional)
    Croatian
    Czech
    Danish
    Detect language
    Dutch
    English
    Estonian
    Filipino
    Finnish
    French
    Galician
    Georgian
    German
    Greek
    Haitian Creole
    Hebrew
    Hindi
    Hungarian
    Icelandic
    Indonesian
    Irish
    Italian
    Japanese
    Korean
    Latin
    Latvian
    Lithuanian
    Macedonian
    Malay
    Maltese
    Norwegian
    Persian
    Polish
    Portuguese
    Romanian
    Russian
    Serbian
    Slovak
    Slovenian
    Spanish
    Swahili
    Swedish
    Thai
    Turkish
    Ukrainian
    Urdu
    Vietnamese
    Welsh
    Yiddish⇄Afrikaans
    Albanian
    Arabic
    Armenian
    Azerbaijani
    Basque
    Belarusian
    Bulgarian
    Catalan
    Chinese (Simplified)
    Chinese (Traditional)
    Croatian
    Czech
    Danish
    Dutch
    English
    Estonian
    Filipino
    Finnish
    French
    Galician
    Georgian
    German
    Greek
    Haitian Creole
    Hebrew
    Hindi
    Hungarian
    Icelandic
    Indonesian
    Irish
    Italian
    Japanese
    Korean
    Latin
    Latvian
    Lithuanian
    Macedonian
    Malay
    Maltese
    Norwegian
    Persian
    Polish
    Portuguese
    Romanian
    Russian
    Serbian
    Slovak
    Slovenian
    Spanish
    Swahili
    Swedish
    Thai
    Turkish
    Ukrainian
    Urdu
    Vietnamese
    Welsh
    YiddishDetect language » Spanish

    You do meet the hardware requirements. Otherwise you wouldn't have been able to purchase ML.
    If you're connected wirelessly to your router, connect with Ethernet.
    If you're connecting through a proxy, connect directly.
    Boot in safe mode (shift key down at startup) and try again.

  • Partition failed with the error:  No space left on device

    I used Boot Camp Assistant (for instaling Windows XP) and there was Partition error:
    +*The disc cannot be partioned because some files cannot be moved.*+
    +Back up the disk and use Disk Utility to format it as a single Mac OS Extended (journaled) volume. Restore your information to the disk and try using Boot Camp Assistand again.+
    so I tried Yasu, verified permission, verified disk, and everything was ok, but in Disk Utility I was trying to split or change size of my disk but there is one error again:
    +*Partition failed.*+
    +Partition failed with the error: No space left on device+
    but I have 64GB free space!
    how must I "+Restore your information to the disk+" or what else can I do?
    thanks!

    arajs wrote:
    I used Boot Camp Assistant (for instaling Windows XP) and there was Partition error:
    +*The disc cannot be partioned because some files cannot be moved.*+
    +Back up the disk and use Disk Utility to format it as a single Mac OS Extended (journaled) volume. Restore your information to the disk and try using Boot Camp Assistand again.+
    so I tried Yasu, verified permission, verified disk, and everything was ok, but in Disk Utility I was trying to split or change size of my disk but there is one error again:
    +*Partition failed.*+
    +Partition failed with the error: No space left on device+
    but I have 64GB free space!
    how must I "+Restore your information to the disk+" or what else can I do?
    thanks!
    This is a standard error message.
    If you would have checked into the bootcamp forum you would have instantly found the solution.
    http://discussions.apple.com/forum.jspa?forumID=1244&start=0
    All that error message means is that you do not have enough conguous disk space available. No big deal at all for an older system. You have bits of files strewn over the "free space."
    The solution as you would find in the bootcamp forum is to clone your HD, using a file-file clone, then test the clone to be sure it is working and then to erase your HD and clone back.
    Works every time.
    Message was edited by: Theodore

  • I keep getting the error message "Missing PDFMaker files. Do you want to run the installer in repair mode"

    I keep getting the error message "Missing PDFMaker files  Do you want to run the installer in repair mode"when I try to convert a file into a pdf.  I have tried uninstalling then reinstalling but I continue to get the message.  I am able directly print file, but there are some errors in the pages, but some of them have font errors. Please advise.

    Hey Suzanne,
    Could you please let me know what Acrobat version are you using and what kind of file are you trying to convert to PDF.
    If you are using an MS Office application, then PDF Maker has to be an active plug-in for the PDF conversion.
    Have you tried using Print to PDF option from the File menu for the same?
    Please check and then let me know.
    Regards,
    Anubha

  • Missing Left line on all the invoices when printing from APPS

    Hi Guys,
    I need help here as i am learning XML. I customized one of my invoices RTF template and looks fine. When i generate the Invoice output from Apps through concurrent manager I am getting output with missing left line. When i tried to print from View Output its printing fine.
    Is anyone came across this? Please let me know if anybody has solution.
    Thanks in Advance,
    Kumar

    When you hit Print, is the dialog that comes up really small? If so, there's a triangle you can hit to the right of the Printer menu in the dialog that'll expand it to full size. This was something Apple added in 10.5 to simplify printing, but it's caused a lot of confusion.
    If that's not it, are any of the menu items in the middle menu (the one that starts out saying "Layout") crossed out? If so, you're probably running in 64 bit mode and the printer driver probably does not work in 64 bit. If you're using the latest driver, then try launching Lightroom in 32 bit mode (in the Finder, do Get Info on the application and check Open in 32 Bit Mode).
    If neither of those work, let me know.
    -kevin
    Adobe Lightroom Engineering

Maybe you are looking for

  • How do I make it so there is no vibration for a new message while in iMessage conversation

    Hello all. I have an iPhone 5 and was experiencing battery problems. I reset all settings and this appears to have fixed the problem. However I am missing some of my old settings and I am wondering how to get them back. I can't quite remember (terrib

  • Binary search tree help...

    Ok, maybe someone can help me with this one. Here's the code that I'm having trouble with:   public Object findValue(Comparable aKey)     Node result = (Node) findByKey(aKey);     if(result != null && result.getNodeKey() == aKey)       return result.

  • Treo 755p Resets When Opening Attachments from Email or Office Synch

    I am using documents to go.  When I try to open an attachment, it appears to download then when download is complete, it resets and I can't find the document. Any suggestions?

  • TS1347 Recurring Calendar Meetings by Day

    I just received and iPhone 4S for Christmas. I need to set up a recurring event by the day not date. Example YCHS Meeting the first Thursday of each month.

  • Managed MetaData Service

    Is there any way around the limit of 20,000 items for the managed terms? Managed terms (does not include enterprise keywords) 20,000 (20 per term set) I need some input on this before I can proceed with migration from 2007 to 2013.