RES: [flexcoders] Re: code out of sync with flash builder

2011-11-09 Thread TGI
I had the same problem some time ago.

I remember that I erase some files and got things fixed. 

See if help:

 

cd c:\users\\Adobe Flash Builder 4.5

del *.cache /s

 

 

 

De: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Em nome
de Wouter Schreuders
Enviada em: quarta-feira, 9 de novembro de 2011 05:30
Para: flexcoders@yahoogroups.com
Assunto: Re: [flexcoders] Re: code out of sync with flash builder

 

  

well I am running windows 7, but I sure as hell am not going back to XP :D

 

Did you have to go through this process every time you debug? or only when
encountering the problem and then it would solve it for a while?

On 8 November 2011 16:40, Hans Goeckel  wrote:

  

I've had a similar problem.  Flash Builder shows me the current source when
debugging, but when you try to step through it, it is obviously running a
previous version of the source.  What fixed it for me is to switch to
another project in the workspace, compile it, then return to the main
project, and recompile the modules that were screwing up.  Hope that fixes
it for you too.

 

Interestingly this problem seems to only occur on my new Windows 7 system
with the latest Java.  My older XP system would crash when running out of
Java heap space, but would never go out of sync. 

 



<><>

RE: [flexcoders] Errors during build - ASDoc Configuration

2011-11-09 Thread Merrill, Jason
Thanks Alex - I disabled ASDoc and the problem has gone away.  Appreciate the 
idea, it worked.  However, now I need to figure out how to get the ASDoc 
compiler set back up again properly - but I'll tackle that later.

Jason Merrill
Instructional Technology Architect II
Bank of America  Global Learning





___

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, November 09, 2011 2:39 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Errors during build - ASDoc Configuration



Not sure, I was just trying to narrow down your request.  It appears that it 
might be kicked off from the External Tools configs?


On 11/9/11 12:00 PM, "Merrill, Jason"  wrote:





I'm fine with disabling the ASDoc tool.  How would I do that?



From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, November 09, 2011 11:22 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Errors during build - ASDoc Configuration



I assume you want the ASDoc tool to run and don't want to just disable it?  You 
might try the Adobe Flash Builder forum.


On 11/9/11 7:37 AM, "Merrill, Jason"  wrote:






It happens every other time no matter what I do.  I have cleaned the project, 
re-started Flash Builder, re-started my laptop.  And it's always every other 
time, not just the first, but the first, third, fifth, seventh builds, etc.



From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behal! 
f Of John Fletcher
Sent: Tuesday, November 08, 2! 011 12:4 1 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Errors during build - ASDoc Configuration
!



Cool. If it really happens exactly every other time, then that is good 
information to work with. Does it matter if you just restarted the IDE? Does it 
matter if you did a clean or just saved a file with "build automatically" on, 
etc? When you restart your machine? Then you need to determine whether it's the 
first build or the second build that is suffering - if it's the first then 
something might be happening out of order and is only there by the time the 
second build comes. If it's the second then the first might be leaving junk 
around like hanging on to resources or something.



Though I suppose if you're using Flash Builder it shouldn't really be your 
responsibility to spend hours debugging it.!

&! nbsp;

Regards,

John

2011/11/7 Merrill, Jason 



Both my co-worker and I get this message on every other build in debug mode.  
It's strange, it doesn't happen every time, just every OTHER time we run in 
Debug mode.

Errors occurred during the build.
  Errors running builder 'Integ! rated External Tool Builder' on project 'KPL-R 
v4'.
The file does not exist for the external tool named ASDoc Configuration 
[Builder].
  The file does not exist for the external tool named ASDoc Configuration 
[Builder].

Any ideas on how to fix this?  Re-installing is not easy because our licenses 
are managed via enterprise Tivoli pushes and it's a lot of red tape to make it 
happen.!

Thanks,


Jason

&nb! sp;



This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited.
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement o! f 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e! -communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law.
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses.

References to "Sender" are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message! is 
subject to terms available at the following link:
http://www.bankofamerica.com/emaild! isclaime r 

Re: [flexcoders] Errors during build - ASDoc Configuration

2011-11-09 Thread Alex Harui
Not sure, I was just trying to narrow down your request.  It appears that it 
might be kicked off from the External Tools configs?


