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

2008-06-12 Thread ACE Flash
i got it,
uses... = amp;

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:

 depFin  IT /dep


 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 Sidney de Koning
But you have to say your textfield is HtmlText else it wont render and  
just shows you amp; instead of 


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


i got it,
uses... = amp;

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:

depFin  IT /dep


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(depFin amp; IT/dep);
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 amp; instead of 


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


i got it,
uses... = amp;

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:

depFin  IT /dep


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 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(depFin amp; IT/dep);
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 amp; instead of 

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

i got it,
uses... = amp;

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:

depFin  IT /dep


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 amp; is taken care of at XML parse time.

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

depFin amp;amp; IT/dep

:-)

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 amp; 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 Karim Beyrouti
Or you could use CDATA tags in your XML: title![CDATA[TC's]]/title


-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(depFin amp; IT/dep);
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 amp; instead of 
 
 On Jun 12, 2008, at 3:21 PM, ACE Flash wrote:
 
 i got it,
 uses... = amp;

 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:

 depFin  IT /dep


 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
To clarify - amp; is part of the XML spec and is nothing to do with
HTML. Just by coincidence, HTML has the same entity amp; defined.

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

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

Same goes for lt; and gt;

Ian

On Thu, Jun 12, 2008 at 3:45 PM, Ian Thomas [EMAIL PROTECTED] wrote:
 Sidney - nope, the amp; is taken care of at XML parse time.

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

 depFin amp;amp; IT/dep

 :-)

 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 Romuald Quantin
Usually I use #38;



-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: title![CDATA[TC's]]/title


-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(depFin amp; IT/dep);
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 amp; instead of 
 
 On Jun 12, 2008, at 3:21 PM, ACE Flash wrote:
 
 i got it,
 uses... = amp;

 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:

 depFin  IT /dep


 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