Error: Error #2030: End of file was encountered.

Error: Error #2030: End of file was encountered.
I'm getting the above error when my swf is published to a live server. I know it has something to do with the textlayout because if i add the textlayout.swc as embedded code in my .fla I get no errors.

I'm not familiar with the error you're seeing. Can you tell me what link settings you have for TLF? Are you linking it as an RSL, or are you not linking it at all? Is the text in your FLA classic or TLF text? Is the whole project in a single FLA, or are there multiple SWFs that get loaded? Are you getting this error from Flash Pro?
Thanks,
- robin

Similar Messages

  • Error 2030 end of file was encountered

    why do I get error 2030 over and over again when running in device central? my swf has one frame with the code:
    var mySound:Sound = new Sound();
    mySound.load(new URLRequest("SRH1b.mp3"));
    mySound.play();
    var myByteArray:ByteArray = new ByteArray();
    function readSpectrum(event:Event){
    SoundMixer.computeSpectrum(myByteArray, false, 0);
    graphics.clear();
    for(var i = 0; i < 40; i += 4){
    drawSpectrum1(myByteArray.readFloat(), i);
    drawSpectrum2(myByteArray.readFloat(), i);
    drawSpectrum3(myByteArray.readFloat(), i);}
    function drawSpectrum1(myReadFloat:Number, myIteration:Number){
    var myNumber:Number = myReadFloat * 300;
    graphics.lineStyle(0, 0x000000);
    graphics.beginFill(0xFF0099);
    graphics.drawRect((10 * (myIteration / 4)), 10, 10, -(myNumber / 5));}
    function drawSpectrum2(myReadFloat:Number, myIteration:Number){
    var myNumber:Number = myReadFloat * 200;
    graphics.lineStyle(0, 0x000000);
    graphics.beginFill(0xCE7A4F);
    graphics.drawRect((10 * (myIteration / 4)), 10, 10, -(myNumber / 5));}
    function drawSpectrum3(myReadFloat:Number, myIteration:Number){
    var myNumber:Number = myReadFloat * 100;
    graphics.lineStyle(0, 0x000000);
    graphics.beginFill(0x99FF00);
    graphics.drawRect((10 * (myIteration / 4)), 10, 10, -(myNumber / 5));}
    this.addEventListener(Event.ENTER_FRAME, readSpectrum);

    Error: Error #2030: End of file was encountered.
    at flash.utils::ByteArray/readFloat()
    at s_fla::MainTimeline/readSpectrum()

  • Error 2030 end of file was encountered: setpixels

    Hi, I'm trying to understand what is wrong with my code that I get this error.
    var rect: Rectangle = new Rectangle(0,0,newText.width, newText.height);
    var bitmapData: BitmapData = new BitmapData(newText.width, newText.height);
    bitmapData.draw(newText);
    var bitmap: Bitmap = new Bitmap(bitmapData);
    var jpgEncoder: JPGEncoder = new JPGEncoder(90);
    var byteArray: ByteArray = jpgEncoder.encode(bitmapData);
    bitmapData.getPixels(rect);
    //trace(" this bitmapData", byteArray);
    //byteArray = PNGEncoder.encode(bitmapData);
    var mySharedObject: SharedObject = SharedObject.getLocal("republicofcode");
    mySharedObject.data.vwdinfo = byteArray;
    mySharedObject.flush();
    trace("this ughg", mySharedObject.data.vwdinfo);
    // var mySharedObject: SharedObject = SharedObject.getLocal("republicofcode");
    byteArray.position = 0;
    trace(byteArray.position);
    bitmapData.setPixels(rect,byteArray); // <-------------- this is the line that throws the error
    var image: Bitmap = new Bitmap(bitmapData, "auto", true);
    addChild(image);

    is that an experiment or are you trying to accomplish something by ending up where you start?
    and any encoding option (like jpgencoder) is likely to be problematic because of compression used to minimize the bytearray size.  ie, you're going to hit an end of file error with any compression.
    you should manually copy using getPixels, not an encoder:
    var rect: Rectangle = new Rectangle(0,0,newText.width, newText.height);
    var bitmapData: BitmapData = new BitmapData(rect.width, rect.height);
    bitmapData.draw(newText);
    var bitmap: Bitmap = new Bitmap(bitmapData);
    var byteArray: ByteArray = bitmapData.getPixels(rect);
    byteArray.position = 0;
    bitmapData.setPixels(rect,byteArray); // <-------------- this is the line that throws the error
    var image: Bitmap = new Bitmap(bitmapData, "auto", true);
    addChild(image);

  • File Error: could not complete your request because an unexpected end-of-file was encountered

    I saved a painting I was working on in photoshop for the past week, went to open it up this morning and got the following error: could not complete your request because an unexpected end-of-file was encountered.
    I tried opening it up in other programs with no luck. Any suggestions?

    Probably not good news I'm afraid. Hopefully you use Time Machine to keep regular backups of your work?
    Have you tried to open the file in Graphic Converter (shareware application)?
    I find file corruption practically non-existant these days. I would suggest that you maintain your machine. This can be done with Onyx http://www.apple.com/downloads/macosx/system_disk_utilities/onyx.html. Run all the tasks in the "automation" section of this application. 
    If you can do a drive check - checking your hard drive for physical issues might also be a good idea. 

  • "Could not complete your request because an unexpected end-of-file was encountered."

    I have gotten this error message a few times now. "Could not complete your request because an unexpected end-of-file was encountered."
    My file many layers... a total of 100mgs+.  But I work with this kind of file often, so... hmm. It won't open.  Is it corrupted?  Any way to restore?  I can go back in time with our 'time machine program... but that brings me back to having a previous version and many hours of lost work. 
    I use a Mac OS x 10.5.8, Photoshop version 6 from the 2003 CS suite. 
    Thanks for any input or advice.  Rebecca Doyle

    Hello, Rebecca. This forum is for Photoshop Elements, the consumer version of Photoshop. For questions about full photoshop/Creative Suite you'll find more knowledgeable help in the Photoshop forum:
    http://forums.adobe.com/community/photoshop/general
    Good luck!

  • I have a message :- could not initialize photo shop because of an unexpected end-of-file was encountered. How do I remedy this.

    I have a message :- Could not initialize photo shop because an unexpected end-of-file was encountered. How do I solve this.

    Could not initialize Photoshop because an unexpected end-of-file was encountered. | Mylenium's Error Code Database
    Mylenium

  • What is wrong? : "Could not initialize Photoshop because an unexpected end-of-file was encountered." Photoshop CC 2014

    What is wrong? : "Could not initialize Photoshop because an unexpected end-of-file was encountered." Photoshop CC 2014

    Please check following links if they are useful:
    Unexpected end-of-file
    Photoshop CS6 Not Loading: Actions & Preferences Errors
    Two Fatal Error Messages when Starting Photoshop
    Regards
    Rajshree

  • What to do when Photoshop says could not import clipboard because an unexpected end-of-file was encountered

    I have PC, with adobe Photoshop CC 2014 and windows 8. Every time I open Photoshop it says: could not import the clipboard because an unexpected end-of-file was encountered. If I exit the message I still cannot create files or open anything... any suggestions?

    When you load Action and when you create new actions they are saved into you Photoshop Preferences into Actions Palette.psp.  This File is read when you start Photoshop.
    Apple and Microsoft both like to hide important files on users.  Windows search and Apple finder will not find and show hidden files unless you change Mac and Windows setting.  I you getting the error when you start Photoshop there is a shortcut to reset preferences. Hold down Alt, Ctrl, and Shift keys (Mac: Command, Option, Shift) while starting up Photoshop you should be prompted to for an OK to delete preferences.
    If this keeps happening perhaps you have a bad spot on your disk.  Loaded actions are saved into that file so they should show up in the Actions Palette when Photoshop Start Up and read that file during start up. Photoshop Writes that file when you load action sets, when you record and edit actions and most likly also when you close down Photoshop.

  • Adobe CS2 unexpected end-of-file was encountered

    We have imaqge preview saving turned of but are still getting unexpected end-of-file was encountered errors when saving eps files. Saving the eps file to an new folder saves corerectly.

    The reason for asking about the details has to do with a possible bug in XSan 1.2 which seem to be hitting Helios / Xinet and possibly also Apple's own AFP implementation.
    Symptoms seem to be coherent (although 3 different products are used.
    Here is post from the xsan-users mailing list
    Otto,
    There appear to be some semi-known issues that have come up when using Xinet's FullPress with Xsan as well. Files disappearing, becoming corrupt, reverting to earlier versions... Finder windows showing multiple versions of the same file, even though the shell only shows one... etc, etc, etc.
    I can't tell you a whole lot about it as of yet, but the problem seems to be related to issues with files' i-node numbers. If you do a "ls -il" on the directory which contains your "missing" files and folders, often they will reappear. ??? Additionally you may notice that the i-node numbers change (they are the first numbers in the resulting list) with every execution of the "ls -il" command.
    I was told by someone that it is some sort of "caching problem", although I don't know what that means exactly or how that would affect what we are seeing happen. Early indications seem to look like problems are more likely to occur when users are accessing the same files over again, at different times throughout the day, from different machines (ie. X user worked on X job in the AM on X Mac, and in the afternoon Y user worked on X job in the PM on Y Mac).
    I wish I could tell you more, but I'm still in the early stages of tracking this one down!
    Good luck,
    Dustin Tantum
    And here is a tech note from helios:
    HELIOS TechInfo #095en01
    ========================
    Tue, 24 Jan 2006
    Data corruption using Apple XSan 1.2
    Recently we received feedback from HELIOS partners and customers that
    clients connected to HELIOS servers using Apple XSan 1.2 file systems
    showed indications of intermittent data corruption.
    Symptoms are that files can not be opened after Save, or show partial
    old content. Among the affected applications are Adobe Photoshop,
    InDesign, and Quark XPress.
    Another symptom are system messages from the "desksrv" process, like
    "node does not belong to index" which indicate corrupted database
    contents.
    From a "ktrace" dump of a "pcshare" process a partner could provide,
    it became clear that contents of a data file were written correctly by
    HELIOS. But after the application from the same SMB client did close,
    reopen and then read the content in again, this was in part the old
    content of the file.
    As these problems may not be recognized by users every time they
    occur, it would be safest not to use XSan 1.2 as a file system.
    HELIOS has reported this to Apple who is currently investigating this
    issue.
    We recommend that every customer who encounters this Xsan data
    corruption problem reports this bug to Apple.
    When a workaround or fix is available, this information will be
    distributed by a follow up to this TechInfo.
    So XSan 1.2 and doing file sharing doesn't seem to cooperate well for now

  • When trying to open in external editor I get this warning when going to Photoshop CS6: Could not complete your request because an unexpected end-of-file was encountered.

    Aperture: When trying to open in external editor I get this warning when going to Photoshop CS6: Could not complete your request because an unexpected end-of-file was encountered. I can export and open via Photoshop or open directly from file-just not through external editor. Gerry

    Hi gerry,
    does this happen for a particular image only, or for all images?
    And does this happen only from your account or also from other user accounts?
    Léonie

  • "could not complete your request because an unexpected end-of-file was encountered. what can i do?

    I've been working on a motion file in photoshop for my thesis and i tried opeining it today and it wont let me open the file. it says "could not complete your request because an unexpected end-of-file was encountered".
    I've saved the file every 5 minutes or whenever I do work but now i cant even open it at all. I NEED HEEEEEELP PLEASE!

    If it is in the forums (and actually, all over the place on the web) and it is a Photoshop issue in both Windows and Mac, I just assumed is.
    The unexpected eof could be a hardware issue or possibly owed to individual set-ups as it is not an issue that plagues all (or even an ostensible majority of) users.
    Boilerplate-text:
    Are Photoshop and OS fully updated?
    As with all unexplainable Photoshop-problems you might try trashing the prefs (after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences you’ve changed) by pressing command-alt-shift on starting the program or starting from a new user-account.
    System Maintenance (repairing permissions, purging PRAM, running cron-scripts, cleaning caches, etc.) might also be beneficial, Onyx has been recommended for such tasks.
    http://www.apple.com/downloads/macosx/system_disk_utilities/onyx.html
    Weeding out bad fonts never seems to be a bad idea, either. (Validate your fonts in Font Book and remove the bad ones.)
    If 3rd party plug-ins are installed try disabling them to verify if one of those may be responsible for the problem.

  • Could not load actions because an unexpected end of file was encountered, resetting preferences doesn't work, whats next?  PC windows 8 PS CC

    I tried the ctrl alt shift and click yes to delete preferences and it didn't work.   Where are my actions?   I have no issues with disc space etc (over 500 free) Any help is greatly appreciated as I have many edits to get to customers

    Have you taken a look at this thread? Could not load actions because an unexpected end-of-file was encountered.
    Benjamin

  • CS3 - Unexpected end of file was Encountered

    HELP!!!!
    I was saving a layered Photoshop file when " unexpected end of file was encountered " this pop up. After that happened, I can't open my file. Is there a way to save the file? I was able to open it in Illustrator, and then in Photoshop, but it is flattened. Is there a way to save the layered file? Please I really need those layers! HELP PLEASE!

    this usually means the file is corrupt. If you have Imageready and the file is RGB you might be able to open it with that. your other options are Illustrator and Graphic Converter which will flatten the file.

  • I have this message today: Could not load actions because an unexpected end-of-file was encountered.

    i have this message today and I don’t know what to do, I have PS CC : Could not load actions because an unexpected end of file was encountered

    See whether a reset of Preferences solves the problem
    A logical next step would be to reset your Preferences.
    To reset Preferences:
    If Photoshop is already open on your screen, close it (Quit). Then hold down Shift+Ctrl+Alt (Win) / Shift+Command+Option (Mac) on your keyboard and start Photoshop.
    A dialog box will pop up asking if you want to delete the existing Preferences file (the "Settings"). Click Yes in the dialog box. The existing Preferences file will be scrapped and a new one will be created.

  • Having error when opening psd file. "could not complete your request because an unexpected end-of-file was encountered". Im using a mac air, CS5.1

    "could not complete your request because an unexpected end-of-file encountered".

    Probably not good news I'm afraid. Hopefully you use Time Machine to keep regular backups of your work?
    Have you tried to open the file in Graphic Converter (shareware application)?
    I find file corruption practically non-existant these days. I would suggest that you maintain your machine. This can be done with Onyx http://www.apple.com/downloads/macosx/system_disk_utilities/onyx.html. Run all the tasks in the "automation" section of this application. 
    If you can do a drive check - checking your hard drive for physical issues might also be a good idea. 

Maybe you are looking for

  • How to implement authorisation on table columns

    Can anyone suggest a smart way to use Weblogic platform capabilities to implement a table column security/authorisation "control". ie. control on a column by column basis who can view or update a column? Scenario - a primary data owner "owns" a set o

  • Select List not setting on Dynamic action

    I have a report with a SQL query with a condition based on a select list on the same page. So I have a select list - :P9_PARTID My query for my report is: select l.sitename, sum(qty) "No." from eng_stock s, eng_sites l where partid=:P9_PARTID and l.i

  • Can I run a wireless keyboard & mouse through a KVM switch?

    I have a windows xp pc, and I am going to buy a Mac mini (with it's own dedicated monitor -- I need a second monitor). I currently have a Logitech wireless keyboard and mouse. Can I run the keyboard and mouse through a KVM switch connected to the win

  • Please help me creating a view

    Hi Guru's Iam trying to write a view to acheive the below o/p CUST_UID MASTER_FLAG GROUP_ID AAAE55 1 001 DDDE55 NULL 001 AE56 1 002 DDE56 NULL 002 AAAE57 1 003 AAAE58 1 004 Expected o/p: CUST_UUID MASTER_UUID GROUP_ID AAAE55 AAAE55 001 DDDE55 AAAE55

  • Safari debug menu: Security submenu items greyed out

    I'm using Safari Version 2.0.3 (417.9.2), and have activated the Debug menu. Under the Security submenu, all of the options are greyed out. I need to "enable Lax security checks" because I'm having trouble with certificates on a particular website. I