Peter Moelgaard's Blog

Adobe Flex Builder Error

Posted in Adobe Flex Builder by Peter Andreas Molgaard on October 13, 2008

if anyone can explain the detailed explanation to this one… please don’t hesitate to post a comment…

Adobe FlexBuilder : The SWC-cache

Posted in Adobe Flex Builder by Peter Andreas Molgaard on October 6, 2008

There is no question about it… without Adobe FlexBuilder building Flex RIA’s would be such an uphill battle for all but the diehard fans… I would not claim to love Adobe FlexBuilder, but I do recognize it as a decent IDE which definitely makes it possible to do enterprise scale RIA’s as well as small app’s and movies.

However, the secret to getting everything right when building enterprise scale systems is to understand some of the inner workings of the IDE… and one of the good things to know is the way Adobe FlexBuilder caches different stuff.

One phenomena that we experience on my team from time to time is when Adobe FlexBuilder seems to refuse to recognize an updated SWC – this is more often true when working with RSL’s and precompiled SWC’s than not, but to identify a distinct pattern has thus far been difficult (read: “impossible”).

So for the workaround, a sure way to force the Adobe FlexBuilder to rebuild its SWC cache is to remove the files for the current workspace and then call clean on the solution.

You will find the SWC-cache files in the “[workspace]\.metadata\.plugins\com.adobe.flexbuilder.codemodel\SwcCache\” directory.

Sometimes the same thing happens for projects already open, however the procedure is identical… just remove the files under “[workspace]\ .metadata\.plugins\com.adobe.flexbuilder.codemodel\projects\”.

Adobe Flex Data Visualization Watermark

Posted in Adobe Flex, Adobe Flex Builder, Data Visualization by Peter Andreas Molgaard on September 26, 2008

Once in a while even the most professional individual finds themselves forced into a corner by circumstances over which they don’t have control… and on rare occasions it happens even though the individual do everything right…

…one such situation recently happened to me when I had to deploy an Adobe Flex solution using undigested Runtime Shared Libraries, Flex Modules and Data Visualization in one cool cocktail… after having been unable to rid myself and the solution for the annoying Flex watermark declaring that the chart was shown with a graph compiled with non-registered version of the Adobe Flex SDK, I consulted good ol’ Uncle Google for an answer…

If you don’t know what I am talking about… this is the watermark I am talking about… displayed in grayed out letters displaying “Flex Data Visualization Trial”…

Quickly I came to the JIRA entry for the problem stating that it was not a bug if you remembered to load the Framework RSL prior to loading the Visualization RSL…
http://bugs.adobe.com/jira/browse/FLEXDMV-1756

However, this didn’t change a thing as I was already loading the framework prior to data visualization – I did however try, and yes, it wasn’t the solution…

Left with no official solution and a deadline I didn’t want to break for no one, I quickly had to become innovative and ingenious… I therefore dived down into the source code of the Adobe Flex SDK and eventually found my way to the sources for the data visualization components… once I had created an Adobe Flex Class library for the sources, compiling a SWC and referencing it from my application was easy.

To my great satisfaction, the homebrewed SWC proved to have no watermark when loaded as undigested RSL from a Flex module !

This solution not only solves the problem with the watermark, but it also allows me full control of which classes to include in the library allowing me to effectively cut the size of the visualization library in half based on the classes necessary for this particular application.

I have read the EULA from Adobe, and I don’t think I am in conflict when doing this… however, if anyone at Adobe reads this, please advice otherwise in case.

Please don’t hesitate to write me if you problems getting this solution to work for you…

PS… off course I have a licensed edition of Adobe Flex Builder, so this is not the issue here.

Updated RSL for Flex Data Visualization 3.0.1

Posted in Adobe Flex Builder by Peter Andreas Molgaard on September 6, 2008

Due to a bug in the signing process at Adobe, it appears that the cacheable RSL for the datavisualization components in Flex Builder doesn’t work in 3.0.1.

Adobe has updated the RSL and made it available here.

Go ahead and replace it in your Flex Builder 3.0.1 installation and you’ll hopefully be set.