On 11/9/11 12:00 PM, "Merrill, Jason"  wrote:






I’m fine with disabling the ASDoc tool.  How would I do that?



From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, November 09, 2011 11:22 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Errors during build - ASDoc Configuration



I assume you want the ASDoc tool to run and don’t want to just disable it?  You 
might try the Adobe Flash Builder forum.


On 11/9/11 7:37 AM, "Merrill, Jason"  wrote:






It happens every other time no matter what I do.  I have cleaned the project, 
re-started Flash Builder, re-started my laptop.  And it’s always every other 
time, not just the first, but the first, third, fifth, seventh builds, etc.



From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behal! 
f Of John Fletcher
Sent: Tuesday, November 08, 2! 011 12:4 1 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Errors during build - ASDoc Configuration
!



Cool. If it really happens exactly every other time, then that is good 
information to work with. Does it matter if you just restarted the IDE? Does it 
matter if you did a clean or just saved a file with "build automatically" on, 
etc? When you restart your machine? Then you need to determine whether it's the 
first build or the second build that is suffering - if it's the first then 
something might be happening out of order and is only there by the time the 
second build comes. If it's the second then the first might be leaving junk 
around like hanging on to resources or something.



Though I suppose if you're using Flash Builder it shouldn't really be your 
responsibility to spend hours debugging it.!

&! nbsp;

Regards,

John

2011/11/7 Merrill, Jason 



Both my co-worker and I get this message on every other build in debug mode.  
It’s strange, it doesn’t happen every time, just every OTHER time we run in 
Debug mode.

Errors occurred during the build.
  Errors running builder 'Integ! rated External Tool Builder' on project 'KPL-R 
v4'.
The file does not exist for the external tool named ASDoc Configuration 
[Builder].
  The file does not exist for the external tool named ASDoc Configuration 
[Builder].

Any ideas on how to fix this?  Re-installing is not easy because our licenses 
are managed via enterprise Tivoli pushes and it’s a lot of red tape to make it 
happen.!

Thanks,


Jason

&nb! sp;




This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited.
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement o! f 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e! -communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law.
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses.

References to "Sender" are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message! is 
subject to terms available at the following link:
http://www.bankofamerica.com/emaild! isclaime r  . By messaging with Sender you consent to the 
foregoing.




This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 

RE: [flexcoders] Errors during build - ASDoc Configuration

2011-11-09 Thread Merrill, Jason
I'm fine with disabling the ASDoc tool.  How would I do that?


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, November 09, 2011 11:22 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Errors during build - ASDoc Configuration



I assume you want the ASDoc tool to run and don't want to just disable it?  You 
might try the Adobe Flash Builder forum.


On 11/9/11 7:37 AM, "Merrill, Jason"  wrote:





It happens every other time no matter what I do.  I have cleaned the project, 
re-started Flash Builder, re-started my laptop.  And it's always every other 
time, not just the first, but the first, third, fifth, seventh builds, etc.



From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of John Fletcher
Sent: Tuesday, November 08, 2011 12:41 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Errors during build - ASDoc Configuration
!



Cool. If it really happens exactly every other time, then that is good 
information to work with. Does it matter if you just restarted the IDE? Does it 
matter if you did a clean or just saved a file with "build automatically" on, 
etc? When you restart your machine? Then you need to determine whether it's the 
first build or the second build that is suffering - if it's the first then 
something might be happening out of order and is only there by the time the 
second build comes. If it's the second then the first might be leaving junk 
around like hanging on to resources or something.



Though I suppose if you're using Flash Builder it shouldn't really be your 
responsibility to spend hours debugging it.!



Regards,

John

2011/11/7 Merrill, Jason 



Both my co-worker and I get this message on every other build in debug mode.  
It's strange, it doesn't happen every time, just every OTHER time we run in 
Debug mode.

Errors occurred during the build.
  Errors running builder 'Integ! rated External Tool Builder' on project 'KPL-R 
v4'.
The file does not exist for the external tool named ASDoc Configuration 
[Builder].
  The file does not exist for the external tool named ASDoc Configuration 
[Builder].

