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
Leave a reply
You must be logged in to post a comment.