8. Oktober 2009

Flex Framework for mobile applications

Filed under: Adobe,Flex — Patrick | 00:27 Digg It!

Adobe is working on a version of the Flex framework for mobile application, Codemane Slider. When I watched the video about the Slider Preview at Max presentation by Ely Greenfield (Adobe), I was totally impressed about the ideas behind Slider. I like the idea how to solve the to integrate into multiple plattforms and Cross Platform developement based on Conditions and Style/Skins. If you want to now what I’m talking about, check the video below. Adobe provides also a white paper at Adobe Labs.

Adobe Adobe  Adobe Max 2009 Adobe Max 2009  Flex Flex  Framework Framework  Mobile Mobile  Slider Slider 

11. Juni 2009

Actionscript3 based Google Analytics Solution for Flash and Flex

Filed under: Flash,Flex — Patrick | 00:10 Digg It!

If you wanted to track a Flash or Flex based application with  Google Analytics, you had to use the ExternalInterface to call the function of the JavaScript library. While search for a solution which isn’t using JavaScript, I found out that Google now provides some ActionScript3 libraries for Google Analytics.

You can find the documentation here and the libraries here.

The nice thing about the library is that you have the choice whether you want to use a ActionScript-Only solution or combine JavaScript and ActionScript. The only difference between both solutions is one parameter when calling of constructor of the tracker.

ActionScript-Only ActionScript-Only  ActionScript3 ActionScript3  Flash Flash  Flex Flex  Google Analytics Google Analytics 

7. Mai 2009

Spring BlazeDS Integration 1.0.0.RC1 Released

Filed under: BlazeDS,Flex,Technologie — Patrick | 02:16 Digg It!

Today, Spring published the first Release Candiate of the Spring BlazeDS Integration. http://www.springsource.org/spring-flex

One of the new features is the annotation-based configuration of Remote Desitinations. You can include and exclude function, which should publish as Remote Objects. The annotation-based configuration really simplifies the configuration of BlazeDS, if you have a big and complex application. Loving it.
An other feature of this release is the full integration of the BlazeDS Message Service.

Next Thursday, Adobe and SpringSource having a Connect Session/eSemiar about the Spring BlazeDS Integration.

Registration: http://www.adobe.com/cfusion/event/i…2539&loc=en_us

Annotations Annotations  Flex Flex  Java Java  Message Service Message Service  Remote Object Remote Object  Spring Spring 

5. Mai 2009

dttl.tv relaunched!

Filed under: BlazeDS,Flash Media Server,Flex,Projekte — Patrick | 15:00 Digg It!

On time for the World Table Tennis Championships in Yokohama, the website of the German Table Tennis League (dttl.tv) was relaunched last week. The main element of the relaunched website is a new video player, based on Adobe Flex and the Adobe Flash Media Server. You can find all games of the German Table Tennis League in full length, interviews and the top rally of the day.

On May 15th 2009, the first live stream (19th match day of the German Table Tennis League) of the new website will avalaible.

To manage all the videos and streams, the player has a backend system based on BlazeDS, Spring and Hibernate.

Have fun and visit the website of the best Table Tennis League worldwide to see some of the most brillant table tennis players.

dttl.tv dttl.tv  Flash Media Server Flash Media Server  Flex Flex  Hibernate Hibernate  Spring Spring  Table Tennis Table Tennis 

3. März 2009

PureMVC Skeleton for Flash Media Server Applications

Filed under: Flash,Flash Media Server,Flex — Patrick | 22:55 Digg It!

While searching for some Flash Media Server informations, I found a PureMVC Skeleton for Flash Media Server Applications on Stefan Richter’s Website. The skeleton provides the logic for the connection to Flash Media Server, but not any implementation of a video player.  I will use the skeleton in a video portal project, which I’m planning for a customer at the moment. Nice stuff.

Flash Media Server Flash Media Server  Flex Flex  MVC Framework MVC Framework  PureMVC PureMVC 

15. Februar 2009

Using JasperReports in your Flex Application

Filed under: Flex,Technologie — Patrick | 20:42 Digg It!

Last week, I came cross the Flash Viewer for JasperReports. JasperReports is an OpenSource Java Framework to build Reports based on different data sources. We’re using in our projects JasperReports to generate PDF reports, too.

The Flash Viewer Project is using the Flex SDK to render the JasperReports for the HTML or Web based application. All source files of the viewer are available, so that you can customize the viewer for your needs.

But you can’t replace a interactive Flex chart component with the report viewer, because the viewer only generates a static output of the report. You can also using the JFree Chart extensions of the JasperReports, but neither the Charts nor the Text Information are selectable. If you’re changing any data of the report, you have to fill the report again in your Java Backend and rerender the report with the viewer.

So, using the viewer make only sense if you using it as preview of the report or if your reports aren’t as complex and interactive. And the best thing about the viewer is that you can use the same source file for your web and print output.

Additional Infos:

To use the Flash Viewer, you have to setup a Java web server like (Tomcat…) and run the webapp of the Flash Viewer. You get the webapp, if you download the project zip of the Flash Viewer. To display a report, you have to compile the report definition (jrpxml file) and fill the the compiled report. After that, you can use the Flash Viewer to display the report. The project zip contains a sample report, which demostrates how to use the flash viewer.

Flex Flex  Jasper Reports Jasper Reports 

3. Februar 2009

