Re: [Flashcoders] \r

2006-05-16 Thread ryanm

Remove an empty string  from the second statement.  Is it also expected?

   Well, it seems inconsistant, but it's not really unexpected. Without the 
empty string both hard returns are appended to the end of the previous line, 
which isn't technically correct, but makes sense in context. With the empty 
string there is an empty line (your new line), so a line feed is used to go 
to the next line. Hard return ends a span of text by breaking to the next 
line. Line feed passes over an empty line without moving the cursor, which 
is why a hard return (a.k.a. a carriage return) is needed at the end of a 
span of text. It's old-school logic based on how it would render on paper. 
If you used a line feed without a carriage return, the proper way to 
render it would be to move down one line without moving to the first column. 
Without the empty string, though, there is no new line to pass over, so the 
html kluge is to simply hard return again.


ryanm 


___
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] \r

2006-05-16 Thread Fumio Nonaka
Interesting.  How about the following statements, which don't include 
any empty strings:


// Frame action in the main timeline
var my0_str:String = newline;
my0_str += newline;
var my1_str:String = newline+newline;

// [Debug]  [List Variables]:
Variable _level0.my0_str = \n\n
Variable _level0.my1_str = \r\r

Flash 8.0/Mac OS X.4.6
_
ryanm wrote:
   Well, it seems inconsistant, but it's not really unexpected. Without 
the empty string both hard returns are appended to the end of the 
previous line, which isn't technically correct, but makes sense in 
context. With the empty string there is an empty line (your new line), 
so a line feed is used to go to the next line. Hard return ends a span 
of text by breaking to the next line. Line feed passes over an empty 
line without moving the cursor, which is why a hard return (a.k.a. a 
carriage return) is needed at the end of a span of text. It's 
old-school logic based on how it would render on paper. If you used a 
line feed without a carriage return, the proper way to render it would 
be to move down one line without moving to the first column. Without the 
empty string, though, there is no new line to pass over, so the html 
kluge is to simply hard return again.


Good luck,

Fumio Nonaka
mailto:[EMAIL PROTECTED]
http://www.FumioNonaka.com/
My bookshttp://www.FumioNonaka.com/Books/index.html
Flash communityhttp://F-site.org/

___
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] \r

2006-05-16 Thread Steven Sacks
No way!  They cut corners with their string object handling in Flash?  I
don't believe it! 

;)
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Fumio Nonaka
 Sent: Tuesday, May 16, 2006 2:20 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] \r
 
 Interesting.  How about the following statements, which don't include 
 any empty strings:
 
 // Frame action in the main timeline
 var my0_str:String = newline;
 my0_str += newline;
 var my1_str:String = newline+newline;
 
 // [Debug]  [List Variables]:
 Variable _level0.my0_str = \n\n
 Variable _level0.my1_str = \r\r
 
 Flash 8.0/Mac OS X.4.6
 _
 ryanm wrote:
 Well, it seems inconsistant, but it's not really 
 unexpected. Without 
  the empty string both hard returns are appended to the end of the 
  previous line, which isn't technically correct, but makes sense in 
  context. With the empty string there is an empty line (your 
 new line), 
  so a line feed is used to go to the next line. Hard return 
 ends a span 
  of text by breaking to the next line. Line feed passes over 
 an empty 
  line without moving the cursor, which is why a hard return 
 (a.k.a. a 
  carriage return) is needed at the end of a span of text. It's 
  old-school logic based on how it would render on paper. If 
 you used a 
  line feed without a carriage return, the proper way to 
 render it would 
  be to move down one line without moving to the first 
 column. Without the 
  empty string, though, there is no new line to pass over, so 
 the html 
  kluge is to simply hard return again.
 
 Good luck,
 
 Fumio Nonaka
 mailto:[EMAIL PROTECTED]
 http://www.FumioNonaka.com/
 My bookshttp://www.FumioNonaka.com/Books/index.html
 Flash communityhttp://F-site.org/
 
 ___
 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] \r

2006-05-15 Thread Patrick Matte
Anybody knows how I can put a \r inside an xml node attribute? I want to add
a line feed between two words.

Just having \r in the attribute displays \r in my textfield. I think it must
be encoded in a special way.


___
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] \r

2006-05-15 Thread Steven Sacks
x = str.split(\r).join(newline);


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Patrick Matte
 Sent: Monday, May 15, 2006 11:34 AM
 To: Flashcoders mailing list
 Subject: [Flashcoders] \r
 
 Anybody knows how I can put a \r inside an xml node 
 attribute? I want to add
 a line feed between two words.
 
 Just having \r in the attribute displays \r in my textfield. 
 I think it must
 be encoded in a special way.
 
 
 ___
 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] \r

2006-05-15 Thread Patrick Matte
Thanks, great idea, but a friend just told me what I was looking for.

 lt;brgt;

