Also, If you have made some change to your code that you expect to fix the 32k error, but you still see the error, delete the generated files from the “…WEB-INF\flex\generated” folder, and try it again.

 

Tracy

 


From: Tracy Spratt [mailto:[EMAIL PROTECTED]
Sent: Monday, March 07, 200512:53 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex Bug or Not?

 

The 32k limit is a real limit in the flash player. 

 

Larger source files can reach this limit, and the main culprit seems to be large mxml + actionscript blocks.  Ifyou have this situation, you should “re-factor” your app to decrease the size of the components.  Split the mxml into separate mxml components,and move the actionscript block into an AS class. AS class can be much larger than script blocks.

 

Now, when the Flex server generates the mxml into as, it makes some decisions that can affect when this limit is reached. If you believe your app is already optimized architecturally, try adding some more code, even if it is bogus.  This sometimes causes Flex to split up the mxml differently, and stops the error.

 

In the same vein, since running in the debug mode adds code to the generated as files, this mode sometimes causes the 32k error, sometimes suppresses it.

 

Tracy

 


From: Chris Reynolds [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 06, 200511:31 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex Bug or Not?

 

i've had something similar when using a mx:XML tag pointing to an external XML file. Flex seemed to want to create classes for all the different node types in the external file.

 


From:Igor Costa [mailto:[EMAIL PROTECTED]
Sent: Monday, March 07, 20055:13 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex Bug or Not?

Did you used flex builder?


On Mon, 07 Mar 2005 00:52:30 -0000, gevgelija50 <[EMAIL PROTECTED]> wrote:
>
>
> While attempting to run in Debug mode, I received the following
> message:
>
> 2 Errors found.
>
> Error generated version of _watcherSetup:260
> Branch between 42711 and 75485 around line 1157 exceeds 32K span. If
> possible, please refactor this component.
>
> Error
> Branch between 42711 and 75485 around line 1157 exceeds 32K span.
>
> Any thoughts?
>
> Thanks, Alex
>
>
> Yahoo! Groups Links
>
>
>
>
>


--
Igor Costa
www.igorcosta.com
www.macromedia.com/go/team




Reply via email to