----- Original Message -----
From: Samuel Colak
To: [email protected]
Sent: Monday, November 05, 2007 2:32 PM
Subject: Re: [flexcoders] WITH construction ?
Not quite what i mean - not to call the function but referring to properties
inside the object - your demo implies a static object "Math" with functions cos
and sin.
inside the "object" i have a getter and setter for the property "x".
Regards
Samuel
function test():void {
var o:Object = new Object();
o.k = "hello";
trace("k="+o.k);
with (o) {
trace("k="+k);
k="goodbye";
trace("k="+k);
}
trace("k="+o.k);
}
Result:
k=hello
k=hello
k=goodbye
k=goodbye
How hard was that to try out?
Paul