I have this in a function, called with animload(this).. although it produces the weird output, see below:
ActionScript Code:
function animload(obj) {
with (obj) {
origx = _x; tox = _x;
origy = _y; toy = _y;
origa = _alpha; toa = _alpha;
trace(origx);
}
trace(obj);
trace(obj.origx);
}
Quote:
197.1
_level0.gr
undefined
|
Why can't I get the variable origx from the object "obj" from outside the with function..?
I though that these were the same:
with (obj) { origx = 100; }
obj.origx = 100;
What is the difference??
Thanks in advance