Thursday, March 27, 2008

An Internal Build Error has occurred...

public var interactionType:String=INTERACT_DRAG=INTERACT_FORM;

This line of code just wasted 4 hours of my life.

Flex didn't notice that there was a problem, and it was only in building that a problem arose with the line 'Classes must not be nested.' and then the more obscure 'An internal build error has occured' Location: UNKNOWN.

So it was down to me looking through my thousands of lines of code to find the problem. I ended up restoring a backup of my code and comparing the two until i narrowed it down to the above line...

Wednesday, March 19, 2008

deployment issues

just finishing up an alpha version of a Flex project and discovering a couple of deployment issues that are worth getting down for future -

i was getting a persistent 'Where is the debugger or host application running?' popup window for my swf. i discovered that this occurs for specific versions of the flash player and the most recent flash player ignores the lack of debugger. however i wasn't too keen in forcing my users to install the very latest flash player if it was otherwise unnecessary, so found that i could also add the compiler argument: (in the Flex Project Properties, Flex Compiler tab)

-debug=false

Next i was getting a #2032 error. I discovered that this meant that the framework.swf file wasn't being found. This was happening because the final html file that displayed the swf was not where flex was putting it, so it wasn't finding the framework.swf(which was set to RSL, rather than Merged with Code, to save the user download time). To resolve this, I adjusted the path to the framework url. (in the Flex Project Properties, Flex Build Path, Library Path, Flex 3..., framework.swc, RSL URL)