RE: [Flashcoders] Re: Is it possible to display "&" in the xml file

2008-06-12 Thread Romuald Quantin
Usually I use &



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Karim
Beyrouti
Sent: 12 June 2008 15:47
To: 'Flash Coders List'
Subject: RE: [Flashcoders] Re: Is it possible to display "&" in the xml file

Or you could use CDATA tags in your XML: 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kenneth
Kawamoto
Sent: 12 June 2008 15:31
To: Flash Coders List
Subject: Re: [Flashcoders] Re: Is it possible to display "&" in the xml file

Are you sure about that?

var xml:XML = new XML(Fin & IT);
var tf:TextField = new TextField();
tf.text = xml;
addChild(tf);

I get "Fin & IT" in the TextField.

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Sidney de Koning wrote:
> But you have to say your textfield is HtmlText else it wont render and 
> just shows you & instead of &
> 
> On Jun 12, 2008, at 3:21 PM, ACE Flash wrote:
> 
>> i got it,
>> uses... => &
>>
>> On Thu, Jun 12, 2008 at 9:14 AM, ACE Flash <[EMAIL PROTECTED]> wrote:
>>
>>> hey there,
>>> Is it possible to display "&" in the xml file? I tried to convert it to
>>> %26, but it won't display "&" in the flash
>>>
>>> for example:
>>>
>>> Fin & IT 
>>>
>>>
>>> thanks
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Is it possible to display "&" in the xml file

2008-06-12 Thread Ian Thomas
To clarify - & is part of the XML spec and is nothing to do with
HTML. Just by coincidence, HTML has the same entity & defined.

A standards-conforming XML parser - which the Flash one is - will
always translate & into & within text nodes.

So when you extract the text node from the XML, any occurrence of
& will already have been replaced.

Same goes for < and >

Ian

On Thu, Jun 12, 2008 at 3:45 PM, Ian Thomas <[EMAIL PROTECTED]> wrote:
> Sidney - nope, the & is taken care of at XML parse time.
>
> You'd only have to use htmlText if the string was:
>
> Fin & IT
>
> :-)
>
> Ian
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Re: Is it possible to display "&" in the xml file

2008-06-12 Thread Karim Beyrouti
Or you could use CDATA tags in your XML: 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kenneth
Kawamoto
Sent: 12 June 2008 15:31
To: Flash Coders List
Subject: Re: [Flashcoders] Re: Is it possible to display "&" in the xml file

Are you sure about that?

var xml:XML = new XML(Fin & IT);
var tf:TextField = new TextField();
tf.text = xml;
addChild(tf);

I get "Fin & IT" in the TextField.

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Sidney de Koning wrote:
> But you have to say your textfield is HtmlText else it wont render and 
> just shows you & instead of &
> 
> On Jun 12, 2008, at 3:21 PM, ACE Flash wrote:
> 
>> i got it,
>> uses... => &
>>
>> On Thu, Jun 12, 2008 at 9:14 AM, ACE Flash <[EMAIL PROTECTED]> wrote:
>>
>>> hey there,
>>> Is it possible to display "&" in the xml file? I tried to convert it to
>>> %26, but it won't display "&" in the flash
>>>
>>> for example:
>>>
>>> Fin & IT 
>>>
>>>
>>> thanks
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Is it possible to display "&" in the xml file

2008-06-12 Thread Ian Thomas
Sidney - nope, the & is taken care of at XML parse time.

You'd only have to use htmlText if the string was:

Fin & IT

:-)

Ian

On Thu, Jun 12, 2008 at 3:03 PM, Sidney de Koning
<[EMAIL PROTECTED]> wrote:
> But you have to say your textfield is HtmlText else it wont render and just
> shows you & instead of &
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Is it possible to display "&" in the xml file

2008-06-12 Thread Sidney de Koning

Try doing that with an external file and an exotic font :)

To prevent errors from my side i always place my text in a CDATA  
(where appropriate) and make sure I have the htmlText option on.
When working with exotic fonts (not your standard verdana, times or  
arial) you might get in trouble.



Sid


On Jun 12, 2008, at 4:30 PM, Kenneth Kawamoto wrote:


Are you sure about that?

var xml:XML = new XML(Fin & IT);
var tf:TextField = new TextField();
tf.text = xml;
addChild(tf);

I get "Fin & IT" in the TextField.

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Sidney de Koning wrote:
But you have to say your textfield is HtmlText else it wont render  
and just shows you & instead of &

On Jun 12, 2008, at 3:21 PM, ACE Flash wrote:

i got it,
uses... => &

On Thu, Jun 12, 2008 at 9:14 AM, ACE Flash <[EMAIL PROTECTED]>  
wrote:



hey there,
Is it possible to display "&" in the xml file? I tried to convert  
it to

%26, but it won't display "&" in the flash

for example:

Fin & IT 


thanks

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Is it possible to display "&" in the xml file

2008-06-12 Thread Kenneth Kawamoto

Are you sure about that?

var xml:XML = new XML(Fin & IT);
var tf:TextField = new TextField();
tf.text = xml;
addChild(tf);

I get "Fin & IT" in the TextField.

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Sidney de Koning wrote:
But you have to say your textfield is HtmlText else it wont render and 
just shows you & instead of &


On Jun 12, 2008, at 3:21 PM, ACE Flash wrote:


i got it,
uses... => &

On Thu, Jun 12, 2008 at 9:14 AM, ACE Flash <[EMAIL PROTECTED]> wrote:


hey there,
Is it possible to display "&" in the xml file? I tried to convert it to
%26, but it won't display "&" in the flash

for example:

Fin & IT 


thanks

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Is it possible to display "&" in the xml file

2008-06-12 Thread eric e. dolecki
Or you could search and replace the & using a regular dynamic field.

On Thu, Jun 12, 2008 at 10:03 AM, Sidney de Koning <[EMAIL PROTECTED]>
wrote:

> But you have to say your textfield is HtmlText else it wont render and just
> shows you & instead of &
>
>
> On Jun 12, 2008, at 3:21 PM, ACE Flash wrote:
>
>  i got it,
>> uses... => &
>>
>> On Thu, Jun 12, 2008 at 9:14 AM, ACE Flash <[EMAIL PROTECTED]> wrote:
>>
>>  hey there,
>>> Is it possible to display "&" in the xml file? I tried to convert it to
>>> %26, but it won't display "&" in the flash
>>>
>>> for example:
>>>
>>> Fin & IT 
>>>
>>>
>>> thanks
>>>
>>>  ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Is it possible to display "&" in the xml file

2008-06-12 Thread Sidney de Koning
But you have to say your textfield is HtmlText else it wont render and  
just shows you & instead of &


On Jun 12, 2008, at 3:21 PM, ACE Flash wrote:


i got it,
uses... => &

On Thu, Jun 12, 2008 at 9:14 AM, ACE Flash <[EMAIL PROTECTED]> wrote:


hey there,
Is it possible to display "&" in the xml file? I tried to convert  
it to

%26, but it won't display "&" in the flash

for example:

Fin & IT 


thanks


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: Is it possible to display "&" in the xml file

2008-06-12 Thread ACE Flash
i got it,
uses... => &

On Thu, Jun 12, 2008 at 9:14 AM, ACE Flash <[EMAIL PROTECTED]> wrote:

> hey there,
> Is it possible to display "&" in the xml file? I tried to convert it to
> %26, but it won't display "&" in the flash
>
> for example:
>
> Fin & IT 
>
>
> thanks
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders