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.

Similar Messages

  • Can't find filecache to stop ICERegions.htm errors on opening dw cs4

    Hi
    I have recently started getting this error on opening DW cs4.
    "The following translators were not loaded due to errors ICERegions.htm has configuration that is invalid"
    I also get javascript errors when I try to save (although save us seems to work ok) and I can't cut and paste.
    I searhced and found this http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19105#dat which says (point4) - Delete the WinFileCache-7A9586CB.dat, MacFileCache-BFE7CE2E.dat, or FileCache.dat and then talks about how the file name might be slghtly different.after the "Filecache" bit.
    I have searched my hard drive for "filecahce" and there was no such file seems to be there.
    I am using win xp pro and cs4
    ANy help appreciated
    thanks
    Edward

    WHoops - feeling a bit stupid now...
    searhced in the adobe folder, but its in user/applications....
    The problem appears to be sorted - so thank you me, and anyone else who thought about ansering this post!
    E

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

  • Error opening images in CS4

    Hello,
    i've installed Adobe Photoshop CS4 on my computer with other apps, such as Adobe Bridge CS4, Adobe Extension Manager CS4 and others.
    It runs normally, but when i would open an image file (any type) or PSD it freezes for a few seconds and then it shows me an error message "Adobe Photoshop CS4 has stopped working". My operating system is Windows 7 Ultimate x86 and my graphic card is NVIDIA GeForce 7025 (drivers updated to the newest version). Where's the problem???
    Best regards,
    Mish0

    function(){return A.apply(null,[this].concat($A(arguments)))}
    Mish0 wrote:
    NVIDIA GeForce 7025 (drivers updated to the newest version).
    Is the latest driver current for that card?  Latest might not be good enough if nVidia has dropped it out of support.
    You could try disabling the OpenGL Drawing setting in Edit - Preferences - Performance.  If that works around the problem, and if nVidia isn't actively releasing new drivers, you may need to get a new video card.
    -Noel

  • Application error and crash in cs4

    All- I just reinstalled cs4 photoshop and I keep getting an application error that the memeory can not be read.  Can anyone tell me why? I was having this same problem on my old computer, I have just gotten a new one, and have reinstalled but still get the error.
    thansk in advance!
    Missy

    Does your computer meet the system requirements for CS4?
    If not, that might be the problem.
    Also, when you reinstalled CS4, did you restore anything from your old installation?
    If no, I would advice you to try and make a complete uninstall, delete all folders after uninstalling, then try to make a new and clean installation.
    If the problem still exists, can you please provide the full error message?
    Another thing is if you have a lot of programs and stuff running, that could be why you get this error message, try to restart your PC, then open up only CS4 after the restart, see if you get the error when only running CS4.

  • Error 1603. Photoshop CS4

    Alright, so I recently got Photoshop CS4, for some odd reason when I had to do a system restore, it messed up. Not sure why, but I got the screen to accept or decline the user end license agreement, when I clicked to accept it, it just went away and nothing happened. So I uninstalled it, and tried reinstalling it, now every time I try, it gets right to the end, where it's installing Adobe Bridge CS4 and it comes up with an error saying it had problems installing photoshop CS4 and then asks me if I want to continue with the installation, I click continue, and it finishes, but I get an error message at the end again. When I click more information I get this:
    Adobe Photoshop CS4
    Error:
    Error 1603. Fatal error during installation.
    Adobe Photoshop CS4
    Error:
    Error 1603. Fatal error during installation.
    Adobe Bridge CS4
    Error:
    Error 1603. Fatal error during installation.
    ne
    Adobe Device Central CS4
    Error:
    Error 1603. Fatal error during installation.
    I'm not sure why I'm getting this error, please tell me someone knows what the hell is going on here? Lol. Because people are going to ask here are my specs:
    Model: HP Pavilion dv6700 Notebook PC
    OS: Windows Vista
    RAM: 2g
    Free HD space: 170g
    Complete HD space: 250g
    Processor: AMD Turion(tm) 64 X2 Mobile Technology TL-60 (2 CPUs), ~2.0GHz
    BIOS: PhoenixBIOS 4.0 Release 6.1 (you probably won't need this, lol)
    Graphics: NVIDIA GeForce 7150M / nForce 630M
    All help is EXTREMELY appreciated. :D Thanks in advance.

    I just got the trial version to install after trying for 12 hrs.
    I'm on Vista Home basic, acer laptop, I tried everything ..
    I edited the registry (see this post
    Alan Musgrove, "critical error during PS CS4 installation" #20, 22 Jan 2009 12:56 pm and deleated the keys back to default), turned off firewall and anti virus, disconnected from the internet, shut down all my running programs including the acer empowering technology application( using windows taks manager) ran adobe wincleancs4 script twice, then cs3 clean script, made sure the adobe cs4 trial file that I downloaded was on my desk top, then turned off the uac (user account control).
    Whilst running the clean up scripts to level 2 (maximum) I also chose the option to remove the adobe media player . One of the clean up scripts gives the option to do this, can't remember which one.
    I already have shockwave player and reader 9.1 installed, but I chose to install all the items on the trial. It worked like a dream.
    I tried every fix you could imagine before, but IMHO it was probably running Both clean scripts to (level 2 with the remove media player option) as explained and finally turning off the UAC that did the trick.
    Maybe if I'd turned off the uac first. I may not have had to do the others.
    all in all, by doing everything above, it finally worked.
    Hope that helps someone.
    Thanks all.

  • Error message after transfering CS4 from my old computer

    I am trying to transfer my CS4 suite onto my new macbook pro from my old macbook pro.  I transfered all of my files from the old to the new but when I try to open a file in the applications I am getting this error message:
    /Library/Application Support/Adobe/Adobe Version Cue CS4/Client/4.0.0/VersionCue.framework
    Also, my cs4 installation disc does not work. When I double click the setup button, the icon bounces and then disappears. Is there a way I can download the program and reinstall the suite using my serial number rather than using the disc? The first time I installed the program, I had the same problem with my purchased DVD's.

    I think you have used Time Machine to backup and move your data from old machine to new one. If so, your CS4 has gone corrupt and you might face such issues. You need to uninstall this existing installation of CS4 and then re-install CS4 again.
    < Uninstall CS4 using its uninstaller from Utilities->Adobe Installers Folder
    < Download and install the Adobe Creative Suite Cleaner Tool and remove the reminents of Creative Suite applications.
    < Empty the Temp folder(Go->Go To Folder->/tmp)
    < Empty the Trash.
    < Reboot the machine and install CS5.5
    < Download Master Collection CS4 using the below link but make sure first you read the download instructions properly. http://prodesigntools.com/download-adobe-cs4-and-cs3-free-trials-here.html
    < Install CS4 and check.
    Hope that Helps!

  • Error message when installing CS4 design standard

    When installation begins the "checking system profile" comes up and about 2 seconds later the follow error message comes up - "setup error - setup has encountered an error and cannot continue. Contact Adobe customer service". I installed on an older laptop I have to make sure the disk was fine and it installed just fine, so I don't think it is the disk. I have uninstalled previous Adobe product and run cleanscript for CS3 and CS4. I am using Window XP and the laptop has all the other system requirements Adobe lists for CS4 - Does anyone have any suggestions? Thanks!

    Tend to agree. You probably downloaded a wrong language version of the installer. Doublecheck that and download again.
    Mylenium

  • Error trying to install CS4 design premium on windows vista home premium

    I'm having trouble installing CS4 design premium, as soon as it does the checking system it comes up with an error that says I need windows XP sevice pack 2 and some other windows.  I have Windows vista home premium and all the other requirements, so i'm not sure why it's saying that?  I do have CS3 installed but I didn't want to unistall it before I installed the CS4, cause then I wouldn't have anything to work on.  The CS4 is brand new and I have it installed with no problems on another computer that has windows XP.  Would I have to uninstall CS3 before I try to install it?  I'm afraid that I will be left with neither if I do that and this was not a cheap investment to take that chance.  Does anyone know how I could get CS4 design premium installed?
    Thank you
    Jorge Gonzalez

    You should npt have to uninstall anything except Acrobat for CS4 to install. You can call tech support for free installation support.

  • Error message in Dreamweaver CS4

    Hi all,
    I wonder if anybody can help me. I've recently purchased Web
    Premium CS4, and I've started to get an error message in
    Dreamweaver.
    The message reads as follows: "A script in file C:\Program
    Files\Adobe\Adobe Dreamweaver
    CS4\Configuration\Shared\Common\Scripts\dwscriptsExtData.js has
    been running for a long time. Do you want to continue?"
    When I click 'yes', the message disappears, and then
    reappears immediately. If I click no, I get another error message,
    after which the original error pops back up.
    This is starting to annoy me! I only purchased last week!
    Any ideas?
    Thanks

    Neil_Page wrote:
    > Hi all,
    >
    > I wonder if anybody can help me. I've recently purchased
    Web Premium CS4, and
    > I've started to get an error message in Dreamweaver.
    >
    > The message reads as follows: "A script in file
    C:\Program Files\Adobe\Adobe
    > Dreamweaver
    CS4\Configuration\Shared\Common\Scripts\dwscriptsExtData.js has
    > been running for a long time. Do you want to continue?"
    >
    > When I click 'yes', the message disappears, and then
    reappears immediately. If
    > I click no, I get another error message, after which the
    original error pops
    > back up.
    >
    > This is starting to annoy me! I only purchased last
    week!
    >
    > Any ideas?
    >
    > Thanks
    Sounds like an extension may be incompatible with CS4. Turn
    them all off
    and see if that helps. Then turn them back on one by one.
    Posting Guidelines
    http://www.adobe.com/support/forums/guidelines.html
    How To Ask Smart Questions
    http://www.catb.org/esr/faqs/smart-questions.html

  • Error message in photoshop cs4

    I am trying to download ExtractPlus into photoshop cs4 extended, and I get an error message that says "could not complete your request because it is not the right kind of document.  I realize I have to go into windows and change users etc. and I have yet the error box comes back regardless of what I do.  Can anyone help?  Thanks,

    There are two versions of the plug-in in the Goodies folder, 32-bit and 64-bit. Each has the same name (why?) but sits in a separate folder. Each goes in the appropriate folder on your System drive. I would do both, regardless of which version of Photoshop you use now.
    This is shown in the two screen shots below.
    32-bit path:
    64-bit path:

  • Error when opening Photoshop CS4

    I own a new dell laptop with Window 7 OS. About 1 month after I installed Adobe CS4, I started getting an error everytime I opened up Photoshop: "Photoshop has encountered a problems with the display driver, and has temporarily disbled GPU enhancements. Check the video card manufacturer's website for the latest software."
    I contacted Dell to see why I was getting that error. The technical support staff at Dell was unable to figure it out and said I needed to contact you. Do you know why I would get this error 1 month after I installed it?
    Cindee

    Many laptops do not have very good video adaptors and yours may not meet the demands of CS4 in terms of OpenGL performance.
    This could cause the error message. Try updating the video drivers and if that doesn't help, disable OpenGL in Edit > Preferences > Performance.
    For better understanding of this issue see: http://go.adobe.com/kb/ts_kb404898_en-us
    Also: http://go.adobe.com/kb/ts_kb405711_en-us

  • Error 150:30 Ps CS4

    recently sold laptop and have migrated to a new one I now get error 150:30 when I try to open the programme. am on a macbook pro with mountain lion

    You  can also download the Photoshop CS4 Mac installer here:
    http://prodesigntools.com/download-adobe-cs4-and-cs3-free-trials-here.html
    Just be sure to follow the instructions or the download link won't work.
    It will install as a trial, input your serial number to license it.

  • Error 150:30 for CS4

    I bought a new Mac OS 10.9.4 and get "error 150:30" after migrating Acrobat and CS4.  I went to link suggested by others, but I do not have a FlexNet Publisher folder to delete.  Any other suggestions on how to remedy?

    Migrating software does not work for Adobe software.
    It must be installed from scatch.

  • HELP!  possibly lost file twice because of same error... (CS4)

    hello.
    i have created a poster with embedded smart objects and multiple layers that is fairly complex in photoshop CS4.  I have made this poster twice and each time has taken a day to create the thing. i embedded a smart object that is a floor in the image and using a texture that the client provided.  i had to do it this way because they have not made up their mind about which floor texture they want to use for the poster, and by doing so it would be easier to change the texture if they do change their mind with a smart object.  so, i created a fairly large embedded smart object 'floor' that i had to apply a 'perspective' transform to that layer.  when i did this, the smart object handles go about 4-5 times wider than the actual dimensions of the poster width, which is normal when you apply a perspective transform to an object.  everything worked and looked fine...and i saved everything locally in one folder, including the imported psd 'floor' smart object. 
    i have had this major error two times.  i did the exact same process both times i have created this thing and i have gotten the identical error message each time i tried to re-open up this file for changes from the client.  the error is:
    "Could not complete your request because the file is not compatible with this version of photoshop"
    i really need to open this file without having to recreate it AGAIN.  PLEASE HELP!!!! 
    note: when i had the second version of the poster open after i created it again, i did a save as and made a copy because i had to make an A4 size print ad for the same thing, when doing this i converted the 'floor' smart object to a raster layer.  this file does open and i have no problems with it.  but i can not use it for the poster because the dimensions are considerably smaller than the poster and resolution is lost. 
    after doing some searching online i have not found any solutions for this and i'm desperate to find anything to get this file open so i don't have to recreate this a third time.  but, if i do not find help i thought i would mention what i believe to be the culprit of the problem...the gigantic embedded smart object with perspective transform that is much wider than the actual dimensions of the document.
    any help or advice is GREATLY APPRECIATED!
    thanks.

    update...
    ok. after the third recreation of the file and losing the file again, i downloaded the gimp open up the psd.  this was a suggestion in another forum i read online.  i was able to get the psd open in the gimp.  i then saved a copy with another name and it warned me that i could not save the file because the width of the document was larger than 30,000 pixels.  this was because the smart object perspective 'floor' layer was so wide as i mentioned previously.  i then cropped that layer to the visible pixels on the canvas and saved it as a psd.  then i was able to open the file in photoshop...but i did lose all of my layer styles and all of my masks were moved and had to be redone...but, at least i was not completely starting over so it is better than nothing. 
    in conclusion...i suspect the problem is what the gimp said when i tried to save a copy.  don't have your document layers and/or document larger than 30,000 pixels and you should be ok...in case anyone else has run into this problem.

Maybe you are looking for