A SWF cannot have a function that contains more than 32K of code in it.  Parsing an XML string that is greater than 16K can generate code that is bigger than 32K.  So we have this compile-time limitation.  Unfortunately breaking up the XML file to use includes is not going to help right now.  So if you have XML to load that's greater than 16K you're going to need to use HTTPService to download the file at runtime and parse it then.

 

We're looking into ways to improve this situation in future versions.

 

Matt

 

-----Original Message-----
From: achillesflex [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 27, 2004 4:55 PM
To: [email protected]
Subject: [flexcoders] dataprovider filesize restriction for tree control, why?

 

hi all,

having trouble when including an xml doc larger than 16kb as the
dataprovider for the tree control.

i receive an error stating that it is too large! but is this
restriction on the input buffer size for flex? or is it a restriction
on the size of the dom ?

if it is the later i can split my xml file into multiple files with
an "include" or "source" directive at the end of each file...


ideas? any help appreciated.

Andrew


Reply via email to