Its a br with the  encoded.


Le 15/05/06 14:38, « Steven Sacks » [EMAIL PROTECTED] a écrit :

 x = str.split(\r).join(newline);
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Patrick Matte
 Sent: Monday, May 15, 2006 11:34 AM
 To: Flashcoders mailing list
 Subject: [Flashcoders] \r
 
 Anybody knows how I can put a \r inside an xml node
 attribute? I want to add
 a line feed between two words.
 
 Just having \r in the attribute displays \r in my textfield.
 I think it must
 be encoded in a special way.
 
 
 ___
 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] \r

2006-05-15 Thread Derek Vadneau
That should be:
x = str.split(\\r).join(\r);


Derek Vadneau

- Original Message - 
From: Steven Sacks [EMAIL PROTECTED]
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Monday, May 15, 2006 2:38 PM
Subject: RE: [Flashcoders] \r


x = str.split(\r).join(newline);


___
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] \r

2006-05-15 Thread Steven Sacks
You didn't mention if the textfield was html or not.  ;) 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Patrick Matte
 Sent: Monday, May 15, 2006 11:53 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] \r
 
 Thanks, great idea, but a friend just told me what I was looking for.
 
  lt;brgt;
 
 Its a br with the  encoded.
 
 
 Le 15/05/06 14:38, « Steven Sacks » [EMAIL PROTECTED] a écrit :
 
  x = str.split(\r).join(newline);
  
  
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf
  Of Patrick Matte
  Sent: Monday, May 15, 2006 11:34 AM
  To: Flashcoders mailing list
  Subject: [Flashcoders] \r
  
  Anybody knows how I can put a \r inside an xml node
  attribute? I want to add
  a line feed between two words.
  
  Just having \r in the attribute displays \r in my textfield.
  I think it must
  be encoded in a special way.
  
  
  ___
  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


RE: [Flashcoders] \r

2006-05-15 Thread Steven Sacks
I tested it before I posted it.  The split works with just \r and the point
is that he was having an issue with \r not resolving in his textfield as a
newline so replacing it with a \r might not fix it but newline might.

-Steven


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Derek Vadneau
 Sent: Monday, May 15, 2006 11:52 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] \r
 
 That should be:
 x = str.split(\\r).join(\r);
 
 
 Derek Vadneau
 
 - Original Message - 
 From: Steven Sacks [EMAIL PROTECTED]
 To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
 Sent: Monday, May 15, 2006 2:38 PM
 Subject: RE: [Flashcoders] \r
 
 
 x = str.split(\r).join(newline);
 
 
 ___
 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] \r

2006-05-15 Thread Ryan Potter
If it is an attribute of a node and the text field is html, can't you just use 
br/?

Ex:
my-node attribute=br/ /

Or 

my-node attribute=this is a linebr/this is on the next line /



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks
Sent: Monday, May 15, 2006 12:57 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] \r

You didn't mention if the textfield was html or not.  ;) 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Patrick Matte
 Sent: Monday, May 15, 2006 11:53 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] \r
 
 Thanks, great idea, but a friend just told me what I was looking for.
 
  lt;brgt;
 
 Its a br with the  encoded.
 
 
 Le 15/05/06 14:38, « Steven Sacks » [EMAIL PROTECTED] a écrit :
 
  x = str.split(\r).join(newline);
  
  
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf
  Of Patrick Matte
  Sent: Monday, May 15, 2006 11:34 AM
  To: Flashcoders mailing list
  Subject: [Flashcoders] \r
  
  Anybody knows how I can put a \r inside an xml node
  attribute? I want to add
  a line feed between two words.
  
  Just having \r in the attribute displays \r in my textfield.
  I think it must
  be encoded in a special way.
  
  
  ___
  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

___
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] \r

2006-05-15 Thread Derek Vadneau
I don't mean to argue a moot point, but, newline is \r. I understood that 
the XML contains \ and r as text, which when displayed in his textfield 
showed \r, the text itself, instead of a newline. If you split out \\r and 
replace it with \r (or newline) it would replace the text \r with a real 
newline. Sorry for the confusion.


Derek Vadneau

- Original Message - 
From: Steven Sacks [EMAIL PROTECTED]
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Monday, May 15, 2006 3:07 PM
Subject: RE: [Flashcoders] \r


I tested it before I posted it.  The split works with just \r and the 
point
is that he was having an issue with \r not resolving in his textfield as a
newline so replacing it with a \r might not fix it but newline might.

-Steven


___
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] \r

2006-05-15 Thread Robert Chyko
Actually, \r is return I believe, \n is newline... But like you said...
moot point.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Derek
Vadneau
Sent: Monday, May 15, 2006 3:12 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] \r


