23 Jul
Having worked with flex for quite some time now, I still learn something new about the framework nearly every day. Which is great! The other day, I discovered the IMXMLObject interface in flex. Something I maybe should have known already by now, but hey, .. I didn’t
It actually is really simple. If you [...]
Posted in Programming, Rich Internet Applications by: polesen
2 Comments
22 Jul
ActionScript3 has the nice feature of a get and set keyword, usable for easily defining properties on classes, while still hiding the actual implementation.
AS3 also has the varargs feature, in the form of the …(rest) keyword. This can be utilized to create methods that take an unspecified number of arguments.
Sadly, I have been unable to [...]
Posted in Programming by: polesen
9 Comments
21 Jul
Maybe I am just stupid, but in my latest escapades into cookies and sessions, I noticed that a session always gets created up front in JSP pages. If you have a simple index.jsp page like this one:
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head><title>index</title></head>
<body>the index</body>
</html>
The container will set a session cookie as one of the very first things. [...]
Posted in Programming by: polesen
7 Comments
19 Jul
I and a colleague battled a “funny” problem, where our flash client did not get a new session cookie, when the old one expired. In the process of determining what was wrong, we came in touch with a great deal of areas, including RFC 2965 about HTTP State Management, the sources for tomcat 6, JSR-154 [...]
Posted in Programming by: polesen
2 Comments
15 Jul
Want to compile flex code with maven? Don’t know which plugin to choose? Maybe this post will help you. Today, there are several available options for compiling flex with maven. On my list, I have these:
flex-mojos
israfil
servebox
Of the three, I have tried only the first two for real. I did take a look into the servebox [...]
Posted in Rich Internet Applications by: polesen
1 Comment
15 Jul
In this post, I compare performance, measured in time taken to compile flex modules with maven, from two different maven flex plugins, israfil and flex-mojos.
The Contenders
If you compile flex projects from maven, you need a maven flex plugin. Targeting flex 3, there currently exists two plugins:
Flex-mojos
Israfil
The Problem: Time Taken to Compile
One problem with the “mxmlc” [...]
Posted in Rich Internet Applications by: polesen
9 Comments
09 Jul
A couple of weeks ago, while I had a fun day with a bunch of my colleagues, showing them the wonders of flex development, another two of my bright colleagues used that same day, to uncover how far JavaFX is now, and what could be done with the technology today. And the answer was horrifying. [...]
Posted in Programming, Rich Internet Applications by: polesen
7 Comments
08 Jul
While I do like to write UI code in ActionScript3 within the flex framework, I also miss features from Java sometimes. One of those missed features is method overloading, the ability to have several methods with the same name, differing only in input and output types. This is not possible in as3.
Just Use Default Values [...]
Posted in Programming, Rich Internet Applications by: polesen
3 Comments