Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-21-2005, 02:31 AM
Junior Member
 
Join Date: Jun 2003
Posts: 29
Default Maximum size of data passed between Flash and SWFKit

What's the maximum size of data that can be sent to SWFKit from Flash and vice-versa using the FFish commands?

Code:
fscommand("FFish_Eval", "saveFile(\""+vFileName+"\",\""+ largeString +"\")");
I'm sending an XML object converted to a string to SWFKit so that it can be saved to a file chosen by the user. I can see the string becoming very large. I'm getting an error "This application has caused an error and will shut down" type coming from the SWFKit player when a large string is sent.

If there's such a limit, is there a better way to transfer the XML data into SWFKit from Flash and back into Flash when the user chooses and loads a new XML file?

Thanks,

Steve

Reply With Quote
  #2 (permalink)  
Old 03-25-2005, 12:01 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Maximum size of data passed between Flash and SWFKit

Could you please send us the content of the xml file?

Passing strings by the fscommand could bring some problems. One problem is that the 'vfilename' string may contain slashes, e.g. c:\test.xml. When you passed it to swfkit as you did, swfkit got the call
Code:
saveFile("c:\test.xml", "xxxxxxxxxxxxxxxxxxxxxxxxxx");
It became an illegal file name. For the call should be
Code:
saveFile("c:\\test.xml", "xxxxxxxxxxxxxxxxxxxxxxxxxx");
The other problem is that the xml content may contain quotes, then the call passed to swfkit will cause problem. The crashing of SWFKit indicates that the compiler of swfkit cannot handle such a special call. So please send us the xml content, we will make it to be more robust, it will just return error.

To resolve the problem, please pass variable names to swfkit and use the FlashPlayer.setVariable method to get the content of the string. The attached sample shows how to do this. It has been tested with a 311K xml file and it works well.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:48 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.