ling 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+
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
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 t
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, 2
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 i
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
06 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:
> >
> > // F
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
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
gt;
>
>
> -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 th
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 ==
xtfield 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"
Sent: Monday, May 15, 2006 3:16 PM
Subject:
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
real
newline. Sorry for the confusion.
Derek Vadneau
- Original Message -
From: "Steven Sacks" <[EMAIL PROTECTED]>
To: "'Flashcoders mailing list'"
Sent: Monday, May 15, 2006 3:07 PM
Subject: RE: [Flashcoders] \r
I tested it before I posted it. Th
If it is an attribute of a node and the text field is html, can't you just use
?
Ex:
Or
-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: [
; [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 Vadne
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]
That should be:
x = str.split("\\r").join("\r");
Derek Vadneau
- Original Message -
From: "Steven Sacks" <[EMAIL PROTECTED]>
To: "'Flashcoders mailing list'"
Sent: Monday, May 15, 2006 2:38 PM
Subject:
gt;> 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
>>
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
>
> Anybo
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
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/co
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. E
23 matches
Mail list logo