I don't mean to argue a moot point, but, newline is \r. I understood
that 
the XML contains \ and r as text, which when displayed in his textfield 
showed \r, the text itself, instead of a newline. If you split out \\r
and 
replace it with \r (or newline) it would replace the text \r with a real

newline. Sorry for the confusion.


Derek Vadneau

- Original Message - 
From: Steven Sacks [EMAIL PROTECTED]
To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Monday, May 15, 2006 3:07 PM
Subject: RE: [Flashcoders] \r


I tested it before I posted it.  The split works with just \r and the 
point
is that he was having an issue with \r not resolving in his textfield as
a
newline so replacing it with a \r might not fix it but newline might.

-Steven


___
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] \r

2006-05-15 Thread Robert Chyko
Interesting


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Derek
Vadneau
Sent: Monday, May 15, 2006 3:34 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] \r


I think this was brought up here before, but:
trace(newline == '\r'); // true
trace(newline == '\n'); // false
trace(newline === '\r'); // false
trace(newline === '\n'); // true

The bugger is using \n or newline in a string and setting the text of a 
textfield to that string converts \n to \r when you read the text again.

It's why I never use \n or newline.


Derek Vadneau

- Original Message - 
From: Robert Chyko [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, May 15, 2006 3:16 PM
Subject: RE: [Flashcoders] \r


Actually, \r is return I believe, \n is newline... But like you said...
moot point.


___
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] \r

2006-05-15 Thread Patrick Matte
The thing is you can't put html in an xml attribute.
Neither a CDATA tag.


Le 15/05/06 15:10, « Ryan Potter » [EMAIL PROTECTED] a écrit :

 If it is an attribute of a node and the text field is html, can't you just use
 br/?
 
 Ex:
 my-node attribute=br/ /
 
 Or 
 
 my-node attribute=this is a linebr/this is on the next line /
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks
 Sent: Monday, May 15, 2006 12:57 PM
 To: 'Flashcoders mailing list'
 Subject: RE: [Flashcoders] \r
 
 You didn't mention if the textfield was html or not.  ;)
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Patrick Matte
 Sent: Monday, May 15, 2006 11:53 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] \r
 
 Thanks, great idea, but a friend just told me what I was looking for.
 
  lt;brgt;
 
 Its a br with the  encoded.
 
 
 Le 15/05/06 14:38, « Steven Sacks » [EMAIL PROTECTED] a écrit :
 
 x = str.split(\r).join(newline);
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Patrick Matte
 Sent: Monday, May 15, 2006 11:34 AM
 To: Flashcoders mailing list
 Subject: [Flashcoders] \r
 
 Anybody knows how I can put a \r inside an xml node
 attribute? I want to add
 a line feed between two words.
 
 Just having \r in the attribute displays \r in my textfield.
 I think it must
 be encoded in a special way.
 
 
 ___
 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
 
 ___
 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] \r

2006-05-15 Thread Fumio Nonaka
Even if you manipulate newline only with string, you might get annoying 
result:


// Frame action
var my_str:String = newline;
my_str += +newline;

// [Debug]  [List Variables]:
Variable _level0.my_str = ¥n¥r

Tested on Flash 8.0/Mac OS X.4.6  Windows XP (SP1)
_
Derek Vadneau wrote:
The bugger is using \n or newline in a string and setting the text of a 
textfield to that string converts \n to \r when you read the text again. 
It's why I never use \n or newline.


Good luck,

Fumio Nonaka
mailto:[EMAIL PROTECTED]
http://www.FumioNonaka.com/
My bookshttp://www.FumioNonaka.com/Books/index.html
Flash communityhttp://F-site.org/

___
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] \r

2006-05-15 Thread Mick G

You could always wrap CDATA around it.

On 5/16/06, Fumio Nonaka [EMAIL PROTECTED] wrote:


Even if you manipulate newline only with string, you might get annoying
result:

// Frame action
var my_str:String = newline;
my_str += +newline;

// [Debug]  [List Variables]:
Variable _level0.my_str = ¥n¥r

Tested on Flash 8.0/Mac OS X.4.6  Windows XP (SP1)
_
Derek Vadneau wrote:
 The bugger is using \n or newline in a string and setting the text of a
 textfield to that string converts \n to \r when you read the text again.
 It's why I never use \n or newline.

Good luck,

Fumio Nonaka
mailto:[EMAIL PROTECTED]
http://www.FumioNonaka.com/
My bookshttp://www.FumioNonaka.com/Books/index.html
Flash communityhttp://F-site.org/

___
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] \r

2006-05-15 Thread Steven Sacks
 You could always wrap CDATA around it.

If you read the first post you would have seen that this is for an attribute
of an xml node.

