Quantcast
Channel: Adobe Community : All Content - AIR Development
Viewing all articles
Browse latest Browse all 2954

Emoticon Support and StageText worries

$
0
0

Hi there,

 

in a new AIR 4 mobile application i need to offer a chat system. Since special characters are also required i'm trying to integrate StageText, since no other text component seems to be able to display these special characters correctly.

Unfortunately StageText still (!!!) does not offer any kind of measuring its content, which makes it impossible for me to display. Since every chat message has a different length the surrounding Scale9Image needs to know the exact

dimensions of the text message object.

Scrolling the container is also important, therefore the StageText needs to draw the content into a Bitmap which will be shown instead (since it's only displaying text messages and no input is required the StageText component is actually only needed for having access to the native emoticon support).

 

Now my questions:

1) Isn't there really no other way of not having to use StageText for being able to support these special characters ?

2) If not isn't there a more accurate way to measure the dimensions of a StageText object (what about integrating StyleableStageText or some other class) ?

 

So far i tried using these NativeText implementations:

https://github.com/cantrell/StageTextExample/blob/master/src/NativeTex t.as

http://firefly.in4ray.com/api/com/in4ray/gaming/components/NativeText. html

http://feathersui.com/documentation/feathers/controls/text/StageTextTe xtEditor.html

 

They all try to measure the text content by using the TextField/TextFormat way, but it didn't result in good values.

I hope that someone had similar problems and can help me. Thank you!


Viewing all articles
Browse latest Browse all 2954

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>