Hello Flash minds,
Wrap your head around this one.
I have this piece of code that every time I use auto format, flash
moves it outside the brackets it was originally at.
Eg:
before:
//other code
for (var o in paypalObj) {
sUrl += o + '=' + paypalObj[o] + '&';
}
trace(sUrl);
if (paypalObj.quantity == 0) {
this.itemSelection_mc.status = "WARNING::: You did not specify a
quantity";
} else if (paypalObj.os0 == "") {
this.itemSelection_mc.status = "WARNING::: You did not specify a
size";
} else if (paypalObj.os1 == "") {
this.itemSelection_mc.status = "WARNING::: You did not specify a
color";
} else {
getURL(sUrl,'paypal','POST'); //this is the
culprit
}
};
}
}
after:
//other code
for (var o in paypalObj) {
sUrl += o + '=' + paypalObj[o] + '&';
}
trace(sUrl);
if (paypalObj.quantity == 0) {
this.itemSelection_mc.status = "WARNING::: You did not specify a
quantity";
} else if (paypalObj.os0 == "") {
this.itemSelection_mc.status = "WARNING::: You did not specify a
size";
} else if (paypalObj.os1 == "") {
this.itemSelection_mc.status = "WARNING::: You did not specify a
color";
} else {
}
};
}
}
getURL(sUrl,'paypal','POST');//the culprit moved by flash
Whats weird, is that it works the before way and not the after, so
unless I figured out that flash was moving my code, I would never get
this to work.
Is this a bug in flash? Just currious.
Thanks,
Karl DeSaulniers
Design Drumm
http://designdrumm.com
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders