13 June 2007

Adobe UK Licencing Problems

A friend of mine is have a real nightmare upgrading to CS3. He purchaced a 24 month MVLP licence in January 2006 which entitles him to free upgrades within that period. Adobe seem to have forgotten this and after 7 weeks of frustration with Adobe, Paul still has no CS3!

Paul is self-employed and this delay has the potential to affect his business.

Click here to read his blog

I've had a similiar experience trying to change my Flex Builder 2 licence from PC to Mac, as my poor 3 year old PC couldn't cope with it! After multiple phone calls and hours on the phone and not getting through, I sent an email to customer support who said "as this is a licencing issue, please call our customer support line". Thanks for that useful message Adobe! Just what I wanted.

I tried to call a few more times, but decided it'd be easier using the Windows version of Flex Builder via Parallels on my Mac!

Here's another interesting article about Adobe pricing:http://web.mac.com/libine/iWeb/Site/Article.html

11 June 2007

Ways of connecting to Flex with Coldfusion

This is a brief outline of the ways it can be done. There are many more in-depth examples on the web:

Set up you data sources in Coldfusion
Do as normal, but if you're using a MySQL version over 4, you must download the JDBC drivers. Follow this Adobe technote here

Design your CFC's
There are many ways in which you can connect to Flex. Flex Remoting or using Coldfusion / Flex connectivity (for this make sure you have all the latest CF updates for Flex 2 here).

Your CFC's must be designed to do the tasks required in an efficient way so that Flex uses the minimum of service calls.

Setting up Coldfusion for Flex Remoting
There are a few ways to set up remoting in Coldfusion, the simplest way is to set all CFC functions that need connecting to Flex i.e. to act as web services, to access="remote".

A more complex, but efficient way is to create a lightweight gateway CFC as an interface to the underlying CFC architecture. For example, consider CFC's called "MyService.cfc" and "MyGateway.cfc".

MyService.cfc contains all the logic you need doing: database queries etc. function access="public". Load this CFC into the application scope onApplicationStart, this way it is only intantiated one throught the whole application.

MyGateway.cfc is the remoting interface and contains no logic, it mearly calls the functions in MyService.cfc (now application.MyService). These function should be set to access="remote".

When you call CFC's from Flex (or Flash), a new instance of the CFC is created in memory on the Coldfusion server. If you call the full, bloated MyService.cfc each time you make a request you'll be using more memory than necessary, therefore the lightweight MyGateway.cfc is the one that is instantiated multiple times by Flex.

In Flex you need to use the HTTPService class/tag. Enter the URL for the CFC you want to call. Coldfusion will return a WDDX formatted XML response, which Flex components can parse and use natively.

This architecture is used and explained more on:
ASFusion.com

Using Coldfusion / Flex connectivity
Provided you've done all the updates. Create your myService.cfc as above containing all the logic. However, this time you won't need your MyGateway.cfc as you'll create equivalent classes in Flex which match MyService.cfc i.e. create MyService.as with all the same functions and arguments.

You can then instantiate MyService.as in Flex and use it just like any other object. This allows you to access all the backend power of Coldfusion via normal Actionscript function calls - pretty powerful!

My tuppence worth
Great and powerful CF/Flex connectivity may be, I'd personally use remoting for my Flex applications as this will make your Flex application platform independent.

05 June 2007

Resolution to the Flash 3 mintue load! (And Acrobat Reader 8 and Firefox problems)

After a lot of trawling around and a lot of dead ends, the problem was actually font based.

I noticed that csrss.exe was at 100% when I tried to load Flash CS3, Acrobat Reader 8 and get into Google News. The only Microsoft resolution (http://support.microsoft.com/kb/555021) suggests recreating your user profile - don't!

I couldn't find any other posts that had a solution to my problem, but I considered it could be font based as Flash CS3 freezes when "Initializing fonts".

In my system.ini file I noticed a list of .FON commands:

[386enh]
woafont=dosapp.FON
EGA80WOA.FON=EGA80WOA.FON
EGA40WOA.FON=EGA40WOA.FON
CGA80WOA.FON=CGA80WOA.FON
CGA40WOA.FON=CGA40WOA.FON


I removed these and now everything works fine!

I discovered that this is what Windows uses to emulate fonts in EGA and CGA monitors (it's 2007 for godssake!). So far, I've had no ill effects from removing them from my system.ini file.