Strange flex bug – caching screens

Posted on Mar 27, 2009

Hello All,

Thanks again for visiting my blog, “From inspiration to realization”. The blog covers lots of  information about Web Development: Ruby on Rails, Java, Flex and etc.

The past week has been very frustrating for me. As you know (or not) I work quite a bit with flex development and AIR.

The environment for developing these applications is Adobe Flex Builder 3, I never had any problems with this piece of software, but this last week has been just horrible.

I will explain my problem.

As you know (again or not…) I’m not a designer and I don’t wanna be one, so… I got all of the designs from the designer of the project via PSD, cut all of the “assets” to use in my flex application and started off with building each screen.

As always, I wrote some CSS (yeah.. Flex has CSS, same as HTML), built an SWF file for holding all of the assets (SWC), and started dragging in controls.

All pretty basic so far, but…

Sometimes (well, all the time) the flex just refused to build with the recent changes.

After the first time I build an swf from the flex IDE, no change I made to the application actually “kicked in”.

**Action-Script

** Because even the labels on the buttons refused an update, I even tried to write it in Action-Script, that didn’t help me at all.

The application just would not update.

<pre style="padding: 0px; font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; border-style: none; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;"> 2:</span> {</pre>

<pre style="padding: 0px; font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; border-style: none; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;"> 3:</span>     screenMainText.htmlText=<span style="color: #006080;">"Please Choose which of the Questionnaires below you would like to compile for your Survey"</span>;</pre>

<pre style="padding: 0px; font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; border-style: none; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;"><span style="color: #606060;"> 4:</span>     backButton.label = <span style="color: #006080;">"Back to control panel"</span>;</pre>

<pre style="padding: 0px; font-size: 8pt; margin: 0em; overflow: visible; width: 100%; color: black; border-style: none; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"><span style="color: #606060;"> 5:</span> }</pre>

What did I do to see the updated?

I copied all of the code from the mxml file, deleted this file, created a new file, pasted in the copied code and WALLA, the updates “kicked in”

Strangely though even a project cleaning would not help

I emailed Adobe, but got no response so far, I will update here and tweet on the solution I hope they provide.

** I tried importing another project to the flex builder, but the error did not exist in another project, only in this specific project.