Any ideas on how to fix this?  Re-installing is not easy because our licenses 
are managed via enterprise Tivoli pushes and it's a lot of red tape to make it 
happen.

Thanks,


Jason




This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited.
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement o! f 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law.
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses.

References to "Sender" are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message! is 
subject to terms available at the following link:
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.



This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited.
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject 

[flexcoders] Flex3 TLS/HTTPS

2011-11-09 Thread [p e r c e p t i c o n]
Hi All,

I'm trying to call a REST webservice that exists on the same server i've
serving the swf from.
when I run it locally all is fine, or if my swf is on another server it'll
access it, but if the swf is on the same
server as the webservice app it fails with an unknown error (500 - which
could mean many things)

i'm using the as3crypto libs with Flex3sdk

TIA

percy

-- 
  . :   .
  [ p e r c e p t i c o n ]
  . _ _ _ _ _ _ _ _ _ _  .


Re: [flexcoders] Errors during build - ASDoc Configuration

2011-11-09 Thread Alex Harui
I assume you want the ASDoc tool to run and don’t want to just disable it?  You 
might try the Adobe Flash Builder forum.


On 11/9/11 7:37 AM, "Merrill, Jason"  wrote:






It happens every other time no matter what I do.  I have cleaned the project, 
re-started Flash Builder, re-started my laptop.  And it’s always every other 
time, not just the first, but the first, third, fifth, seventh builds, etc.



From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of John Fletcher
Sent: Tuesday, November 08, 2011 12:41 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Errors during build - ASDoc Configuration
!



Cool. If it really happens exactly every other time, then that is good 
information to work with. Does it matter if you just restarted the IDE? Does it 
matter if you did a clean or just saved a file with "build automatically" on, 
etc? When you restart your machine? Then you need to determine whether it's the 
first build or the second build that is suffering - if it's the first then 
something might be happening out of order and is only there by the time the 
second build comes. If it's the second then the first might be leaving junk 
around like hanging on to resources or something.



Though I suppose if you're using Flash Builder it shouldn't really be your 
responsibility to spend hours debugging it.!



Regards,

John

2011/11/7 Merrill, Jason 



Both my co-worker and I get this message on every other build in debug mode.  
It’s strange, it doesn’t happen every time, just every OTHER time we run in 
Debug mode.

Errors occurred during the build.
  Errors running builder 'Integ! rated External Tool Builder' on project 'KPL-R 
v4'.
The file does not exist for the external tool named ASDoc Configuration 
[Builder].
  The file does not exist for the external tool named ASDoc Configuration 
[Builder].

Any ideas on how to fix this?  Re-installing is not easy because our licenses 
are managed via enterprise Tivoli pushes and it’s a lot of red tape to make it 
happen.

Thanks,


Jason





This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited.
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement o! f 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law.
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses.

References to "Sender" are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message! is 
subject to terms available at the following link:
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.



This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited.
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law.
The laws of the country of each sender/recipient may impact the handling

Re: [flexcoders] Re: code out of sync with flash builder

2011-11-09 Thread Wouter Schreuders
well I am running windows 7, but I sure as hell am not going back to XP :D

Did you have to go through this process every time you debug? or only when
encountering the problem and then it would solve it for a while?

On 8 November 2011 16:40, Hans Goeckel  wrote:

> **
>
>
> **
> I've had a similar problem.  Flash Builder shows me the current source
> when debugging, but when you try to step through it, it is obviously
> running a previous version of the source.  What fixed it for me is to
> switch to another project in the workspace, compile it, then return to the
> main project, and recompile the modules that were screwing up.  Hope that
> fixes it for you too.
>
> Interestingly this problem seems to only occur on my new Windows 7 system
> with the latest Java.  My older XP system would crash when running out of
> Java heap space, but would never go out of sync.
>
>  
>


RE: [flexcoders] Errors during build - ASDoc Configuration

2011-11-09 Thread Merrill, Jason
It happens every other time no matter what I do.  I have cleaned the project, 
re-started Flash Builder, re-started my laptop.  And it's always every other 
time, not just the first, but the first, third, fifth, seventh builds, etc.


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of John Fletcher
Sent: Tuesday, November 08, 2011 12:41 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Errors during build - ASDoc Configuration


