Re: [Flashcoders] AS2: blank input text field when clicked

2010-02-11 Thread Glen Pike

You are mixing your AS2 / AS3 a bit...

I would suggest covering the text field with an invisble movieclip and 
adding an onRelease handler to the clip that hides the button, then 
clears the text field. When the user clicks the GO button, you want to 
check the number in the field - goto the page or not - then show the 
button again...


var myInvisibleButton:MovieClip = attachMovie(...)
var myGoButton:MovieClip = attachMovie(...)
var myTextField:TextField = ...

myInvisibleButton.onRelease = function() {
this._visible = false;
myTextField.text=;
//How to set the focus??
Selection.setFocus(myTextField);// ??
}

myGoButton.onRelease = function() {
//Handle text / paging.

myInvisibleButton._visible = true;
}

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


RE: [Flashcoders] Flash 10 - using basic RTL features without CS4

2010-02-11 Thread Benny
The standard TextField has no support for RTL text out of the box. But in
the past some clever devs had gone through a lot of trouble to make it
somehow possible, e.g: http://www.red-id.com/blog/category/RTL-Flash.aspx

If you the linked solution (or another one you may come across) works
(100%?) for RTL (+BIDI) please let us know.

- Benny




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


Re: [Flashcoders] Flash 10 - using basic RTL features without CS4

2010-02-11 Thread Glen Pike

Hi,

   That looks like a nice solution - I will try it with the Arabic and 
let you know...


   Previously we had been using FlarabySWF which flipped the order of 
the characters - writing backwards I guess - the resulting string was 
pasted into our XML files :)


   Cheers

   Glen

Benny wrote:

The standard TextField has no support for RTL text out of the box. But in
the past some clever devs had gone through a lot of trouble to make it
somehow possible, e.g: http://www.red-id.com/blog/category/RTL-Flash.aspx

If you the linked solution (or another one you may come across) works
(100%?) for RTL (+BIDI) please let us know.

- Benny




___
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] Runtime Font embedding

2010-02-11 Thread Geografiek

Hi Glen,
I don't think it's possible to embed a range of characters through AS3.
It's all or nothing I'm afraid/
Willem van den Goorbergh

On 10-feb-2010, at 17:52, Glen Pike wrote:


Hi,

   I am working on some runtime font embedding with Flash CS3 by  
loading in a SWF at runtime with font symbols defined in library,  
exported for Actionscript, but not for sharing.


   I wish to use Arabic and Chinese characters in my fonts, so I  
have symbols for Arial and MingLiU Bold fonts.


   The problem I am having is that the Arabic / Chinese characters  
do not seem to be included in the Font Symbol / SWF.  I have tried  
putting a text field on stage and embedding the character ranges  
for each symbol, but still no luck.
   In my Loader, I am loading the fonts, then some XML and using  
Font.hasGlyphs(string) to see if my Chinese / Arabic / other  
characters can be rendered with any of my loaded fonts, then  
defaulting to system fonts if they are not.


   I can get that far, but I would really like to embed / anti- 
alias the fonts better, etc.


   So, is it possible to ensure that the CS3 IDE embeds a range of  
characters, or would I have to do the fonts using Flex / Flash  
Develop and [Embed] with unicode ranges to create my font swfs?


   Thanks in advance.
 Glen
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




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


RE: [Flashcoders] Combining embedded and device fonts in one textfield

2010-02-11 Thread Jim Hayes
Ah, I've just been there with IPA characters.

If you are using htmltext it's do able, though in the end I embedded the font 
(deja-vu in my case, it's open source) since I also needed to set plain text.

The trick is to unicode escape the character, replace it with that escaped code 
and set a style on it's replacement, where that style specifies the embedded 
font.

so if you know your character code for your undertie , lets say it's 1234, try 
something like this :

var unicodeString:String = # + 1234 + ;;
str = str.replace(String.fromCharCode(1234),span class='ipa' + 
unicodeString + /span);

then specify the style for your text :
_textStyle = new StyleSheet();
var ipaStyle:Object = new Object();
ipaStyle.fontFamily = YourEmbeddedFont;  
_textStyle.setStyle(.ipa, ipaStyle);
yourText.styleSheet = _textStyle;

Sorry if that's a bit scrappy, hopefully it will give you an idea of where you 
might head.
I was using flex, in fact, but I think this still applies to flash textfields.  


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com on behalf of 
confustic...@gmail.com
Sent: Thu 2/11/2010 6:01 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Combining embedded and device fonts in one textfield
 
Thanks for that link, Ktu. I didn't know you could specify Unicode
ranges to embed - very handy.

Unfortunately, the problem still remains of having to combine an
embedded font and a device font in the same textfield. As Lee Brimelow
demonstrates near the end of the tutorial, the lowercase 'u' didn't
display because only uppercase glyphs were embedded. It seems like if
I choose to embed only the undertie character, my textfield will only
be capable of displaying ... the undertie character!

It seems like this is the conundrum:

1) I need to embed the undertie character, as Arial Unicode MS is not
guaranteed to be found on all machines.

2) That means that any textfield which would have an undertie in it,
would have to have embedFonts = true;

3) Any textfield which has embedFonts = true can only display
characters included in the embedded font. Which, referring back to
(1), would just be an undertie.

