RE: [Flashcoders] Special characters?

2006-08-22 Thread Mike Mountain
 [as]
for (i=288; i=318; i++) {
var val = String.fromCharCode(i);
trace(val);
}
[/as]

Any good?

M

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Steven Loe
 Sent: 22 August 2006 16:40
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Special characters?
 
 How does one access characters in a font that are beyond the 
 standard ascii 127 characters? I'm about to start working 
 with a custom font that has icons in the outer reaches of the 
 key map. The icons are in locations 288 - 318. 
 
 Any ideas how to get these characters?
 
 Thanks in advance,
 
 Steven
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection 
 around http://mail.yahoo.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] Special characters?

2006-08-22 Thread Steven Loe
Mike,

Works like a charm. Thank you very much!

-Steven

/

--- Mike Mountain [EMAIL PROTECTED] wrote:

  [as]
 for (i=288; i=318; i++) {
   var val = String.fromCharCode(i);
   trace(val);
 }
 [/as]
 
 Any good?
 
 M
 
  -Original Message-
  
  How does one access characters in a font that are beyond the 
  standard ascii 127 characters? I'm about to start working 
  with a custom font that has icons in the outer reaches of the 
  key map. The icons are in locations 288 - 318. 
  
  Any ideas how to get these characters?



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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] special characters

2005-11-13 Thread Gregory_GOusable
Enrico, I tried what you've described - indeed!
you wrote:
How can I write the '' char, inside an html dynamic textfield?

In fact, writing  char isn't a problem, but loading it from text
file is: it's either recognized as tag or (if you use lt; etc)
another variable.
But if you try create a local var with html inside it, everything is
ok.
Solution:
1) I'd suggest to use XML file with CDATA instead of plain text.
Do you mind?
2) If the first doesn't fit you, maybe try to use another
char/combination in your txt file, then after loading replace them
with  or  using string manipulations. And then assign this string to
a textfield.
-- 
Best regards,
 Gregory_GOusable

http://GOusable.com
Flash components development.
Usability services.


 I need to write, inside a .txt file that must be load into a dynamic
 textfield, the char '' and '';
 but, if I wrote so, the loading stop when arrive to '', because Flash think
 this is the start of a tag, and I can't write neither 'lt;' nor 'gt;',
 because '' for Flash it means the start of a new text block.
 Where can I find a table of equivalent 'coded' chars, that is possible to
 use within Flash?
 
  Enrico Tomaselli
   + web designer +
   [EMAIL PROTECTED]
 http://www.metatad.it
 
 

 
 Well, I find on Macromedia site the table that I search, but the trouble its
 always on...
 If, instead than '' I write %3C, Flash recognize this like '', and it
 think that is a tag open, then - without the expected tag close - the load
 of following text stops.
 Trying to find a solution to this, I have met another strange behavior:
 thinkin' that, if the problem is the 'open without close tag', I wrote
 something like this
 condition 1: %3Cfont color=#ff%3E/font condition 2
 where, obviously, white (#ff) is the background color; well, Flash show
 like below!
condition 1:  condition 2
 Then, what it done is the follow:
 - don't stop the following text loading
 - don't show the char ''
 - instead show the char '', that should be white (no visible) ...
 I'm upcoming to become crazy!
 There is a solution to this problem? How can I write the '' char, inside an
 html dynamic textfield?
 
  Enrico Tomaselli
   + web designer +
   [EMAIL PROTECTED]
 http://www.metatad.it


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


Re: [Flashcoders] special characters

2005-11-13 Thread MetaArt
Well,
the question is that the (.txt) files are done by unskilled users, using  a
simple appl to apply some basic features to chars (like bold, italic,
underlined), so I must use simple text files.
But, at last, maybe the string manipulation option is the only way...
thank you for suggestion.

 Enrico Tomaselli
  + web designer +
  [EMAIL PROTECTED]
http://www.metatad.it

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


Re: [Flashcoders] special characters

2005-11-13 Thread Ian Thomas
In which case the onData option might be your best bet. The text files can
then be whatever you like - it's up to you to process them in whatever way
you wish.

Basically by providing your own LoadVars.onData() function, you completely
replace Flash's default processing of text files - you are just handed the
raw text as a string and can do what you like with it.

Take a look in the documentation.

Cheers,
Ian

On 11/13/05, MetaArt [EMAIL PROTECTED] wrote:

 Well,
 the question is that the (.txt) files are done by unskilled users, using a
 simple appl to apply some basic features to chars (like bold, italic,
 underlined), so I must use simple text files.
 But, at last, maybe the string manipulation option is the only way...
 thank you for suggestion.

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