Bensmeets.com

Rich Internet, Interaction design and User Experience

Archive for the ‘RIA’ Category

Wednesday
Nov 10,2004

It seems i came across a little glitch in using Actionscript 2 classes (custom) with build in xml objects. If you ’sendAndLoad’ them in 2 seperate classes, it’s not predictable which one arrives at the server side first.

I am currently busy attempting to apply all things learned about RIA development (in flash) on a new project which tries to exceed previous attempts in complexity.

Doing so, i came across the above problem. First things first, i haven’t thoroughly tested it, so it might be a glitch in my classes, but just for the h*ck of it, here is the deal.

I use custom classes with build in xml properties. Very simplified code looks like this:

class A {
  private var _xml:XML;
  public function A() {
    _xml = new XML();
  }

  public function do() {
    _xml.sendAndLoad(url...);
  }
}

The funny thing is, that when i create two classes like A in, let’s say a button clicked handler, and call the ‘do()’ action, it’s uncertain which call arrives at the server side first. e.g.

on (click) {
  var B = new A();
  B.do();

  var C = new A();
  C.do();
}

One time, it will be the xml of ‘B’ which arrives first, next time it will be C’s xml. Very strange indeed. Ways that make me confident it is a glitch and not a server side problem, is that one way or the other (not building the server side stuff) it is visible to us which socket is used by the client, and their order is the same as the order of reception.

Anyone else have similar problems?

Update: Since very few people are reading these kind of posts after their initial post, the discussion about weither the problem is true or not is kind of dead. For those who are curious like me, the discussion can be continued over in the forum

Ariaware goes open source

  • Filed under: RIA
Tuesday
Nov 2,2004

This is the very first news i heard about flash developers open sourcing their libraries. Something i am planning to do in the future perhaps, if i can get the flash framework level up enough :)

But in the mean time, if you are serious about developing apps in flash, you should be sure to check this little link and download the framework used by very talented developers. Trust me :)

Tuesday
Sep 28,2004

Well, it took a while but I finally found out how to implement the new AS2.0 orientated Remoting Classes. The problem was that there are so many files available from macromedia, claiming they are the correct ones, which they aren’t. The tutorials, explanations, livedocs, etc. available through the MM help pages, are still written in AS1.0 format so that doesn’t help much also :)

But i luckily ran into Aral’s blog where he seemed to have the very exact same problem as I did. Even better, he also pointed me to the pure AS2.0 classes instead of those diry ol’ common library items.

Jeez, why doesn’t MM only make available these Classes? Why all the fuss with common libs, multiple files, etc. Or at least mention it on the Frontpage of Flash Remoting….would have safed me so much time.

Anyway, without further ado, tadaa.