-Steven


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Mick G
 Sent: Monday, May 15, 2006 6:16 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] \r
 

 
 On 5/16/06, Fumio Nonaka [EMAIL PROTECTED] wrote:
 
  Even if you manipulate newline only with string, you might 
 get annoying
  result:
 
  // Frame action
  var my_str:String = newline;
  my_str += +newline;
 
  // [Debug]  [List Variables]:
  Variable _level0.my_str = ¥n¥r
 
  Tested on Flash 8.0/Mac OS X.4.6  Windows XP (SP1)
  _
  Derek Vadneau wrote:
   The bugger is using \n or newline in a string and setting 
 the text of a
   textfield to that string converts \n to \r when you read 
 the text again.
   It's why I never use \n or newline.
 
  Good luck,
 
  Fumio Nonaka
  mailto:[EMAIL PROTECTED]
  http://www.FumioNonaka.com/
  My bookshttp://www.FumioNonaka.com/Books/index.html
  Flash communityhttp://F-site.org/
 
  ___
  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] \r

2006-05-15 Thread ryanm
Even if you manipulate newline only with string, you might get annoying 
result:


// Frame action
var my_str:String = newline;
my_str += +newline;

// [Debug]  [List Variables]:
Variable _level0.my_str = ¥n¥r

   That's expected. One line break is a hard return, two of them is not 
two hard returns, it is a hard return and a line feed.


ryanm 


___
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] \r

2006-05-15 Thread Fumio Nonaka

Remove an empty string  from the second statement.  Is it also expected?
_
ryanm wrote:

// Frame action
var my_str:String = newline;

   // my_str += +newline;
   my_str += newline;


// [Debug]  [List Variables]:

   Variable _level0.my_str = \n\n

   That's expected. One line break is a hard return, two of them is 
not two hard returns, it is a hard return and a line feed.


Good luck,

Fumio Nonaka
mailto:[EMAIL PROTECTED]
http://www.FumioNonaka.com/
My bookshttp://www.FumioNonaka.com/Books/index.html
Flash communityhttp://F-site.org/

___
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] \r

2006-05-15 Thread Charles Parcell

Strangly enough, a team member asked me this question just Friday. We ended
up using

#x0A;  and  #x0D;

Charles P.


On 5/15/06, Patrick Matte [EMAIL PROTECTED] wrote:


Thanks, great idea, but a friend just told me what I was looking for.

lt;brgt;

Its a br with the  encoded.


Le 15/05/06 14:38, «Steven Sacks» [EMAIL PROTECTED] a écrit:

 x = str.split(\r).join(newline);


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Patrick Matte
 Sent: Monday, May 15, 2006 11:34 AM
 To: Flashcoders mailing list
 Subject: [Flashcoders] \r

 Anybody knows how I can put a \r inside an xml node
 attribute? I want to add
 a line feed between two words.

 Just having \r in the attribute displays \r in my textfield.
 I think it must
 be encoded in a special way.


 ___
 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


Re: [Flashcoders] R/GA seeks Flash Developers

2006-04-28 Thread Jason Lutes
Krystyna,

Are you still looking to fill a Flash developer position in NYC? If so,
are you considering relocation candidates?

I live in Salt Lake City, and am adept with the things (and more) I saw
recently in the job posting, and would love to work for R/GA. I'm happy to
send a résumé and work/code samples if there is potential.

Thanks.


-
Jason Lutes

___
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] R/GA seeks Flash Developers

2006-04-04 Thread Krystyna Bloch
R/GA, an award-winning interactive agency specializing in advertising
media, seeks Flash Developers  Senior Flash Developers.

Wholly owned by The Interpublic Group, R/GA is an innovative,
stimulating agency whose philosophy embraces three principles: Be
creative. Be Strategic. Be Collaborative. Emphasis is placed on quality
of work, team spirit, and the ability to partner well with clients and
other agencies. 

 

Duties and Responsibilities:

Flash implementation, Actionscript coding - AS2.0, and Actionscript/XML
interaction.

Master Flash implementation. 

 

Serve as senior Flash application architect. Be particularly adept at
Actionscript coding and Actionscript/XML interaction. 

 

Have in-depth experience integrating Flash with other technologies, plus
knowledge of Flash limitations and workarounds.

 

 

 

This position is onsite in NYC and I have a few spots open in London as
well.

 

If interested please email me at [EMAIL PROTECTED]

 

 

 

Krystyna Bloch

Technology Recruiter

R/GA  350 W. 39th Street NY New York  10018

[EMAIL PROTECTED]

Tel: 212.609.8286

 



This message is the property of R/GA and contains information which may be 
privileged or confidential. It is meant only for the intended recipients and/or 
their authorized agents. If you believe you have received this message in 
error, please notify us immediately by return e-mail or by forwarding this 
message to [EMAIL PROTECTED], and destroy any printed or electronic copies of 
the message. Any unauthorized use, dissemination, disclosure, or copying of 
this message or the information contained in it, is strictly prohibited and may 
be unlawful. Thank you.
___
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