ilan 05/08/2010 - 13:10
Lately I was dealing with a massive refactoring effort in a large scale application. I desperately needed a way to understand the code flow before...

Now that Flex SDK 4 was released, I thought I'd do a series of posts on the differences between Flex 3 and Flex 4 SDKs that will hopefully help migrate your Flex 3 app to Flex 4 or make the transition from SDK 3 to SDK 4 easier. I will be assuming you already know Flex 3 and will concentrate on the new in Flex 4 compared to Flex 3.

This post will serve as the index of the series, and I will be adding links to the different posts to this one as they become available, so come back from time to time to get updated.

 

sefi 21/04/2010 - 08:33

Flex 3 had some language tags we are all familiar with like <fx:Binding>, <fx:metadata>, <fx:script> and <fx:style> to name a few.

Flex 4 introduces some new mxml tags you can use when writing mxml classes. They are <fx:Declarations>, <fx:Definition>, <fx:Library>, <fx:Private> and <fx:Reparent>.

 

sefi 14/05/2010 - 10:00



In the current application I am working on, we are using a Flex client that communicates with a Web service on the server side. The client's VOs are automatically generated.

One of the things that bothered me in that model is – how can I implement polymorphysm in this model?

 

Let's assume that in the wsdl there is a complex type A.

Two types extend it (using xsd:extension) – B1 and B2.

yoav.moran 24/06/2010 - 09:49

Currently I use Eclipse to generate VO classes from the WSDL.

The problem with that is that I can't override the classes and add more properties and functions as I need.

A possible solution is to use a custom code generator that will generate the classes on my conditions. Then I can define a class to extend my classes and not the model's classes, or set all base classes to extend EventDispatcher, etc.

Moreover - then I won't be influenced by the changes done in Flex builder during the versions (the Flex builder generates completely different code than the Flash builder 4).

1. Is there any other way to add my own functions and properties to the VOs?

2. What code generation software do you recommend?

yoav.moran 15/06/2010 - 15:22

Hi,

A client had this issue. Instead of presenting the whole case, here are two links that explain the scenario and provide possible solutions to this issue if you ever encounter it:

 

1- http://candrews.integralblue.com/2009/01/preventing-outofmemoryerror-nat...

 

2- http://www.talkingtree.com/blog/index.cfm/2005/3/11/NewNativeThread

 

 

 

shlomo 31/08/2010 - 09:18

 Hello all,

 

I have been working on a project that involves allot of data input through a flex GUI.  The most common control for input that we use is an Auto Complete control.  The way this works is by providing a data source of items to suggest as the user inputs text.  As matches are found the results are displayed to the user similar to the GUI of the ComboBox control.

 

The control that was used in the project worked in that it displayed the suggestions and allowed the user to select more than one option.  However,  there were a few drawbacks:

1) Directional arrow input did not cycle through the visible suggestion.

2) The backspace button didn't erase the text of an item in a manageable way.

3) The results were displayed as just text.  I wanted to display items like on Facebook with blue circle borders.

dov 10/08/2010 - 16:00

MVC based applications often offer some kind of a mediation between the actual Flex view component and the rest of the system.

PureMVC has its Mediator, Cairngorm offer the View Helper (though they not encourage using it). I'll focus on PureMVC.

 

When the view component is dynamically created, you'll probably want to create it's mediator dynamically as well.  This is a very common scenario in large applications.

 

First thing comes to mind in this scenario is using the view component's CreationComplete or Initialize events for creating its mediator.
 

It is very tempting doing so, especially when guaranteed that by the time these events occur, the component children are created, and the mediator can access them without getting exceptions.

 

The problem

ilan 04/08/2010 - 23:36

Led by Lior Brood, this meeting is dedicated to communication with the server.

Agenda:

 

Overview

 Flex Integration (AMF) Vs Text based (SOAP, REST)
 What is AMF?
 What is BlazeDS?
 Blazeds Vs Granite

In depth (includes code samples)
 Server Blazeds + Spring
 Client Blazeds + Spring Actionscript
 Approaches and Challenges (Lazy Loading...)
 DTO and VO Patterns, Challenges, Use cases
 Implementing DTO generation with GAS3

Open Discussion

ilan 22/07/2010 - 08:46

I've encountered a strange error:

"unable to export SWC oem"

 

Than I've found that it's a problem in the .flexLibProperties's tags.

 

The solution is to do the following steps:

 

  1. Open flexLibProperties (you can open using ctrl+shift+r)
  2. Delete all the <resourceEntry> tags under <includeResources>
  3. Go to properties->build-path->assets and select all
  4. Recompile your project

 

That should do it...

 

For more articles you can visit my blog on flex.

 

Shai

shair 11/07/2010 - 19:29
Syndicate content