Font does not work in the application written by ActionScript on Android
NickName:hosseini Ask DateTime:2017-06-20T21:54:46

Font does not work in the application written by ActionScript on Android

I wrote an application with Action Script 3 to run on Android!Persian Fonts are true when running in the Windows operating system environment. but when i export in Android , Persian font dose not work!!i embedded Font and a lot of things i did it but it is not successful. the code is in bellow!

import flash.text.TextField;
import flash.text.TextFormat;
import flash.events.MouseEvent; 
var t1:TextField=new TextField(); 

t1.text="سیدمحمدحسینی";
var tf:TextFormat=new TextFormat("F_titr",16,null,null,null,null,null,null,"right");
tf.align=TextFormatAlign.RIGHT;
var t2:TextField=new TextField();
t2.x=150;
t2.y=200;
t2.type=TextFieldType.INPUT;
t2.border=true;
t2.defaultTextFormat=tf;
addChild(t2);
var b1:button1=new button1();
b1.x=250;
b1.y=200;
addChild(b1);
b1.addEventListener(MouseEvent.CLICK,bb);
function bb(event:MouseEvent):void{
    if(t2.text==t1.text){
        t2.x=250;
        trace("ok");
    }else{
        t2.x=50;
        trace("no OK");
    }
}

Copyright Notice:Content Author:「hosseini」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/44655077/font-does-not-work-in-the-application-written-by-actionscript-on-android

More about “Font does not work in the application written by ActionScript on Android” related questions

Font does not work in the application written by ActionScript on Android

I wrote an application with Action Script 3 to run on Android!Persian Fonts are true when running in the Windows operating system environment. but when i export in Android , Persian font dose not w...

Show Detail

ActionScript socket in Android

I have a Flash client application, written in ActionScript, which uses the XMLSocket class to talk to the server device via TCP/IP, on port 5750. So for example, I can run the Flash client in a br...

Show Detail

ActionScript Parser written in ActionScript?

I Know that there are several similar questions about ActionScript parsers, where I think the most appropriated answer is FlexPMD (http://sourceforge.net/adobe/flexpmd/home/Home/). Sadly, this answer

Show Detail

Font Family does not work in Android 11 (api 30)

font family does not work on Android 11 (api 30) and all the apps that have font family in my phone have become the default font of the phone. If you have this problem and there is a solution, than...

Show Detail

Is there a way to call ActionScript on Android?

I have a SWF file in my assets folder that I need to use in my Android application. So I write html file with SWF embedded and Javascript to call its ActionScript. I can play Flash file in WebView ...

Show Detail

Code written in Cross-platform library with __ANDROID__ does not execute in Xamarin forms application

I am using a multi-targeting library in my Xamarin forms application. The library has come code written with __ANDROID__ conditional compiler symbol. When i run the application on Android, it does ...

Show Detail

Actionscript 3.0 Embed Font - Text Not Appearing

I am creating dynamic TextFields in actionscript 3.0. Like many others, my text disappears when I set .embedFonts = true; ArialSlim is embedded and exported for actionscript. I have successfully

Show Detail

Does ActionScript support using JavaScript libraries?

I realize a JavaScript library like jQuery that is specific to the HTML / DOM wouldn't work nor make sense in a Flash ActionScript application. But what about other JavaScript libraries? I was rea...

Show Detail

write Arabic in Actionscript 3.0 with air for Android

I make an application for the Android operating system using the program Adobe flash and language Actionscript 3.0, but I have a problem in adding a text box type Editable, it does not support Arabic

Show Detail

ActionScript to Objective-C conversion tool

We have an application written in ActionScript 3 using Flash. Now it's time to port this app to iOS. So we need to convert a lot of code to Objective-C syntax. I think, this task must be automated,...

Show Detail