November 16th, 2007 by Hans Wichman
Casting to Array, well that’s easy enough right?
Imagine you have:
var my2dArray:Array = new Array();
my2dArray.push ([1,2,3,4,5]);
my2dArray.push ([6,7,8,9,0]);
And now you want to access and cast an element of myArray to an array:
var firstArray:Array = Array (my2dArray[0]);
trace (firstArray.length);
Right?
Yeah if you’re compiling in MTASC. The Flash IDE Read the rest of this entry »
Posted in AS2, Flash, MTASC vs FlashIDE, Tips&Tricks | 1 Comment »
November 16th, 2007 by Hans Wichman
I was thinking about how I used to program Java before I got hooked onto Flash. I started on Java because of its conceptual beauty. And I loved how all the academic OO concepts taught and studied at the University could be tested and implemented in Java. Hell, I even swore Composition Filters amounted to Object Oriented Salvation for a while
.
My thoughts wandered back to my first java projects at TriMM back in 1999 and onwards. My boss at that time Read the rest of this entry »
Posted in General | 1 Comment »
November 14th, 2007 by Hans Wichman
I had an idea this afternoon for simple asset from code separation in Flash8/AS2. You might have been in the situation were you wanted to load in your views, or have your views and other assets external from your code. If these assets happened to be V2 Components you were even having a bigger party.
I am usually working on a kind of hybrid projects, I create a fla with assets and code runnable from the IDE, and use the resulting swf as an injection swf in FlashDevelop. The cool thing of working this way is that -seeing the project is hybrid and all- you can either work on the project in the Flash IDE, or crank some code in FlashDevelop. There are a few drawbacks however.
- you are using an swf which already contains all code as an injection swf. Since we use only intrinsic mx classes, we can’t use the keep flag to remove all classes from the swf, since we lose the mx classes from the swf. However especially refactoring where new superclasses are introduced or interfaces, requires recompilation of the injection swf in the Flash IDE. And in general it’s bad practice, and bloates your swf
- you need the code to export the swf from the IDE
- you need the injection swf to run your application from FlashDevelop
Especially when working with a designer where the designer Read the rest of this entry »
Posted in AS2, Flash, Research, Tutorial | No Comments »
November 12th, 2007 by Hans Wichman
I had an idea for a flash framework, and while I’m not fully there yet, the first of proof concepts at TriMM are very promising. It solves a lot of the problems I can think of up till now, so I’m curious to see where this will go.
Design patterns were clear enough, but their implementation is often less than straightforward. Take an MVC pattern. Have you ever found one straightforward implementation? Instead of 100k hits on google all with a slightly different twist? The same patterns that should make it easier to communicate with your coworkers come back to haunt you, since responsibilities in classes are slightly differently allocated than you are used to, mediators are called controllers, and everything is untyped or abstracted away for the sake of ’simplicity’ etc…
The ideas I’m currently having are in blueprint phase including an almost working example as well. Just a quick overview of the design goals that are Read the rest of this entry »
Posted in AS2, Flash, Framework | 1 Comment »
November 12th, 2007 by Hans Wichman
Today my project manager informed me that a dutch organization, M&ICT, which came about through an intensive cooperation of several departments of local government such as the department of Justice, Eduction, Culture & Science and more, is holding another competition (the 5th to be exact), called ‘Serious Gaming and Simulation for better safety’.
The documentation can be found here (although it’s in dutch) http://www.m-ict.nl/, and to my pleasant surprise, Behrloo, the system of which I am the lead frontend architect, is prominently featured as an example project and might even be a contestant as well. Check out page 11.
Another preliminary research report can be found here: https://www.rijkswaterstaat.nl/rws/wnt/toolbox/ Rij-Assistent%20-%20Rapport%20Serious gaming%20-%20mei%202007.pdf, check out page 40 onwards!
Very nice read, although not all the information is correct. For example they mention that Behrloo has been built in .Net using flash for the graphical elements. The truth is that the backend was built in .Net and the frontend is a fullfletched object oriented system, which -yes- displays graphical elements, but has no less than 300 classes and several subapplications under the hood. No timelines were hurt during the development of this system :).
Nice to see TriMM is mentioned as well!
Signing off!
Hans Wichman
Posted in General | No Comments »
November 3rd, 2007 by Hans Wichman
Sometime you come across posts or pages that really amaze me.
At times like that I am amazed at the amount of bunglers that are in this line of work. I am amazed at the poor level of self-knowlegde these individuals posses. And I am amazed at the arrogance & cockiness with which these people go through life. And last but not least I am amazed at the ease with which these people seem to twist the facts without any remorse or sense of shame at what they are doing. I cannot conclude otherwise than that these individuals have been hiding behind, or rather are glued face first onto a solid brick wall, since apparently all the do’s and don’ts in the industry (or in general for that matter) got lost on them over the years.
Coming across an article like this:
http://maximporges.blogspot.com/2007_05_01_archive.html, shows I’m not alone in this and I couldn’t agree more (only the locations are different).
Anyway I’m getting side tracked, the main reason I’m writing this article was a page I came across yesterday.
The person who created this page was involved Read the rest of this entry »
Posted in General | 1 Comment »
November 2nd, 2007 by Hans Wichman
There are some new exciting developments going in Behrloo. The number of hits in Google seem to grow every day, and we have some exciting new plans for upcoming releases. I wish I had more time to develop content and cases myself, but being the (frontend) technical architect of a system this big is challenging enough as it is.
At the moment we are diving into the controversial subject of application frameworks, which is something really enjoyable to sink your teeth until it’s dark outside and everyone’s sound asleep
We had some very nice talks with Stefan Richter from FlashComGuru last week as well when he came over to TriMM to discuss one of our other projects called YPKA. We managed to sneak away to a mexican dinner for a while with the other Flash Geeks
to share ideas etc.
All in all an exciting and good week, which ain’t over yet, so if you’ll excuse… I’m off back to work 
Posted in Flash, Framework, General | No Comments »
October 20th, 2007 by Hans Wichman
On my long list of plans for this year was to dive into the world of Flash Frameworks.
Only thing is that it has taken me so long, that the world has moved on to Flex Frameworks, but that’s beside the point.
I wanted to dive into frameworks because I heard all these people talk about how great frameworks are and how they’ve helped people build great applications etc.
A quick recap of my first impressions/experiences: Read the rest of this entry »
Posted in AS2, Flash, Framework, Research, Tutorial | 3 Comments »
October 17th, 2007 by Hans Wichman
Come again?
Yes, that was what I said. Upon running Adobe Flex Builder 2 I’m visited with this strange error.
The title for the exception is ‘No disk found’.
ZOMG!
After right clicking on ‘Safely Remove Hardware’ and removing my card drives (you know the empty ones), the error went away.
Amazing, simply amazing :).
Posted in Tips&Tricks | No Comments »
October 16th, 2007 by Hans Wichman
When you are developing a theme for say Joomla, or editing a lot of content, it is easier now and then to do this offline.
However if you DO want to do this offline, you’ll need a testserver.
I’ve been using JSAS, Joomla StandAlone Server for that purpose.
Download it here: http://joomlacode.org/gf/project/jsas/frs/.
Once installed, you’re good to go with apache, php, mysql and joomla.
By default it will give you a local webserver on your localhost, reachable on port 85, in other words, to test it, goto :
http://localhost:85/
Inside the JSAS directory Read the rest of this entry »
Posted in Tips&Tricks, Tutorial | No Comments »