Number in Flex3 and the decimal separator

Filed under: Adobe,Flex — Patrick | 23:54 Digg It!

Today, I decided to write my first blog post in English. The reason for this post is the implementation of Number in current Flex3 SDK. I haven’t used Number as input for a while, the last time about one or one and half years ago. What had changed during this time: You can’t directly parse a String into Number if you using a comma as decimal separator.I used the resource bundle properties to change the decimal and thousand separator.

SharedResources.properties:

# CurrencyFormatter, NumberFormatter, Slider
decimalSeparatorFrom=.
decimalSeparatorTo=,
thousandsSeparatorFrom=,
thousandsSeparatorTo=.

validators.properties:

# Currency/Number Validator
allowNegative=true
decimalSeparator=,
maxValue=NaN
minValue=NaN
thousandsSeparator=.

If you trying parse the String into Number using current 3.2.0 Flex SDK, the result is always NaN. In Flex 2 this transformation worked perfect.

var s:String = “0,5″

var n:Number = Number(s);

=> n = NaN

Also the parseFloat function can’t parse the String into Number. The function cuts off the decimal value of the Number if you using a comma. The only way to do this transformation is using a regular expression to replace the comma with a point and than transform the String into a Number. If you have multiple input fields with numbers, this is no satisfying solution.

When I read some JIRAs at the Adobe Bug and Issue Management System, I found a couple of bugs which are related to this problem. The NumberValidator and CurrencyValidator doesn’t work correct if you using a comma as decimal separator. They can’t validate if the number is in the range of min and max values of the validator. Before comparing the input against the min and max values they transform the String into Number by using following code.

var x:Number = Number(input);

The result of this transformation using a comma as decimal separator is always NaN.  Line 295 of the NumberValidator and line 343 of the CurrencyValidator Adobe uses this transformation. So, the validation of min and max couldn’t work using a comma.

Please, Adobe correct the implemtation of Number.

Bug Bug  comma comma  CurrencyValidator CurrencyValidator  decimalseparator decimalseparator  Flex Flex  Number Number  NumberValidator NumberValidator  SDK SDK 

19. Dezember 2008

SpringSource veröffentlicht ersten Milestone der Spring BlazeDS Integration

Filed under: Adobe,BlazeDS,Flex,Technologie — Patrick | 23:32 Digg It!

Heute hat SpringSource den ersten Milestone der Spring BlazeDS Integration veröffentlicht. Informationen zum Spring BlazeDS Integration finden sich jetzt auch auf der SpringSource Webseite, dort werden eine Referenz Dokumentation, eine JavaDoc und natürlich auch den Downloads zur Verfügung gestellt. Zusätzlich gibt weitere Informationen in einem Blog und einem Forum zur Spring BlazeDS Integration.

Sobald ich selber mal ein Auge auf die Integration geworfen habe, folgen weitere Informationen.

Flex Flex  Spring Spring 

18. Dezember 2008

Prana Framework wird zum Spring Actionscript Framework

Filed under: Adobe,Flex,Technologie — Patrick | 00:57 Digg It!

Das IoC Framework Prana von Christophe Herreman ist Spring Extension unter dem Projektnamen Spring Actionscript verfügbar. Bei der Entwicklung von Prana wurde Java Spring Framework als Vorlage genommen und dessen Funktionsweise nachimplementiert. Spring ActionScript basiert auf ActionScript 3 und bietet Integrationsmöglichkeiten für MVC Frameworks Cairngorm und PureMVC.

Spring ActionScript hat nichts mit Kooperation zwischen Adobe und SpringSource zur Integration von BlazeDS/LiveCycle DS und Spring zutun. Während Adobe und SpringSource an einer Backendseitigen Integration arbeiten, kann man mit dem Spring ActionScript Framework die gleichen Dependency Injection Mechnismen im Flex Frontend nutzen, welche durch Spring für das Java Backend zur Verfügung gestellt werden.

Link zur Bekanntmachung im Forum des Spring Frameworks.
Link
zum Subversion von Spring Actionscript

Dependency Injection Dependency Injection  Flex Flex  Inversion of Control Inversion of Control  Prana Prana  Spring Spring 

16. Dezember 2008

Text Layout Component für Flash und Flex

Filed under: Adobe,Flash,Flex — Patrick | 20:55 Digg It!

Wer sich schon mal versucht hat einen Editor zuschreiben, der mehr als die Standardfunktionen des Flex TextEditor unterstützt wird feststellen, dass nicht ohne weiteres möglich. Insbesondere die Erstellung von Texteditoren, die mehr Formattierungen unterstützen als das was htmlText zulässt ist nicht wirklich schön.

Abhilfe leistet die Text Layout Component für Flex und Flash, welche Dank der neuen Text Features im Flash Player 10 neue Möglichkeiten bietet. Will man die Text Layout Compoment bereits jetzt nutzen, dann kann entweder ein Plugin für Flash CS4 installieren oder eine reine Actionscript basteln. In Flex 3.2 lässt sich nur ein Subset per Actionscript Programmierung nutzen. In der kommenden Version 4 von Flex (Codename: Gumbo) ist die Text Layout Component bereits integriert, so dass man alle Features nutzen kann.

Link zur Text Layout Component auf Adobe Labs

Flash Flash  Flex Flex  Formatting Formatting  Rendering Rendering  Text Text