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
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
: [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
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
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
] 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
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
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
:[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
: 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
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
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
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
=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
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
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 =
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
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
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
: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
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
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.
22 matches
Mail list logo