Read more about it on blogs@adobe…
http://blogs.adobe.com/flex/archives/2008/09/updated_rsl_for_flex_data_visu.html

Adobe Flex Builder 3 Plugin – Only works with Eclipse 3.3 (Europa)

Posted in Adobe Flex Builder by Peter Andreas Molgaard on August 30, 2008

This is probably old news, but at least to me its new…

Adobe Flex Builder 3 Plugin ONLY works with Eclipse 3.3 (Europa) and not 3.4 (Ganymedes) which is the current release.
This is just too bad, but due to Eclipse’s XCopy installation we can still have Ganymedes installed side-by-side with the Eclipse in which we are running Flex Builder.
Unfortunately the problems are not just minor inconveniences, but they are actual showstoppers… such as the MXML editor failing to show files…
http://bugs.adobe.com/jira/browse/FBE-306

Adobe Flex : Change between Debug and Production Builds

Posted in Adobe Flex Builder by Peter Andreas Molgaard on July 27, 2008

Sometimes FlexAnt is just too troublesome to get working correctly (extisting projects tends to be difficulty to FlexAntify) so you need an easy way to toggle between Debug and Production builds…

Instead of going through your projects and setting the variables to Debug=false (even if you have a script / application that does it for you) it makes more sense to use the optimizer application from the Adobe SDK.

Then all you have to do is to call the following command on your binaries…
optimizer bin-debug/[binary].swf –output bin/[binary].swf –keep-as3-metadata=Bindable,Managed,ChangeEvent,NonCommittingChangeEvent,Transient

You can read more about the Optimizer here…

http://livedocs.adobe.com/flex/3/html/help.html?content=rsl_07.html

Adobe Flex Builder 3 released !

Posted in Adobe Flex, Adobe Flex Builder by Peter Andreas Molgaard on February 28, 2008

Through 4 long beta’s we have been waiting for the moment when the Adobe Flex Builder 3.0 got relased… that moment is here now.

Im gonna install it in a test machine to ensure that it doesn’t break our projects. There are no reason to believe that anything should be broken on the account of going from the milestone 4 Beta to the release… but no reason to take chances as I more than one time have experienced that making assumptions about something like this can have disastrous consequences.

Anyways… here it is:

http://www.adobe.com/products/flex/features/flex_builder/

Adobe Flex Builder : Beta 3 released !

Posted in Adobe Flex Builder by Peter Andreas Molgaard on December 14, 2007

The final beta of Flex 3 has been released on Labs. This new release focuses on overall quality and performance, providing a final look at Flex Builder 3 and Adobe AIR prior to launch. There is also a new release of the Adobe AIR runtime.

This 4th milestone marks the final release before beginning the release candidatures.

Read more here:
http://labs.adobe.com/technologies/flex/

and you can read the release notes here:
http://labs.adobe.com/wiki/index.php/Flex_3:Release_Notes#Known_Issues

Adobe Flex Builder : Feature Wish – Remember Code Folding Settings

Posted in Adobe Flex Builder by Peter Andreas Molgaard on December 7, 2007

Wouldn’t it be cool if whenever reopening a document using code folding (Expand and Collapse functions) every entry was not expanded as default. It would be so very nice if the IDE could remember the code folding state of the particular document and restore this state when reopened.

Its just an idea ! :-)

Adobe Flex Builder : TODO/FIXME plugin

Posted in Adobe Flex Builder, Tools by Peter Andreas Molgaard on October 18, 2007

Among the many many cool things I have taken with me from the Adobe MAX Europe 2007, is the knowledge of Dirk Eismann who has been a Macromedia Fellow since 1996.

The first of what I expect is going to be many posts relating to this very sharp and super cool guy is a TODO/FIXME plugin he has implemented for the Eclipse-based Adobe Flex Builder.

Check it out:
http://www.richinternet.de/blog/index.cfm?entry=911D4B57-0F0D-5A73-AF6F4D4D04099757

Many thanx to Dirk for sharing this very cool plugin with us, the community…