Re: [Flashcoders] another mtasc question

2006-06-14 Thread Nicolas Cannasse
 I'm just full of questions today :)
 
 Jason Nussbaum's AS2 Base64 class makes use of the symbol \+, 
 something mtasc protests. Why? :)
 
 - A

Use \\+ instead.
MTASC enforces valid escape sequences, so for instance if you use by
mistake \m instead of \n it will give you an error.

Nicolas
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] another mtasc question

2006-06-14 Thread michael . bordner
if you look at the Base64.as class he provided, he should actually remove 
the \ from the \+

the replacement string should be +  not \+ or \\+




Nicolas Cannasse [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED]
06/14/2006 06:53 AM
Please respond to
Flashcoders mailing list flashcoders@chattyfig.figleaf.com


To
Flashcoders mailing list flashcoders@chattyfig.figleaf.com
cc

Subject
Re: [Flashcoders] another mtasc question






 I'm just full of questions today :)
 
 Jason Nussbaum's AS2 Base64 class makes use of the symbol \+, 
 something mtasc protests. Why? :)
 
 - A

Use \\+ instead.
MTASC enforces valid escape sequences, so for instance if you use by
mistake \m instead of \n it will give you an error.

Nicolas
___
Flashcoders@chattyfig.figleaf.com
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

___
Flashcoders@chattyfig.figleaf.com
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


RE: [Flashcoders] another mtasc question

2006-06-13 Thread Lee McColl-Sylvester
If I'm not mistaken, \+ is an old AS1 operator, though for the life of me I 
forget what it does.  I used to use that back in the days of Flash 4/5.  I'm 
sure theres another old goat out there who will remember what it does.  Either 
that, or a quick search on the internet will tell you, but all the same, MTASC 
compiles AS2, not AS1.

Lee



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Rønning
Sent: 13 June 2006 13:54
To: Flashcoders mailing list
Subject: [Flashcoders] another mtasc question

I'm just full of questions today :)

Jason Nussbaum's AS2 Base64 class makes use of the symbol \+, 
something mtasc protests. Why? :)

- A
___
Flashcoders@chattyfig.figleaf.com
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
___
Flashcoders@chattyfig.figleaf.com
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


RE: [Flashcoders] another mtasc question

2006-06-13 Thread Lee McColl-Sylvester
Suppy me the whole line... It might jog my memory.

Lee




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Rønning
Sent: 13 June 2006 13:54
To: Flashcoders mailing list
Subject: [Flashcoders] another mtasc question

I'm just full of questions today :)

Jason Nussbaum's AS2 Base64 class makes use of the symbol \+, 
something mtasc protests. Why? :)

- A
___
Flashcoders@chattyfig.figleaf.com
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
___
Flashcoders@chattyfig.figleaf.com
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


RE: [Flashcoders] another mtasc question

2006-06-13 Thread Lee McColl-Sylvester
Hey Andreas,

http://ostermiller.org/Base64.as has a port of the base64 class for AS2

Lee



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Rønning
Sent: 13 June 2006 13:54
To: Flashcoders mailing list
Subject: [Flashcoders] another mtasc question

I'm just full of questions today :)

Jason Nussbaum's AS2 Base64 class makes use of the symbol \+, 
something mtasc protests. Why? :)

- A
___
Flashcoders@chattyfig.figleaf.com
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
___
Flashcoders@chattyfig.figleaf.com
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


RE: [Flashcoders] another mtasc question

2006-06-13 Thread michael . bordner
hey Andreas,

this \+ seems like an error to me.  it should either be \\+ if he is 
trying to replace the text \+,  or just + if he is only trying to 
replace the +.   However, because he's replacing it with %2B, it seems 
like he is only trying to replace the + since 2B is the hex for the + sign 
character in url encoding.

you can verify this bug by doing:

str = ab+cd+ef;
str = str.split(\+).join(%2B);
trace( str );

i could be wrong, but i would guess that mtasc is complaining because 
there is no reason to escape the + character in a string, and hence \+ 
would be invalid since it isn't an expected escape sequence.


If you change the \+ in your .as file to just +, I think you will fix the 
bug in the Base64.as, and also make it so mtasc will compile it.

-Michael





Lee McColl-Sylvester [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED]
06/13/2006 09:10 AM
Please respond to
Flashcoders mailing list flashcoders@chattyfig.figleaf.com


To
Flashcoders mailing list flashcoders@chattyfig.figleaf.com
cc

Subject
RE: [Flashcoders] another mtasc question






Hey Andreas,

http://ostermiller.org/Base64.as has a port of the base64 class for AS2

Lee



-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Andreas 
Rønning
Sent: 13 June 2006 13:54
To: Flashcoders mailing list
Subject: [Flashcoders] another mtasc question

I'm just full of questions today :)

Jason Nussbaum's AS2 Base64 class makes use of the symbol \+, 
something mtasc protests. Why? :)

- A
___
Flashcoders@chattyfig.figleaf.com
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
___
Flashcoders@chattyfig.figleaf.com
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

___
Flashcoders@chattyfig.figleaf.com
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


RE: [Flashcoders] another mtasc question

2006-06-13 Thread Lee McColl-Sylvester
Ahhh, so that's what the string was.  I also worked out what was triggering the 
flashback in my cluttered brain.  The backslash symbol used to reference the 
root of a movie or clip a la html uri's, though I still remember \+ as actually 
having a use.

Oh well.


Lee



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: 13 June 2006 15:56
To: Flashcoders mailing list
Cc: Flashcoders mailing list; [EMAIL PROTECTED]
Subject: RE: [Flashcoders] another mtasc question

hey Andreas,

this \+ seems like an error to me.  it should either be \\+ if he is 
trying to replace the text \+,  or just + if he is only trying to 
replace the +.   However, because he's replacing it with %2B, it seems 
like he is only trying to replace the + since 2B is the hex for the + sign 
character in url encoding.

you can verify this bug by doing:

str = ab+cd+ef;
str = str.split(\+).join(%2B);
trace( str );

i could be wrong, but i would guess that mtasc is complaining because 
there is no reason to escape the + character in a string, and hence \+ 
would be invalid since it isn't an expected escape sequence.


If you change the \+ in your .as file to just +, I think you will fix the 
bug in the Base64.as, and also make it so mtasc will compile it.

-Michael





Lee McColl-Sylvester [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED]
06/13/2006 09:10 AM
Please respond to
Flashcoders mailing list flashcoders@chattyfig.figleaf.com


To
Flashcoders mailing list flashcoders@chattyfig.figleaf.com
cc

Subject
RE: [Flashcoders] another mtasc question






Hey Andreas,

http://ostermiller.org/Base64.as has a port of the base64 class for AS2

Lee



-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Andreas 
Rønning
Sent: 13 June 2006 13:54
To: Flashcoders mailing list
Subject: [Flashcoders] another mtasc question

I'm just full of questions today :)

Jason Nussbaum's AS2 Base64 class makes use of the symbol \+, 
something mtasc protests. Why? :)

- A
___
Flashcoders@chattyfig.figleaf.com
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
___
Flashcoders@chattyfig.figleaf.com
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

___
Flashcoders@chattyfig.figleaf.com
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
___
Flashcoders@chattyfig.figleaf.com
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