Re: [Flashcoders] Weird auto format

2009-11-19 Thread Karl DeSaulniers

Oh and if I put code below, this is what it does..

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');
};
};
};
};
function onChange() {
// more code


flash adds a bunch of ); to the end before the code below it.


Karl

On Nov 17, 2009, at 2:10 AM, Karl DeSaulniers wrote:


Nope. Just CS3

Karl


On Nov 17, 2009, at 2:03 AM, Ktu wrote:

I copy pasted that into CS4 stock and I could not reproduce the  
error. I

tried it on the timeline and in a class file with no luck.
Could there be any updates you've done to your version of flash  
that could

cause this?

Ktu


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Weird auto format

2009-11-17 Thread Ktu
I copy pasted that into CS4 stock and I could not reproduce the error. I
tried it on the timeline and in a class file with no luck.
Could there be any updates you've done to your version of flash that could
cause this?

Ktu

On Tue, Nov 17, 2009 at 2:02 AM, Karl DeSaulniers k...@designdrumm.comwrote:

 Interesting. Thanks.
 Any wild guesses as to why it happens??

 Karl



 On Nov 17, 2009, at 12:55 AM, Henrik Andersson wrote:

  Karl DeSaulniers wrote:

 So it is a bug?

 Karl

  To be blunt, yes, yes it is. I filed a bug report, maybe it will be
 fixed in CS 5.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 Karl DeSaulniers
 Design Drumm
 http://designdrumm.com

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Weird auto format

2009-11-17 Thread Karl DeSaulniers

Nope. Just CS3

Karl


On Nov 17, 2009, at 2:03 AM, Ktu wrote:

I copy pasted that into CS4 stock and I could not reproduce the  
error. I

tried it on the timeline and in a class file with no luck.
Could there be any updates you've done to your version of flash  
that could

cause this?

Ktu


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Weird auto format

2009-11-16 Thread Henrik Andersson

Karl DeSaulniers wrote:

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.


I can not reproduce with this limited sample. It just results in a 
syntax error due to too many ending }, fixing that does not reproduce 
the bug.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Weird auto format

2009-11-16 Thread Karl DeSaulniers

On Nov 17, 2009, at 12:15 AM, Henrik Andersson wrote:

I can not reproduce with this limited sample. It just results in a  
syntax error due to too many ending }, fixing that does not  
reproduce the bug.


Hey Henrik,
Kind of long code, thought twice about posting.
I shortened it and it still does it with this much code.
Let me know if you experience the same.

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 line will jump down to the bottom of the code: getURL 
(sUrl,'paypal','POST');

Even create a new line in the code.

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Weird auto format

2009-11-16 Thread Henrik Andersson

Karl DeSaulniers wrote:

On Nov 17, 2009, at 12:15 AM, Henrik Andersson wrote:


I can not reproduce with this limited sample. It just results in a
syntax error due to too many ending }, fixing that does not reproduce
the bug.


Hey Henrik,
Kind of long code, thought twice about posting.
I shortened it and it still does it with this much code.
Let me know if you experience the same.

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 line will jump down to the bottom of the code:
getURL(sUrl,'paypal','POST');
Even create a new line in the code.

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Weird auto format

2009-11-16 Thread Henrik Andersson

Karl DeSaulniers wrote:

Hey Henrik,
Kind of long code, thought twice about posting.
I shortened it and it still does it with this much code.
Let me know if you experience the same.

Darn, I slipped and replied without saying anything. Anyway, I can now 
reproduce the bug.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Weird auto format

2009-11-16 Thread Karl DeSaulniers

So it is a bug?

Karl

On Nov 17, 2009, at 12:44 AM, Henrik Andersson wrote:


Karl DeSaulniers wrote:

Hey Henrik,
Kind of long code, thought twice about posting.
I shortened it and it still does it with this much code.
Let me know if you experience the same.

Darn, I slipped and replied without saying anything. Anyway, I can  
now reproduce the bug.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Weird auto format

2009-11-16 Thread Henrik Andersson

Karl DeSaulniers wrote:

So it is a bug?

Karl

To be blunt, yes, yes it is. I filed a bug report, maybe it will be 
fixed in CS 5.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Weird auto format

2009-11-16 Thread Karl DeSaulniers

Interesting. Thanks.
Any wild guesses as to why it happens??

Karl


On Nov 17, 2009, at 12:55 AM, Henrik Andersson wrote:


Karl DeSaulniers wrote:

So it is a bug?

Karl

To be blunt, yes, yes it is. I filed a bug report, maybe it will be  
fixed in CS 5.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders