>>You are not right, it is totally acceptable and correct, I 
>>think you are mixing something up :)

I understand what you're saying, but in context of what he's trying to do 
(inline object declaration), explain the compiler error on this code:

function createData():Void {
        this._data = new Object();
        this._data["a"] = {"t1":0, "t2":0};
        trace(this._data.a.t1)
}

createData();


So instead, this is ugly, but works:

function createData():Void {
        this._data = new Object();
        this._data["a"] = new Object();
        this._data["a"].t1 = 0
        this._data["a"].t2 = 0
        trace(this._data.a.t1)
}

createData();


Jason Merrill
Bank of America 
Learning & Organizational Effectiveness
 
 
 
 
 
 

>>-----Original Message-----
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED] On Behalf 
>>Of Rákos Attila
>>Sent: Friday, February 09, 2007 2:31 PM
>>To: Flashcoders mailing list
>>Subject: Re[2]: [Flashcoders] Identifier expected
>>
>>
>>MJ> That's because you're still not refrencing an object that exists:
>>MJ> 
>>>>>this._data["a"] = new Object();
>>MJ> 
>>MJ> You're saying, Hey, _data, make your "a" property an object.  But 
>>MJ> Flash is saying, hold on cowboy, I don't see any property 
>>of _data called "a".
>>
>>You are not right, it is totally acceptable and correct, I 
>>think you are mixing something up :)
>>
>>  Attila
>>
>>_______________________________________________
>>[email protected]
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>Brought to you by Fig Leaf Software
>>Premier Authorized Adobe Consulting and Training 
>>http://www.figleaf.com http://training.figleaf.com
>>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to