As3 Error #2058 There Was An Error Decompressing The Data
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up ByteArray - Error #2058: There was an error decompressing the data up vote 1 down vote favorite I'm making a data formatter for a game i'm making. it's a fighting game, and it'll import formatted and compressed character/stage data, making it easier for me to make DLC or expansion content if i decide to. it also keeps the data loading to a minimum! anyhow, here's how i'm going about it: character/stages need 1 sprite sheet and 1 metadata JSON extract bitmapData from image and save into a variable load and encrypt JSON string using a combination of xor and base64 encryption (decrypts fine) make object and put them both into it -> { sheet: [bitmapData], meta: [cryptString] } write that all into a ByteArray and compress using byteArray.compress(); write byteArray into a file and save it it's fairly straightforward i think, but when i try to decompress one of those files (using byteArray.uncompress(); of course), i get this error in FlashDevelop: [Fault] exception, information=Error: Error #2058: There was an error decompressing the data. BUT, right before that, it traces the data correctly! loaded ucd name: dummy loaded ucd json: {"stats":{},"hitboxData":{},"animationData":{},"name":"dummy"} is this a bug?? do i have to worry about it messing something up? if i end up doing expansion characters, i want to be able to make this data formatter a public tool so people can work on their own characters or stages, like MUGEN, but easier. sorry if this is too detailed or whatever, but this is my first time asking a question and i wanted to make sure there was no misunderstandings :> actionscript-3 air share|improve this question asked Jan 8 '15 at 0:15 Psycho 184 Hmm, what algorithm are you using on the compress and uncompress
Forum Submit Yours! Team Up! Art Latest Greatest Popular Art Forum Submit Yours! Team Up! Portal Community Forums Chat Calendar Artist News Rankings Downloads Wiki Feeds About Feeds Wall Artist Login / Sign Up Upload Your Creations! Forums Everything Games Movies Audio Art Forums Search Latest News: Creep Jam & Summer Jam Winners! | #Inktober [AS3] weird ByteArray error 307 Views 2 Replies New Topic Respond to this Topic « Return to Game Development Forum Forum Index PsychoZombii PsychoZombii Member since: May. 6, 2009 Offline. Send Private Message Browse All Posts (159) Block Forum Stats Member Level 07 Programmer [AS3] weird http://stackoverflow.com/questions/27830979/bytearray-error-2058-there-was-an-error-decompressing-the-data ByteArray error 2015-01-07 21:13:02 Reply sorry for asking so many questions lately you guys :< I'm making a data formatter for the game i'm making. here's how i'm going about it: character/stages need 1 sprite sheet and 1 metadata JSON - extract bitmapData from image and save into a variable - load and encrypt JSON string using a combination of xor and base64 encryption (decrypts fine) - http://www.newgrounds.com/bbs/topic/1381320 make object and put them both into it -> { sheet: [bitmapData], meta: [cryptString] } - write that all into a ByteArray and compress using byteArray.compress(); - write byteArray into a file and save it it's fairly straightforward i think, but when i try to decompress one of those files (using byteArray.uncompress(); of course), i get this error in FlashDevelop: [Fault] exception, information=Error: Error #2058: There was an error decompressing the data. BUT, right before that, it traces the data correctly! loaded ucd name: dummy loaded ucd json: {"stats":{},"hitboxData":{},"animationData":{},"name":"dummy"} is this a bug?? do i have to worry about it messing something up? if i end up doing expansion characters, i want to be able to make this data formatter a public tool so people can work on their own characters or stages, like MUGEN, but easier. once again, i'd really appreciate any help you guys could give :> tumblr. || twitter || store || anime list Jin Jin Member since: Sep. 9, 2006 Offline. Send Private Message Browse All Posts (5,018) Block Forum Stats Supporter Level 55 Blank Slate Response to [AS3] weird ByteArray error 2015-01-07 21:52:12 Reply Try specifying the compression algorithm when performing those operations
I receive allways the error "Error #2058: There was an error decompressing the data". [code]... View 1 Replies Similar Posts: ActionScript 3.0 :: Data Coming From An XML File? Aug 1, 2011 I am somewhat stuck on building a specific layout in AS3 with data coming from an XML file. And http://flash.bigresource.com/ActionScript-3-0-Decompress-binary-data-coming-from-PHP--zpyMClaQn.html I really didn't expect any problems with layout in Flash.A while ago I built a Flex banner, but due to performance and size issues I want to rebuild it in Flash/AS3.[URL]..My flash file is already parsing the XML and I have all the data I need available. But right now I only show it as text in a htmltext field.After a long time of googeling around, it seems there is no way to achieve the layout with a "classic text" field. Can I do it with a TLF field? as3 error It does not look like it. Can I do it with some displayContainer tricks maybe? I am pretty new to Actionscript, so I can only hope some of you experienced devs can help me with a few hints on this.How would you build it? For every entry I basically need a two column header (left side a image, right side text. all fixed height) below that goes a textfield of "variable" height. And then below that the next entry block, and so on. Just like in the Flex banner.I found some as3 error #2058 frameworks, but they all want height values for all of the layout parts. Since I have a variable text height for each entry, I cannot use these frameworks. And because of size constraints I don't really want to use any framework if I can avoid it. View 7 Replies ActionScript 3.0 :: Hex/Binary Data Over Socket? Oct 21, 2008 I have a custom socket class designed to connect to a server and talk with it. At one point, the server uses hex data for speed, however Flash seems to not get ANY of this data. In fact, it doesn't get ANY of the data from that point to the next packet. View 2 Replies ActionScript 3.0 :: Binary Image Data To PHP? Jul 3, 2007 I wrote an image editor for my cms and wanted to send the image respectively the through the BitmapData's getPixels()-method received ByteArray to a PHP-script that displays and finally saves the image. Obviously I didn't succeed. How do I have to encode my binary data so that PHP is able to read it and how do I have to treat the bytes in PHP? I also tried encoding the image data with the corelib classes from [URL] but it didn't work as well. View 4 Replies ActionScript 3.0 :: Reflect Class And Binary Data? Apr 28, 2009 I am using pixelfumes reflect class to create a releflection, the problem i have is (i) It only accepts reference to a movieclip. (ii) I cannot cast my binary data as a movieClip var item:Bitmap has to stay as a bitmap so either I ma