You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by Matthew Weir <ma...@yahoo.com.INVALID> on 2016/08/15 17:53:52 UTC
Flex ASCII
Hi,
I'm just wondering if any of you have some insight into how the mx:Label interprets ASCII. Any thoughts on how to change the text of the ASCII post-creation?
This works just:
<mx:Label id="TotalLbl" text="↖"/>
However, if I do any of these, it doesn't
var charctr:String = '↖'TotalLbl.text = charctr;
[Bindable] private var charctr:String = '↖'
<mx:Label id="TotalLbl" text="{charctr}"/>
same if I have:
charctr:String = '&#8598;'charctr:String = "↖"
charctr:String = "&#8598;"
Thanks,
Matthew
Re: Flex ASCII
Posted by OK <po...@olafkrueger.net>.
Forgot something:
If you need diagonal directional icons, the 'rotate' property might help:
<s:Label id="TotalLbl" text="{AwesomeUtils.fa_arrow_circle_down}"
fontFamily="FontAwesome" rotation="45"/>
HTH,
OLaf
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Flex-ASCII-tp13294p13302.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: Flex ASCII
Posted by OK <po...@olafkrueger.net>.
Since 4.14. the SDK is shipped with "FontAwesome":
http://fontawesome.io/icons/#directional
Usage:
<s:Label id="TotalLbl" text="{AwesomeUtils.fa_arrow_circle_down}"
fontFamily="FontAwesome"/>
Unfortunately it doesn't provide any diagonal arrows...
HTH,
Olaf
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Flex-ASCII-tp13294p13301.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: Flex ASCII
Posted by Harbs <ha...@gmail.com>.
Only if Arial (or whatever the default font is) doesn’t have it either…
(Flash does automatic glyph replacement.)
On Aug 15, 2016, at 9:23 PM, Alex Harui <ah...@adobe.com> wrote:
> IIRC, you can get a box if the font doesn't have that character in it.
>
> On 8/15/16, 11:09 AM, "Matthew Weir" <ma...@yahoo.com.INVALID> wrote:
>
>> Any ideas as to why some characters turn into a
>> box?String.fromCharCode('8680');
>>
>> from: Arrows HTML Code - Character Codes
>>
>> |
>> | |
>> Arrows HTML Code - Character Codes
>> Find the html character codes you need fast. A comprehensive and easy
>> reference of ascii and unicode characters ... | |
>>
>> |
>>
>>
>>
>>
>>
>> On Monday, August 15, 2016 2:05 PM, Matthew Weir
>> <ma...@yahoo.com.INVALID> wrote:
>>
>>
>> Thanks Clint!
>> Yes, String.fromCharCode('8598'); is working great.
>>
>> On Monday, August 15, 2016 2:02 PM, Clint M <cm...@gmail.com> wrote:
>>
>>
>> Does String.fromCharCode work?
>> http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/String.
>> html#fromCharCode()
>>
>> On Mon, Aug 15, 2016 at 10:53 AM, Matthew Weir <
>> mattcommark@yahoo.com.invalid> wrote:
>>
>>> Hi,
>>> I'm just wondering if any of you have some insight into how the mx:Label
>>> interprets ASCII. Any thoughts on how to change the text of the ASCII
>>> post-creation?
>>> This works just:
>>> <mx:Label id="TotalLbl" text="↖"/>
>>>
>>> However, if I do any of these, it doesn't
>>> var charctr:String = '↖'TotalLbl.text = charctr;
>>> [Bindable] private var charctr:String = '↖'
>>> <mx:Label id="TotalLbl" text="{charctr}"/>
>>>
>>> same if I have:
>>> charctr:String = '&#8598;'charctr:String = "↖"
>>> charctr:String = "&#8598;"
>>>
>>>
>>> Thanks,
>>> Matthew
>>
>>
>>
>>
>>
>
Re: Flex ASCII
Posted by Alex Harui <ah...@adobe.com>.
IIRC, you can get a box if the font doesn't have that character in it.
On 8/15/16, 11:09 AM, "Matthew Weir" <ma...@yahoo.com.INVALID> wrote:
>Any ideas as to why some characters turn into a
>box?String.fromCharCode('8680');
>
>from: Arrows HTML Code - Character Codes
>
>|
>| |
>Arrows HTML Code - Character Codes
> Find the html character codes you need fast. A comprehensive and easy
>reference of ascii and unicode characters ... | |
>
> |
>
>
>
>
>
> On Monday, August 15, 2016 2:05 PM, Matthew Weir
><ma...@yahoo.com.INVALID> wrote:
>
>
> Thanks Clint!
>Yes, String.fromCharCode('8598'); is working great.
>
> On Monday, August 15, 2016 2:02 PM, Clint M <cm...@gmail.com> wrote:
>
>
> Does String.fromCharCode work?
>http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/String.
>html#fromCharCode()
>
>On Mon, Aug 15, 2016 at 10:53 AM, Matthew Weir <
>mattcommark@yahoo.com.invalid> wrote:
>
>> Hi,
>> I'm just wondering if any of you have some insight into how the mx:Label
>> interprets ASCII. Any thoughts on how to change the text of the ASCII
>> post-creation?
>> This works just:
>> <mx:Label id="TotalLbl" text="↖"/>
>>
>> However, if I do any of these, it doesn't
>> var charctr:String = '↖'TotalLbl.text = charctr;
>> [Bindable] private var charctr:String = '↖'
>> <mx:Label id="TotalLbl" text="{charctr}"/>
>>
>> same if I have:
>> charctr:String = '&#8598;'charctr:String = "↖"
>> charctr:String = "&#8598;"
>>
>>
>> Thanks,
>> Matthew
>
>
>
>
>
Re: Flex ASCII
Posted by Matthew Weir <ma...@yahoo.com.INVALID>.
Any ideas as to why some characters turn into a box?String.fromCharCode('8680');
from: Arrows HTML Code - Character Codes
|
| |
Arrows HTML Code - Character Codes
Find the html character codes you need fast. A comprehensive and easy reference of ascii and unicode characters ... | |
|
On Monday, August 15, 2016 2:05 PM, Matthew Weir <ma...@yahoo.com.INVALID> wrote:
Thanks Clint!
Yes, String.fromCharCode('8598'); is working great.
On Monday, August 15, 2016 2:02 PM, Clint M <cm...@gmail.com> wrote:
Does String.fromCharCode work?
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/String.html#fromCharCode()
On Mon, Aug 15, 2016 at 10:53 AM, Matthew Weir <
mattcommark@yahoo.com.invalid> wrote:
> Hi,
> I'm just wondering if any of you have some insight into how the mx:Label
> interprets ASCII. Any thoughts on how to change the text of the ASCII
> post-creation?
> This works just:
> <mx:Label id="TotalLbl" text="↖"/>
>
> However, if I do any of these, it doesn't
> var charctr:String = '↖'TotalLbl.text = charctr;
> [Bindable] private var charctr:String = '↖'
> <mx:Label id="TotalLbl" text="{charctr}"/>
>
> same if I have:
> charctr:String = '&#8598;'charctr:String = "↖"
> charctr:String = "&#8598;"
>
>
> Thanks,
> Matthew
Re: Flex ASCII
Posted by Matthew Weir <ma...@yahoo.com.INVALID>.
Thanks Clint!
Yes, String.fromCharCode('8598'); is working great.
On Monday, August 15, 2016 2:02 PM, Clint M <cm...@gmail.com> wrote:
Does String.fromCharCode work?
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/String.html#fromCharCode()
On Mon, Aug 15, 2016 at 10:53 AM, Matthew Weir <
mattcommark@yahoo.com.invalid> wrote:
> Hi,
> I'm just wondering if any of you have some insight into how the mx:Label
> interprets ASCII. Any thoughts on how to change the text of the ASCII
> post-creation?
> This works just:
> <mx:Label id="TotalLbl" text="↖"/>
>
> However, if I do any of these, it doesn't
> var charctr:String = '↖'TotalLbl.text = charctr;
> [Bindable] private var charctr:String = '↖'
> <mx:Label id="TotalLbl" text="{charctr}"/>
>
> same if I have:
> charctr:String = '&#8598;'charctr:String = "↖"
> charctr:String = "&#8598;"
>
>
> Thanks,
> Matthew
Re: Flex ASCII
Posted by Clint M <cm...@gmail.com>.
Does String.fromCharCode work?
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/String.html#fromCharCode()
On Mon, Aug 15, 2016 at 10:53 AM, Matthew Weir <
mattcommark@yahoo.com.invalid> wrote:
> Hi,
> I'm just wondering if any of you have some insight into how the mx:Label
> interprets ASCII. Any thoughts on how to change the text of the ASCII
> post-creation?
> This works just:
> <mx:Label id="TotalLbl" text="↖"/>
>
> However, if I do any of these, it doesn't
> var charctr:String = '↖'TotalLbl.text = charctr;
> [Bindable] private var charctr:String = '↖'
> <mx:Label id="TotalLbl" text="{charctr}"/>
>
> same if I have:
> charctr:String = '&#8598;'charctr:String = "↖"
> charctr:String = "&#8598;"
>
>
> Thanks,
> Matthew