Cool. If it really happens exactly every other time, then that is good 
information to work with. Does it matter if you just restarted the IDE? Does it 
matter if you did a clean or just saved a file with "build automatically" on, 
etc? When you restart your machine? Then you need to determine whether it's the 
first build or the second build that is suffering - if it's the first then 
something might be happening out of order and is only there by the time the 
second build comes. If it's the second then the first might be leaving junk 
around like hanging on to resources or something.

Though I suppose if you're using Flash Builder it shouldn't really be your 
responsibility to spend hours debugging it.

Regards,
John
2011/11/7 Merrill, Jason 
mailto:jason.merr...@bankofamerica.com>>

Both my co-worker and I get this message on every other build in debug mode.  
It's strange, it doesn't happen every time, just every OTHER time we run in 
Debug mode.

Errors occurred during the build.
  Errors running builder 'Integrated External Tool Builder' on project 'KPL-R 
v4'.
The file does not exist for the external tool named ASDoc Configuration 
[Builder].
  The file does not exist for the external tool named ASDoc Configuration 
[Builder].

Any ideas on how to fix this?  Re-installing is not easy because our licenses 
are managed via enterprise Tivoli pushes and it's a lot of red tape to make it 
happen.

Thanks,

Jason


This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited.
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law.
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are located. This message cannot be guaranteed to be 
secure or free of errors or viruses.

References to "Sender" are references to any subsidiary of Bank of America 
Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are 
Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a 
Condition to Any Banking Service or Activity * Are Not Insured by Any Federal 
Government Agency. Attachments that are part of this EC may have additional 
important disclosures and disclaimers, which you should read. This message is 
subject to terms available at the following link:
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you 
consent to the foregoing.



--
This message w/attachments (message) is intended solely for the use of the 
intended recipient(s) and may contain information that is privileged, 
confidential or proprietary. If you are not an intended recipient, please 
notify the sender, and then please delete and destroy all copies and 
attachments, and be advised that any review or dissemination of, or the taking 
of any action in reliance on, the information contained in or attached to this 
message is prohibited. 
Unless specifically indicated, this message is not an offer to sell or a 
solicitation of any investment products or other financial product or service, 
an official confirmation of any transaction, or an official statement of 
Sender. Subject to applicable law, Sender may intercept, monitor, review and 
retain e-communications (EC) traveling through its networks/systems and may 
produce any such EC to regulators, law enforcement, in litigation and as 
required by law. 
The laws of the country of each sender/recipient may impact the handling of EC, 
and EC may be archived, supervised and produced in countries other than the 
country in which you are loca

RE: [flexcoders] Calling flex from JavaScript wrapper

2011-11-09 Thread Bill Brutzman
In this little login program, I am able to determine the user’s department ok 
but am having trouble binding this dept data to a url launch string.

 

Portions of the program follow.  Help would be appreciated.

 

--Bill

 





  

  

  

  

  

  



   {userNameInput.text} 

  

   

  

 



  

  

  


  

  

  

  

  

  

  



 



Re: [flexcoders] Re: Replacing double slash with a single slash

2011-11-09 Thread Nick Middleweek
Hi Valdor,

Thanks for the reply, I've just tried this code but no joy... :(

var doubleSlash : RegExp = //g;
var slash : RegExp = //;
winMessage = winMessage.replace( doubleSlash, slash );

I'm sure it's easy when you know how :)


Nick



On 8 November 2011 19:24, valdhor  wrote:

> **
>
>
> As I understand it the backslash character is special in both the regex
> and the replacement string, so it has to be double escaped in both places.
> That means, for every single backslash you want to match or insert, you
> have to put *four* backslashes in the regex or replacement string.
>
>
> --- In flexcoders@yahoogroups.com, Nick Middleweek  wrote:
> >
> > Hi,
> >
> > I'm trying to replace a double slash with a single slash and am having a
> > little trouble, has anyone done this before?
> >
> > Here's what I've got thus far...
> >
> > var doubleSlash : RegExp = /(\\)(\\)/g;
> > var slash : RegExp = /(\\)/;
> >
> > winMessage = winMessage.replace( doubleSlash, slash );
> >
> >
> > Cheers,
> > Nick
> >
>
>  
>