flex - >500 lines in <fx:Script> and it all stops working -


well, it's little ridiculous; , unbelievable, when have more 5 hundred lines of actionscript in tags in mxml flex main.mxml, syntax highlighting, error , syntax verification, error reporting, "problems" pane, , compilation fail. upon removing chunk of code, works again.

i don't see why adobe release product such flash builder 4.5 premium, have big of problem; , nobody notice. therefore believe problem has computer, or project; there's ay more people have had happen if can't find on google.

additionally, many objects have been defined in mxml properties above code, in states, showing warning: access of undefined property down side of document. however, these warnings not showing in "problems pane", , aren't yellow squigly underlining right sections of code pertain message.

steps have taken try , fix this: have tried restarting, re-installing ide (adobe flash builder 4.5). have tried creating new project. have tried splitting code smaller .as files , including them. have tried compiling application.

nothing has worked, please help.

--

edit 1: in response first answer, have tried increasing memory allotted adobe flash builder 4.5 editing flashbuilder.ini , flashbuilderc.ini files in main installation folder, did not help; heap (heap display in bottom right) never uses more 128mb anyways (even during compile) did not fix anything.

you can try following steps:

  1. you can try allocate additional memory eclipse/flash builder editing of eclipse.ini.
  2. you can try compile project command line using mxmlc compiler , compare result.
  3. you can try split code not using code including (which should avoid forever) extraction subcomponents (keywords refactoring, oop, composition etc.).

and of course can use of these advices :)

anyway should avoid large code listings in script block of single mxml file. main purpose of script block of mxml have simple , clear code event handlers , required fields declarations.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -