They keys in the Java map are Strings and the values are B objects,
you could say it is HashMapString, B.
So suppose in Java i do this:
A objectA = new A();
objectA.myMap = new HashMap();
B objectB1 = new B();
objectB1.id = 1;
objectB1.name = Test;
myMap.put(key1, objectB1);
In Flex if i iterate
Right, I see. I suppose you may be doing something funky in the constructor
for your actual impl of A or B. Try commenting out the constructor and see
if you have the same problem.
-Josh
On Tue, Sep 9, 2008 at 9:17 AM, dmiramontesval
[EMAIL PROTECTED]wrote:
They keys in the Java map are
Um actually my example is wrong, i was missing something, let me
explain again:
I have 3 classes as a matter of fact, classes A and B are correct but
i forgot to mention that inside B there is an object C:
[RemoteClass(alias=com.test.B)]
public class B {
public var id:Number;
public var
Sounds to me like you're accidentally declaring b.myC as a static, perhaps.
Actually, double check your examples (perhaps using the link report option
on MXMLC). It might be that you're not actually referencing B and it's not
becoming part of your SWF, in which case you're getting a best guess
I don't think that is what's happening, when i use if (i is B) the
condition does work, it enters the if block but it resets the C object.
I tried a new thing, on B i changed the myC declaration
public var myC:Object; // Object instead of C
By doing this i can use if (i is B) and now it doesn't
Then the problem is with your definition of C, and it's being unmarshalled
incorrectly. That's basically what I was trying to say, but I think I
explained it poorly.
When you make no explicit reference to the class C it is never included in
your SWF, so the remoting system never sees the
So according to your explanation if i do something like (is B) or (is
C), those classes will be included into my SWF
I am no longer at the office but tomorrow that will be the first thing
i will try.
I have used the C object in other modules of the application so i am
not really positive
7 matches
Mail list logo