4) This means that if I want to have an undertie, I'd have to embed
the undertie AND every single other glyph which might be used in that
textfield. Uppercase, lowercase, punctuation, numbers, etc. Further,
I'd have to embed separate versions for each of bold, italic, and
bold-italic.

All this for an undertie!!

On Thu, Feb 11, 2010 at 4:18 PM, Ktu ktu_fl...@cataclysmicrewind.com wrote:
 If you have Flash CS4 or Flex, you could embed just that one character from
 that font using the [Embed] syntax. Check out this tutorial
 http://gotoandlearn.com/play?id=102

 Ktu

 On Wed, Feb 10, 2010 at 11:08 PM, confustic...@gmail.com 
 confustic...@gmail.com wrote:

 I have paragraphs of text which includes phonemic symbols: pretty much
 any character found here should be included:
 http://www.e-lang.co.uk/mackichan/call/pron/type.html

 I thought I was home and hosed, as Lucida Sans Unicode / Lucida
 Grande, which seems pretty standard, covers all that.

 The problem came when I found out that I also have to be able to
 display the undertie character:
 http://en.wikipedia.org/wiki/Tie_(typography)http://en.wikipedia.org/wiki/Tie_%28typography%29(HTML
  code ?)

 It seems that the only font on Windows that covers the undertie is
 Arial Unicode MS. Unfortunately, Arial Unicode MS doesn't seem to be a
 standard font.

 I don't want to have to embed Arial Unicode MS because that would
 really add to my file sizes, as well as restricting my ability to do
 things like textfield.htmlText = bbold/b text. It seems like
 such overkill for ONE SINGLE GLYPH.

 Would anyone be able to suggest any alternatives? ALL I WANT IS AN
 UNDERTIE ... *sob*
 ___
 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


__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has 

Re: [Flashcoders] Runtime Font embedding

2010-02-11 Thread Jon Bradley
You can embed a range of characters through AS3. The unicodeRange  
property of the embed directive handles this.


[Embed(source='pathToFond', fontName='NameOfFont',  
unicodeRange='Range1Start-Range1End,, RangeNStart-RangeNEnd')]


- jon


On Feb 11, 2010, at 6:35 AM, Geografiek wrote:


Hi Glen,
I don't think it's possible to embed a range of characters through  
AS3.

It's all or nothing I'm afraid/
Willem van den Goorbergh

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


RE: [Flashcoders] Runtime Font embedding

2010-02-11 Thread Benny
Maybe this will help you a step in the right direction:

The IDE uses C:\Program Files\Adobe\Adobe Flash CS4\en\First
Run\FontEmbedding\UnicodeTable.xml

http://livedocs.adobe.com/flash/9.0/main/0894.html
http://blog.madebypi.co.uk/2009/06/01/flash-character-embedding-adding-addit
ional-ranges/
http://www.epic.dk/flash-unicodetable/flash-unicodetable-generator.php


- Benny

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


Re: [Flashcoders] Runtime Font embedding

2010-02-11 Thread Glen Pike

Hi,

   Thanks guys - it looks like the only way to use Embed is CS4 or 
FlashDevelop - that's fine with me, but I also need to get my head 
around the fonts that actually have the characters I need - part of the 
problem, Arial has Arabic, but not Chinese, so I need to load 
accordingly there.


   Just trying to get a workflow / methodology together for applying 
the font across my interface - as it's not web-deployed large file sizes 
are not critical, but being able to swap the interface language and 
embedded fonts is...


   I discovered Lee's tutorial for CS4, which I completed using 
FlashDevelop to [Embed]: http://gotoandlearn.com/play?id=102  he also 
includes a good link to a better / more interactive Unicode generator 
here :http://rishida.net/scripts/uniview/conversion.php


   Now I just need to get my RTL to play ball and I can (build an army 
of multilingual robots to) take over the world. mwa-ha-ha


   Glen

Benny wrote:

Maybe this will help you a step in the right direction:

The IDE uses C:\Program Files\Adobe\Adobe Flash CS4\en\First
Run\FontEmbedding\UnicodeTable.xml

http://livedocs.adobe.com/flash/9.0/main/0894.html
http://blog.madebypi.co.uk/2009/06/01/flash-character-embedding-adding-addit
ional-ranges/
http://www.epic.dk/flash-unicodetable/flash-unicodetable-generator.php


- Benny

___
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] yuva...@gmail.com has sent you a private message

2010-02-11 Thread Jagan R

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


Re: [Flashcoders] yuva...@gmail.com has sent you a private message

2010-02-11 Thread Henrik Andersson

Ok, how did this happen?

Is it just some lame spam or is it some misconfiguration?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] yuva...@gmail.com has sent you a private message

2010-02-11 Thread Dave Watts
 Ok, how did this happen?

 Is it just some lame spam or is it some misconfiguration?

Just some lame spam. I've unsubscribed the sender.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] yuva...@gmail.com has sent you a private message

2010-02-11 Thread Kerry Thompson
Dave Watts wrote:

 Just some lame spam. I've unsubscribed the sender.

Thanks, Dave. I think you have been doing a terrific job of keeping
the list spam-free.

Cordially,

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


Re: [Flashcoders] yuva...@gmail.com has sent you a private message

2010-02-11 Thread Karl DeSaulniers

+1

On Feb 11, 2010, at 2:43 PM, Kerry Thompson wrote:


Thanks, Dave. I think you have been doing a terrific job of keeping
the list spam-free.


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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