May 13, 2010 8:34 PM
"Flash can not parse this document" - CS5 Issue
-
Like (0)
Help! I have an FLA which CS5 has apparently corrupted on a save... (When you load up the FLA in CS5, it now fails and sends "Flash can not parse this document" to the output window.
Unfortunately I only found the corrupted nature of this file AFTER I had conducted my regular routine of backing up my files - which means the backed up file is ALSO corrupt. I'm shooting in the dark here, but is there any way that the FLA can be recovered? Desperate as this is a project I have worked the last month on.
Any help would be greatly appreciated!
Cheers,
Ben.
I got the similar type of problem. My file was crashed when I was working on it and now when I try to open it, it passes the same error message on my output panel. This is the only file I have, PLEASE HELP.![]()
I also noticed that there is one new file with SWZ format created in the same folder, where I have the main file, with the name of textLayout_1.0.0.595.
Thankfully I just found out that I had Version Control auto enabled on my Windows 7 machine, so I'm back in business with a recent version... However, I have a colleague that this issue has also affected on more than one occasion - and it seems to be localised to saving a file as a CS5 .fla or .xfl ... however the Save As CS4 .fla works just peachy. This could be a rather critical bug if more than a couple of people have hit this issue...
Any Adobe techs wish to comment?
Well in my case I had CS4 file opened and saved through CS5, so I don't know which version it was saved to. But I found one interesting software, SWF Decompiler, on another forum discussion: http://forums.adobe.com/message/2812507#2812507. But you have to purchase the software to get your AS back.
Ben, you are right. This should be fixed... Hello, is there any Adobe Tech. looking at this discussion?
Hi,
I emailed you two off-list for the CS 4 FLA files that get corrupted when saved as CS 5 versions. We would like to investigate the issue.
Thanks,
Nivesh
Hi Nivesh,
Sorry for late reply. Attched are the files that I have mentioned in the
forum. One is fla file, which was created in flash CS4 and modified and
saved from flash CS5 and ultimately crashed. And another one is, I believe,
created during the error process.
What are the chances that I can get my work back? And how long the
investigation process will take?
Thanks
Jinesh Vora
Nivesh,
I just sent you those files.
What are the chances that I can get my work back? And how long the
investigation process will take?
Thanks
Jinesh
Help me please! Some days worked over the project, and today FlashCS5 cannot open my project, inform on an erro:
"Flash can not parse this document."
or
"An error occurred opening file 'F:\Rus\_site\??????? ??????\top_menu_anime_ver2.fla'
The following JavaScript error(s) occurred:
Cannot find file F:\Rus\_site\????????????? ???????\top_menu_anime_ver2.fla."
What to do? Here there is no answer, but somebody can has solved this problem?
1. When I worked over my project at first cancellation function has "Undo". I could not cancel action (Ctrl+Z did not work).
2. The history list has disappeared from the screen (became empty).
3. I have closed FlashCS5, having save my project.
4. I can not open the project because of an error: "Flash can not parse this document."
Help me please!
Hi,
I emailed you off-list requesting your FLA file so we can investigate. If you don't receive the email, please check your junk-mail filter.
Thanks,
Nivesh
Hi,
We discovered that the file becomes corrupted due to the empty frame in the following asset:
1. Open the FLA in Flash CS4
2. Open the Library panel.
3. Browse to _movieclips & bitmaps/_gui/_menu wheel/Gui_Wheel_ButtonOverlay_On and open it for edit in symbol-mode.
4. Insert a keyframe in Layer 2 of that movieclip.
5. Save FLA
Thanks for sending us your FLA so we could narrow down the problem.
-Nivesh
So what does it mean?
Hi Jinesh,
The reply above was to BenLeffler's post and the FLA he emailed me.
We are still investigating your FLA. Do you have a CS 4 copy of your FLA before it got corrupted? If so, can you email me that one?
Thanks,
Nivesh
No that was the same file I opened with CS5. I don't have any other copy, I
wish I had it though.
Hi Nivesh,
Thank you very much. After a quick round of testing, it appears that your suggestion has fixed the problem. I have also managed to replicate the issue on another test .FLA file utilizing the same issue. I guess that it is handy to know how to avoid this rather critical issue in future.
Cheers,
Ben.
Is there any luck yet?
No, the problem is not solved. The file cannot be restored. Decisions are not present! Do backup copies before work and after it is more often. I am very upset!
Well, thank you for the response. But I was checking with Nivesh. I think I
should address him in the message, but I guess the answer will be the same
though - the file cannot be restored... ![]()
Again as it was mentioned... this is really a critical problem. This means
that any project that we worked on with CA4 cannot be opened with CS5
otherwise there are more chances to get into a really big trouble. And this
means that you have to have 2 pcs and each should have different versions of
flash... very sad.
I think that it is a problem in CS5, instead of in our works. I think, it is necessary to pass to older versions that it is productive to work, for example CS4 or CS3...
When I have noticed problems working over the project the error has arisen in Flash. I have tried to cancel (Undo ctrl+z), but errors began to appear one for another. I have closed Flash but after that mine fla file has been irrevocably damaged.
These are serious defects in Flash CS5, and I think that we early have passed on CS5...
Hi,
I emailed you a fixed version of your FLA yesterday afternoon off-list. One of my co-workers was able to recover your FLA file. The issue was due to the following library assets containing empty frames:
MovieClip/sprite 40
MovieClip/sprite 46
MovieClip/sprite 52
Please let me know whether you received that email or not.
We are still trying to narrow down Jinesh's issue.
Thanks,
Nivesh
Several days ago I have also got the same issue. A whole one week work was completely
damaged. Had to start all over.
Definitely not good from Adobe to RTM a software with such a critical bug.
Yes, I have received my fla file. But my sprites are empty! All my work has disappeared! I should start work over again!
If it is interesting to developers, has begun that I have drag and drop one keyframe from one layer to another layer. After that problems with action cancellation (ctrl+z) have begun, and then the file was completely damaged.
I did some testing yesterday. Saved some CS4 files in CS5 format. It
damaged on average 2 files from 10.
As it seems, at Saving stage, CS5 does not save all components of FLA correctly, cause the "saved file" is notably smaller than the original.
I have the same issue, I created a very large fla project in cs4, installed the flash cs5. Worked yesterday an entire day, saved as cs5 (the fla file format) tried to open it this morning, following error:
Flash can not parse this document.
An error occurred opening file 'D:\projectssvnnew\name\presentatie\FLASH\presentatie_dynamicVersion_ v2\name_air_app_19-05-2010c.fla'
The following JavaScript error(s) occurred:
Cannot find file D:\projectssvnnew\name\presentatie\FLASH\presentatie_dynamicVersion_v 2\name_air_app_19-05-2010c.fla.
I saved it twice yesterday and the 2 files are damaged...
this really sucks...
First experience with flash cs5 is the worst experience I've had with flash (using it since macromedia flash 3.0) or any other software
edit: I tried to unzip the fla, but the xfl file in the fla cannot be opened. It results in the following error:
An error occurred opening file
'D:\projectssvnnew\name\presentatie\FLASH\presentatie_dynamicVersion_v 2\name_air_app_19-05-2010c.xfl'
Message was edited by: behived_new: removed client name + added extra info
Hi,
I have the same issue, but i have no versionning system on this FLA, and have one (crached) version of this file ... So I'm screwed ...
Adobe has no solution to fix this problem ?
Hello everyone. Although I have mentioned it in the beginning of the discussion, but still here you go again, for those who are new: go to this link http://www.sothink.com/product/flashdecompiler/index.htm and download trial version to atleast get your components back (note trial version won't get AS back). Some of them can be in modified version, but still it is better than nothing.
I used for my project and I saved little time with it. And I am sure some of you who have big projects can save time as well and probably for small ones it can be blessings.
Hi,
I have the same problem!
I've been working on this project for 3 month now.
It's a multiplayer-realtime game.
Well, I wanted to continue this project with flash cs5, because of the new code features, the better interface...etc...
I didn't backup, because I thought: were would be a problem with adobe???(Damn I was stupid -.-)
Is there any solution?
I'm really destroyed
.
All my work......it's just gone....
Its look like problem with assets in library that has a russian character.
You're all very unlucky to get this problem
. I don't know why you guys got the error when transitioning from Flash CS4 to CS5. My transition went perfectly fine, and the game I was developing went through perfectly clean
.
Sorry about your problems
dikuno <><
P.S. By the way, that file that was mentioned "textLayout_1.0.0.595.swz", is created whenever you put in TLF text that is edited at runtime via ActionScript and use Runtime Shared Library (RSL) preloading. Did you leave all your text boxes be, or convert them all to TLF?
P.P.S.S. I was very lucky that I didn't lose my project when I transitioned, as my current game is actually due in around a week. Hoepfully none of your projects that you lost are due in a week.
P.P.P.S.S.S. Imagine if this happened to Alan Becker while he was working on Animator vs. Animation II (it took him five months).
P.P.P.P.S.S.S.S. I feel especially sorry for the guy who spent three months on his online multiplayer real-time game. Must be a real shame to lose all your work after all those late nights and sore backs...
P.P.P.P.P.S.S.S.S.S. If you don't know what Animator vs. Animation is, you should watch the animations. You can find them on YouTube - just look up "Animator vs. Animation" and "Animator vs. Animation 2".
P.P.P.P.P.P.S.S.S.S.S.S. Sorry about all the PostScripts.
Hey,
If you have time to answer it would be awesome!
Well,the work of more than a month is now gone....well...fortune, right?
I didn't convert the textfields into TLF text.
You work on a game too?
Well could you tell me something about it?
I'm curious.
Really? It took Alan Becker 5 month?
I relly enjoy his animations!
bye, and thanks for your time!
PS. I would have another .fla file....would you mind, if you could check
this one too?
It's in the attachment ![]()
PPS. By the way, I'm actually german, so if there is some bad grammar,
please ignore it ![]()
bye
My game? Oh, yes. It isn't really that complicated. It's just like an electronic board game. But still, I would have lost nearly a month's work, which would have been pretty bumming.
I don't see any attachment, though.
Keep an eye open around the Forums. I'll be starting a new thread soon where everyone is free to complain about Fireworks, Flash Pro, Flash Catalyst and Illustrator CS5 crasing. Maybe, if I can gather enough replies, it can be sort of like a petition, and we can get Adobe to release some patches!![]()
(Oh, and good patches, not faulty ones that bring in as much problems as they do solve.)
Hey,
Cool! you have to show it to me when it's finished!
Really? And now?
Ok I will keep an eye open!
Bye
The thread's up now. Get everyone you know who's having problems with CS5 to complain at the discussion.
http://forums.adobe.com/thread/649242
Make sure they write their name (Forum names are fine, no need for real names) so I can put it together into a "petition" reply!
dikuno <><
I was able to solve this problem for a corrupted .fla file. Here's what I did to solve it:
1 - change the extension of the fla to zip so you can unzip the fla into its folder structure (flv).
2 - within the LIBRARY folder, there is likely some asset that is causing the problem. you must figure out which one (or more) it is. you can do this by simply removing files from that folder until your file opens successfully (open the flv file in the root).
3 - once you have the xml files that are causing the problem, you can actually fix them by going in and removing the empty frames. in mine, the part of the xml i removed looked like this:
<DOMLayer name="Layer 2" color="#9933CC" current="true" isSelected="true">
<frames/>
</DOMLayer>
<DOMLayer name="Layer 4" color="#FF4FFF">
<frames>
<DOMFrame index="0" keyMode="9728">
<elements/>
</DOMFrame>
</frames>
</DOMLayer>
<DOMLayer name="Layer 3" color="#FF800A">
<frames>
<DOMFrame index="0" keyMode="9728">
<elements/>
</DOMFrame>
</frames>
</DOMLayer>
Basically look for any <frames> tags that don't have anything in them. These are harmless to remove as they are not adding anything to your file anyway.
Now you can open the .flv and save it as a .fla again if you wish.
This seems like a trivial thing for Adobe to be able to fix. If it can't handle empty frames from CS4, then it shouldn't create them in the first place.
Hope this helps someone. . .
I too have this problem I saved my fla file and then tried to open it later. It told me that Flash cannot parse this file. What do I do?
See my previous post...
After working on a file for four hours this happened to me and so I thought the file was corrupted some way and so I started over making changes to the file. Four hours later just when I was almost finished re-doing the changes....it happened again. I am so mad. Now I have two useless files and I am afraid to go make the fixes again because it will probably happen again. I am afraid to waste my time on ANY file now in CS5 because I will end up with a corrupted file. That doesn't bode well with someone that just put all her money into this software.
To make matters worse I have about 50 more files I need to make changes to and I am on a deadline. So, I am sitting here. Can't work because it will probably be a waste.
I went in and looked in the library for empty frames but I probably have over 100 items in my library. It will take me days to search them all. So far I haven't found any missing frames.
Could someone please contact me and help me before my head explodes. I would be forever grateful! (Pitiful smile with a begging face)
angela at acuteconsulting.com
I may be late to the game, but I'm still playing, unfortunately. After multiple saves and no backup, "Flash can not [sic] parse this document."
Flash CS5 also can not parse a con trac tion.
Will someone at Adobe please get my file and fix it?
Looks like I'm also a bit late to the game, but here's another case that causes this error:
Create a new ActionScript 3.0 project, and drag a TextArea to the stage.
Set the text of the TextArea to the eight-character string
you get by removing the spaces from "& # x 0 3 B 1 ;",
that is, "\u0026\u0023\u0078\u0030\u0033\u0042\u0031\u003B".
Save the project as amp.fla. Close and reopen amp.fla.
Notice that the contents of the text parameter have been encoded,
seems like UTF-8, but I haven't taken the time to check.
Now save the project as amp2.fla. Close and reopen amp2.fla.
You should get the message "Flash can not parse this document."
I've run into this bug because I want to pass XML data, including
numeric character entity references, into a parameter of a custom
control. Named entity references seem to survive the round trip,
but numeric character entity references do not.
I've got the same problem. Flash can not parse the document.
I've tried every single way that I found on the forums (convert it to .zip and try to fix the xml, open it on cs4, use the decompiler) and nothing works!
I'm getting mad with this... can somebody help me?
I'm close to the dead line. 2 files: both of them crashed!
Please!!!!
HELP!!!
I have the same problem and honestly i am pretty mad. I invested another 1000bucks to end up with a software what ruins my projects.
I had it with one file 2 weeks ago and completely rebuild it, because i thought it was my mistake.
Two days ago it happened again and i cannot fix it. I tried to remove some empty frames but the .xfl file just does not want to open.
I do not know what to do anymore! This is a really important project and i am stuck. I cannot redo this file!
Hopefully someone con help me here!!!!
sincerely !
Hey all,
I was dealing with this for awlile, and it looks like converting old cs4 projects to cs4 creates what im calling "null" nodes sometimes in xml. Go through your xml files that make up your flash project (either by saving as xfl uncompressed, or unzipping the fla).
Do a search for <frames/>
as in:
<DOMLayer name="Layer 2" color="#9933CC">
<frames/>
</DOMLayer>
I found about 4 of those cases in a large fla file. I deleted the whole DOMlayer node as listed above, and that cleaned up everything! In general though this version of flash seems really buggy, and there are some projects im still unable to compile due to TBD reasons . . .
I came across this error today when I tried to open a .fla file that I had been working on. It has taken me about an hour to fix it but I think that I am happy enough now. Here is my solution so that maybe it can help others:
What you need to do next is tedious BUT it might just save your bacon. One by one copy the various elements (XML, Library, bin etc) from the corrupt version to the blank folder (overwriting the new blank versions folders/files). Each time you move another piece into the folder open the .XFL and make sure that it works each time...(tedious but each time you open it you'll see the original project coming back to life) Keep doing this until it doesn't open and hey presto you've now found the corrupt file.
What you do next is your guess. For me the corrupt file was an xml file and I'm sure your corrupt file will be an XML file too (it is a parsing error after all). I simply deleted this XML file because it wasn't anything major. It'll take me a minute to re-do this movieclip within flash. If you can do this too then that would be a small sacrifice to get the project up and running again. I'm sure Adobe will sort this out soon and I hope my solution helps someone else.
-Stevo
thank you so much ! i could get my fla back. In my case it worked that i created a new fla (.xfl) and copied everthing over. than i could open it and i saved it as a cs4 project.
Once more, THANK YOU !
I was able to find out that there is actually an ETX character in that empty node that might be causing this issue, I did a write up on it complete with wbfreek26 as the source of the solution! http://www.sosuke.com/index.php/2010/08/11/flash-cannot-parse-this-doc ument-adobe-flash-cs5/
Sorry but this thread is not 'answered' as it says at the top. I've just come across this problem with a file I was working on happily last night, and this morning it won't open - "cannot parse". I've tried all the suggestions above, to no avail... And I've tried the Adobe Flash update (http://www.adobe.com/support/flash/downloads.html) but that won't let me install it - I get another error message saying 'Error loading Updater worklflow'. Adobe - what are you doing about this problem?
Hi, my name is Pablo from Argentina. So i also encountered this error when trying to save my project in CS4 and then back to CS5 by mistake. I hope I can clear the doubts to the ones suffering from the hands of dreadful developers and testers. This is what i did to bring my project back to life. I assume we are using a test.fla file
- Rename your file from test.fla to test.zip
- Unzip it
- Inside your unzipped folder you should have a similar structure to this:
<bin>
DOMDocument.xml
test.xfl
<LIBRARY>
<META-INF>
mimetype
MobileSettings.xml
PublishSettings.xml
- Create a new fresh folder, maybe called Test2 and copy te contents of the unzipped folder.
- Delete all the items from the Library Folder
- Copy the xml files from the Test>Library to Test2>Library from 10 to 10, opening the test.xfl y test2 folder, every 10 files till the error comes up. So then you'll know the file getting the error is in that last 10 files you copied.
- Then keep copying inside those 10 files, one by one, till Flash cannot open the file. So you will know which one is the file giving you the error.
At this stage you'll probably be thinking that a company like Adobe couldn't miss this error in a mega development like CS5, but they did, until the update, so this brief tutorial is for the ones like me that missed the patch, or have a project damaged by the software.
- When you narrowed the search and identified the file giving the error, open it.
- I discovered that the xml structure for the library item (represented in this xml file) would be something like this
<timeline>
<DOMTimeline>
<layers>
<DOMLayer>
<frames>
<DOMFrame>
// Here should be the content of the frame
<Actionscript>
///Actionscript Code
</Actionscript>
<elements>
/// the objects in the stage
</elements>
</DOMFrame
</frames>
</DOMLayer>
</layers>
</DOMTimeline>
</timeline>
- So, maybe this should be the approximate structure of the xml file, i don't know how exact is this, i didn't developed the application, the geniuses of Adobe did. I discovered that in my error xml file, this structure was truncated, yes truncated, there were things like this for example:
<DOMFrame>
<Actionscript>
///some actionscript content
</Actionscript>
<elements/> (WTF??!! No opening tag, and a truncated closing tag)
</DOMFrame>
- So after burning my head trying to identify this not opening, not closing tags, and deleting or correcting each one of them, i managed to recover my agonizing file, it's back again!
At this stage i was tearing my hair off and swearing to all of the talented developers working against the clock to bring us a version that could have waited 2 more months to be shipped in a full version, not beta.
There is also a couple of more errors other people encountered, i recommend keep searching for your exact error.
Hope this helps ![]()
Adiós amigos
Hi All,
The solution that I'm suggesting is for those who plan to save their work as CS5 but are not sure whether the FLA will be saved properly or not.
I came up with this plan, since I too faced the same issue and had to find a solution, if I had to migrate loads of apps across to CS5.
the main reason for this issue to crop up is due to a blank layer within the library, due to which the FLA when saved as CS5 on re-opening will throw the "Flash can not parse this document" error in the output window.
So before you save your FLA to CS5 just run the below JSFL code so the it checks and reports for any library elements with blank layers.
// Find Layers with no frames in the library
// @author chetan
// --------------------------------------------------
// clear the output panel
fl.outputPanel.clear();
var nonRepeatClassArray = new Array();
// this function searches for a layers with 0 frame length
function findLayerLength()
{
fl.trace("<<---The classes linked are--->> ");
for (var i=0;i<fl.getDocumentDOM().library.items.length;i++)
{
if(fl.getDocumentDOM().library.items[i].itemType == "movie clip")
{
var layers = fl.getDocumentDOM().library.items[i].timeline.layers;
var layerLen = fl.getDocumentDOM().library.items[i].timeline.layers.length;
for(var k=0;k<layerLen;k++)
{
if(layers[k].frames.length == 0)
{
fl.trace(fl.getDocumentDOM().library.items[i].name+"::"+ layers[k].name);
fl.trace("frame length is ::"+ layers[k].frames.length);
}
}
}
}
}
findLayerLength();
once you run the jsfl you will find the details of the movieclips with layers of 0 framelength, now find those layers in your FLA and delete it or just have a blank key frame.
now you will be able to save your FLA in CS5 format without any issues.
Cheers
Chetan
Me encanta como lo ataste con alambre como si fuera un renault 12!!
I've just experienced the same problem, but fortunately, becasue of you guys i had solved it and back up and running with my project!
I am really grateful for all the altruistic people out there who have a minute to help others. *Cries from happiness*
There is what I did:
1. followed exactly what stephenhayden(#41) said (your corrupted file will most probably be in LIBRARY subdirectory of unzipped fla) except i didnt even have to redo a corrupted movieclip, because
2. what naipemarcado said in #45 fixed my corrupted "someLibraryMovieClip.xml" file.
What you do is open corrupted .xml file in any text editor or even Dreamweaver
and look for stand-alone tags like <element/> or <frame/>
Here is my corrupted code (2 layers without frames):
...
<DOMLayer name="Layer 28" color="#FF4FFF">
<frames/>
</DOMLayer>
<DOMLayer name="preview" color="#FFFF4F" autoNamed="false">
<frames/>
</DOMLayer>
And here how it is supposed to be:
...
<DOMLayer name="Layer 28" color="#FF4FFF">
<frames>
<DOMFrame index="0" keyMode="9728">
<elements>
</elements>
</DOMFrame>
</frames>
</DOMLayer>
<DOMLayer name="preview" color="#FFFF4F" autoNamed="false">
<frames>
<DOMFrame index="0" keyMode="9728">
<elements>
</elements>
</DOMFrame>
</frames>
</DOMLayer>
Voila! save and overwrite the corrupted file and finally move on with your project!
P.S. chetana's JSFL code (post #46) is very useful too! Run it every time in the end of your worksession before saving.
here is how:
1. Create new JSFL project in Flash and insert the code provided by chetana
2. Save under any name and in any location
3. to run: before saving your project in Flash go to [ Commands > Run Command ... ] find the JSFL file you just saved
4. if the Output window returns anything along the lines "frame length is :: 0" go to that movie clip and layer and add blank keyframe, as people said before. Repeat until JSFL Output is clean
5. Finally save.....
Yeah, this is pretty big messup on Adobe's part ... And its a shame that its so easy to fix... lol
cheers,
- Artem
Hi All,
This issue seems to have been fixed in the latest CS5 update 11.0.2.489
Thanks,
Chetan
North America
Europe, Middle East and Africa
Asia Pacific
Copyright © 2011 Adobe Systems Incorporated. All rights reserved.
Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy (updated 07-14-2009).