No Font-Embedding using AIR 3.0 in Flash Professional (for iOS Development)

Hey there,
we're developing some plain AS3 projects using Flash Professional (to compile) and Flash Builder.
All is working good with the new AIR 3.0 release and performance is better than with AIR 2.6
I followed this tutorial and simlar to use AIR 3.0 instead of AIR 2.6:
http://kb2.adobe.com/cps/908/cpsid_90810.html
Sadly today we saw a new issue with font embedding. Neither using Flash Professional itself or Embed-Tag in the code itself works. Also we see that the SWF size does not change when adding multiple fonts.
Anybody has a clue where this issue might be caused? I can think that the way fonts are embedded has changed in AIR 3.0 and it's not working with the "replace AIR 2.6 with AIR X.Y trick".
Any help welcome.
Best,
Cedric

Hi,
yes. It works now.
The problem was the TLFTextField itself. Strangely in debug on my Mac fonts showed of correctly, but on the device not. So I assumed that there was an problem of embedding.
But after changing setDefaultFormat to setFormat, then setting the tlftextfield.htmlText = ".." and after that doing tlftextfield.textFlow.flowComposer.updateAllControllers(); it works on the device.
Strange to me, that with active fonts on my Mac it works without updateAllControllers - but on the devices not.
Thanks for the hints.

Similar Messages

  • Using Air 2.6 with Flash CS5

    hey there all,
    here is what i am doing so far to use Air 2.6 with Flash CS5. i counts seem to find any help online with this, hope this helps someone...
    Setting Up Flash CS5
    1. replace Program FIles\Adobe\Adobe Flash CS5\Common\Configuration\ActionScript 3.0\AIR2.0\airglobal.swc with the airglobal.swc in the AdobeAIRSDK\frameworks\libs\air folder of the AIR 2.6 SDK zip file (AdobeAIRSDK.zip)
    This lets you compile with the new SDK and use all the new API for camera roll, microphone, etc.
    2. replace Program Files\Adobe\Adobe Flash CS5\AIK2.0 with the AdobeAIRSDK folder in the zip file (AdobeAIRSDK.zip) you downloaded from Adobe.
    now you can do a test movie in Flash CS5 and it will use the new ADL for testing in Flash (finally works with landscape!).
    Publishing
    for publishing, unfortunately you cant use the built-in publish for iOS. i wrote this batch file and use it (also you can write an ant task if you use FDT/Flash Builder). This is for windows 64bit...
    "C:\Program Files (x86)\Java\jre6\bin\java" -jar C:\AdobeAIRSDK\lib\adt.jar -package -target ipa-ad-hoc -storetype pkcs12 -keystore [KEYFILE].p12 -storepass [KEY PASSWORD] -provisioning-profile [MOBILE PROVISION FILE].mobileprovision [IPA NAME].ipa [XML FILE NAME].xml [SWF FILE NAME].swf Icon_29.png Icon_48.png Icon_57.png Icon_72.png Icon_512.png Default-Landscape.png Default-Portrait.png Default-PortraitUpsideDown.png Default-PortraitLandscapeLeft.png Default-PortraitLandscapeRight.png
    i have a 64bit system so i had to specify the 32 bit JRE and use the ADT jar for packaging. now i just double-click the batch file and it compiles for iOS.
    Adjusting the app.xml File
    the yourapp-app.xml file needs some tweaks from the CS5 packager to work in 2.6:
    1. namespace has to change from
    <application xmlns="http://ns.adobe.com/air/application/2.0">
    to
    <application xmlns="http://ns.adobe.com/air/application/2.6">
    2. the version node needs to be renamed versionNumber
    from
    <version>.5.572<</version>
    to
    <versionNumber>0.5.572</versionNumber>
    notice you need to include the leading zero if you arent using a whole number version
    ok, thats what i have so far, hope this helps...

    hey there all, for those on Windows,
    here is a compile script i put together for iOS using AIR 2.6. Copy and past this into a file named "compile ios.wsf". All you have to do is double-click and it will compile and paclage your app.
    the script assumes you have a versionNumber like: 0.4.123 it takes and incrememnts the build number (the last 3 numbers only) by one. i will imrpove this later.
    <?xml version="1.0" ?>
    <job>
    <script language="JScript">
         This file assumes you are using a 3-segment version system.
         It is not very inteligent, it just increments the last set of numbers in the
         versionNumber in the XML file by 1. !!be aware that it is not yet smart enough
         to update the second number!!
         // these properties change depending on your project
         var XML_FILE = "YourApp-app.xml";
         var SWF_FILE = "YourApp.swf";
         var IPA_FILE = "YourApp.ipa";
         var TARGET = "ipa-ad-hoc";
         var KEY_FILE = "dist.p12";
         var KEY_PASSWORD = "PASSWORD";
         var PROVISIONING_PROFILE = "YourApp.mobileprovision";
         var ICONS = "Icon_29.png Icon_48.png Icon_57.png Icon_72.png Icon_512.png";
         var SPLASH_SCREENS = "Default-Landscape.png Default-Portrait.png Default-PortraitUpsideDown.png Default-PortraitLandscapeLeft.png Default-PortraitLandscapeRight.png";
         // the location of your JRE/JDK and Air SDK files
         var JRE_BIN = "C:\\Progra~2\\Java\\jre6\\bin\\java";
         var ADT_JAR = "C:\\AdobeAIRSDK\\lib\\adt.jar";
         // this stuff shouldnt need to change
         var objXML = new ActiveXObject( "Microsoft.XMLDOM" );
         objXML.async = false;
         objXML.load(XML_FILE);
         var root = objXML.documentElement;
         var versionNumberNode = root.selectSingleNode("versionNumber");
         var versionNumberArray = versionNumberNode.text.split(".");
         var buildNumber = parseInt(versionNumberArray[2]) + 1;
         versionNumberNode.text = versionNumberArray[0] + "." + versionNumberArray[1] + "." + buildNumber;
         objXML.save(XML_FILE);
         var cShell = WScript.CreateObject("WScript.Shell");
         var compileCommand = '"' + cShell.CurrentDirectory + '\\compile ios.bat"';
         compileCommand = JRE_BIN + " -jar " + ADT_JAR + " -package -target " + TARGET + " -storetype pkcs12 -keystore " + KEY_FILE + " -storepass " + KEY_PASSWORD + " -provisioning-profile " + PROVISIONING_PROFILE + " " + IPA_FILE + " " + XML_FILE + " " + SWF_FILE + " " + ICONS + " " + SPLASH_SCREENS;
         //WScript.Echo(compileCommand);
         var runVal = cShell.run(compileCommand, 1, true);
    </script>
    </job>
    i will see if there's time to do a shell script of OSX and an ANT script for Eclipse...

  • Using fonts embedded in the main app in Flash swf(s) loaded at runtime

    Hello there,
    My main application has several fonts embedded via CSS:
    @font-face {
    src: url('/Library/Fonts/ACaslonPro-Regular.otf');
    fontFamily: CaslonR;
    unicodeRange: U+0021-U+007E;
    At runtime the main application loads various swf files that were created in Flash CS5.
    I can't figure out how to allow those dynamically loaded external swf files to use the fonts that are already embedded in the main application.
    Of course I can embed the font in each swf in Flash CS5 to begin with, but that doesn't seem like an elegant solution, let alone it significantly increases the file size of every swf.
    Thanks,
    FTQuest

    See the embedded font post on my blog
    Alex Harui
    Flex SDK Team
    Adobe System, Inc.
    http://blogs.adobe.com/aharui

  • Using Air 2.7 in Flash

    I recently updated my Adobe Air from 2.0 to 2.7. Doesn't this mean that my Flash CS5.5 will also have the option of using this version of Air as a player? I checked but I couldn't find it. It went only till Air 2.6
    The Reason I updated Air was because the Air Components for iOS refused to install when I tried installing Flash for the first time. I did a reinstall but it still didn't Install. The Air Website had a new 2.7 version which they say improves performance by a lot. So, I went ahead and downloaded since I needed the best performance for my iOS apps.
    So, is this new version of Air automatically intergrated to my Air Programs or do I need to do something else in order to make a Program for Air 2.7?
    So far my player options go only till Air 2.6 and Air for iOS.
    BTW I only downloaded Air 2.7 not the Air 2.7 SDK... Is the SDK required?

    You can't directly update AIR 2.7, there is some workaround for this, look at the below link and change accordingly
    http://kb2.adobe.com/cps/908/cpsid_90810.html

  • AIR 2.7 and molehill combi for iOS???

    Hi,
    how do you tell Flash CS 5.5 to compile an iOS app with AIR 2.7 and Flash player 11? (Molehill)
    I have both installed but Flash seems to complile to player 10 in AIR 2.7 and I want player 11 in AIR 2.7.
    Any help much welcome!
    regards!

    You might be able to get it to use Flash Player 11 by using the runtimeVersion option when compiling the app with adt and the command line, but even if you did, the mobile version doesn't yet support molehill.

  • What email to use for iOS developer program for company

    Hi, I'm planning to register to iOS developer program as a company. My question is, should I use my company email to create the Apple ID? If sometime in the future I leave the company, can the Apple ID email be changed ?

    I would recommend you to use Blowfish, but if you think you dont need a very strong algorithm and prefer to focus on performance(speed),then a 56-bit DES would be adequate.
    You need the javax.crypto.* and javax.crypto.spec.* packages.
    If you will store the information in a file, after you encrypt the data, base64 encode it.
    (there are base64 encode/decode classes in sun.misc package)
    I show u a method implementing that:
    public String encryptTxt(String txt,String key){
       try{
          SecretKeySpec specKey=new SecretKeySpec(key, "Blowfish");
          Cipher cipher=Cipher.getInstance("Blowfish"););
          cipher.init( Cipher.ENCRYPT_MODE, specKey);
          return new String(  new BASE64Encoder().encodeBuffer( cipher.doFinal(txt.getBytes())) );
       }catch(Exception e){return txt;}
      }HTH

  • Is there a way to use the "Spinner list" in Flash professional?

    Can I import the componen "spinner list" used in Flash Builder to a Flash professional proyect?

    Flex and Flash Pro don't mix, entirely different layers of the VM. If you don't see it in the default CS6 controls list, no you can't use it from Flash Pro. Only certain components (spark) were converted from Flex to CS6.
    You should look into GPU accelerated components like feathersui.com.

  • How to use Air 3.2 in Flash pro CS5

    Hi all,
    Is is possible to target Air 3.2 in the authoring tool Flash Pro CS5 ?
    If yes, how can it be done ?
    Thanks
    Raphaël

    Joe_suchta, you can follow these steps http://www.youtube.com/watch?v=pwVkK27Nors
    Lucky

  • Using OpenCV inside an Adobe Native Extension for IOS

    I'm trying to use OpenCV.framework inside an Adobe Native Extension that I'm developing to use on an IOS application made in Flex.
    The problem is that I get errors while packaging the application:
        Undefined symbols for architecture armv7:
          "__ZNKSt3__120__vector_base_commonILb1EE20__throw_length_errorEv", referenced from:
              __ZNSt3__16vectorIiNS_9allocatorIiEEE8__appendEm in opencv2(smooth.o)
              __ZNSt3__16vectorIN2cv6Point_IiEENS_9allocatorIS3_EEE21__push_back_slow_pathIKS3_EEvRT_ in opencv2(hough.o)
              __ZNSt3__16vectorIN2cv3VecIiLi128EEENS_9allocatorIS3_EEE8__appendEm in opencv2(matrix.o)
              __ZNSt3__16vectorIN2cv3VecIiLi64EEENS_9allocatorIS3_EEE8__appendEm in opencv2(matrix.o)
              __ZNSt3__16vectorIN2cv3VecIiLi32EEENS_9allocatorIS3_EEE8__appendEm in opencv2(matrix.o)
              __ZNSt3__16vectorIN2cv3VecIiLi16EEENS_9allocatorIS3_EEE8__appendEm in opencv2(matrix.o)
              __ZNSt3__16vectorIN2cv3VecIiLi12EEENS_9allocatorIS3_EEE8__appendEm in opencv2(matrix.o)
        ld: symbol(s) not found for architecture armv7
        Compilation failed while executing : ld64
    and this is the platformoptions.xml I use to compile the ANE:
        <platform xmlns="http://ns.adobe.com/air/extension/4.0">
            <sdkVersion>8.0</sdkVersion>
            <linkerOptions>
           <option>-framework opencv2</option>
           <option>-framework UIKit</option>
           <option>-framework Foundation</option>
           <option>-framework CoreGraphics</option>
           <option>-framework Accelerate</option>
           <option>-framework AssetsLibrary</option>
           <option>-framework AVFoundation</option>
           <option>-framework CoreImage</option>
           <option>-framework CoreMedia</option>
           <option>-framework CoreVideo</option>
           <option>-framework QuartzCore</option>
        </linkerOptions>
        </platform>
    Any idea?

    Problem solved. I've added this line
    <option>-lc++</option>
    to the platformOptions.xml.
    Now OpenCV works great in my actionscript native extension.

  • Want to write an article about Air for iOS development. Where to publish?

    I wanna write an article about developing iOS game in Adobe Air based on our latest game. Different performance issues, hints, tricks, etc.
    I think it will be interesting for many of developers.
    Where can I publish it?

    Hi soulburner... I do appreciate you are feeling encouraged for writing articles, they are highly time consuming, even those articles oriented to open communities which don't need to follow any academic rules. I could suggest to you using something like http://wordpress.org/ and then you can go to the especific communities who you have writen for and spread the link, also there are sites like http://www.actionscript.org/ where you can get registered as an author, they distribute your articles among a good crowd of programmers, however, howadays you can find some very cheap hosting packages (like $5 monthly) which give you more flexibility if you want to share big files size, I did that for example a while ago, I am currently publishing all the things I do for whoever wants to take them and nowadays if you type things like "balloon algorithm" or "grass algorithm as3" in google it points to http://www.yoambulante.com at first page.
    it takes a while to propagate your site but it is really cool to know you can help random people around the world. that's one of the things I do in my spare time, help as many people as I can, as many people have helped me a lot too. Some how I just have discovered adobe forums today (not before), this place looked to me always like a place where people come to complain. I was wrong, I just published a new article for mobile programmers yesterday http://www.yoambulante.com/en/labs/trafficwonder_drawing.php which aims to this community.
    I hope it helps,
    cheers!

  • Can I use Balance in Apple ID to pay for the Developer Program?

    I have a little over 100$ in my Apple ID account, and I was wondering if I could ues this as a substitute for paying with a credit card when it comes to enrolling as a paid apple developer (with features like testing my app on my iPhone, and not the iPhone Similator on Xcode). Also, is there any way to get my name as the person shown when people go to buy the app? I am under 18, so people have said on other threads that I must use a parents' name. I would prefer not to use my parents' since they no little how to code and I value recognition. Help?

    You must use a credit card  registered with your name and address.
    There is no other option.

  • Im using c6 but need cs5.5 flash professional for a school project

    so i have a project and used cs5.5 flash to do most of it in class. finished it and want to edit it at home so I downloaded the c6 one and it keeps on saying that unexpected file format??! any ideas on what i should do next !!!!

    Hi nura0123,
    You can download Flash CS5.5 from : http://prodesigntools.com/adobe-cs5-5-direct-download-links.html
    But make sure you follow the important instructions on the page before initiating the download.

  • Is it possible to save when I use the trial version of Flash Professional CS5?

    I downloaded the trial version so I could work on the final project for class but for some reason when I tried to save it my computer froze up. Is this because the save feature is turned off for the trial version or was it just my computer? If I can't save using the trial version than I wasted memory on my computer and a lot of my time downloading the trial version that isn't going to be very useful to me.

    The trial versions have no restrictions on use and you can save what you create, so it was most likely your computer.  Make sure your machine meets meets the minimum requirements. 
    The harddrive memory is not wasted, it is recoverable when you uninstall.  If you are talking about RAM, it is only used when you run the program.  The time you say you wasted downloading shouldn't have been necessary... downloading happens without the need for your participation, so you could have let that run by itself while doing something else.

  • How do I play an audio clip embedded in a PDF file in Acrobat DC for iOS?

    It looks like playing audio clips from PDF files is currently not available on Acrobat DC for iOS, could this be enabled?
    Also it would be nice to be able to pause/restart/stop audio playback, see audio clip length and progress bar and jump to the desired position.
    Thanks

    Use a SwingWorker:new SwingWorker<AudioClip, Void> () {
        protected AudioClip doInBackground () throws Exception {
            return Applet.newAudioClip (new URL ("http://www.geocities.com/darrylbu/sounds/ringout.wav"));
        protected void done () {
            try {
                get ().play ();
            } catch (ExecutionException ex) {
                ex.printStackTrace();
            } catch (InterruptedException ex) {
                ex.printStackTrace();
    }.execute ();Depending on your need, you may want to make that a named class AND/OR assign it to a variable reference and call execute separately AND/OR you may want to call loop () instead of play () inwhich case you may want to assign the AudioClip to an instance field so that stop () can be called from any method.
    For a console app, I would have recommended a Thread:new Thread (new Runnable () {
        public void run () {
            try {
                Applet.newAudioClip (new URL ("http://www.geocities.com/darrylbu/sounds/ringout.wav")).play ();
            } catch (MalformedURLException ex) {
                ex.printStackTrace();
    }).start ();The same reasoning applies.
    Please read the API for anything you're not familiar with, and get back if you have any questions.
    db

  • Air for ios - developing on new mac / certificates help

    so my hard drive died on my macbook pro and I upgraded to a new hybrid ssd drive and need to get back up and running with Flash Builder 4.6 to recreate a project I was developing for a client (lesson learned about backup!)...
    I never backed up my ios key / certificate and need to know if Im completely screwed in terms of being able to resume ongoing development of existing apps (i.e. releasing NEW versions of current / existing apps)
    what do I need to do to make sure my apps can be signed same as the previously launched versions / builds?

    You were spot on.  I just had to get all the keychain access info back inplace and its always a little tricky getting the private keys for the certificates for Dev and Dist but it all worked out.  Guess my panic mode was a bit out of hand from the hard drive failure -- new SSD and back up and running though.  thanks for the reply / help.

Maybe you are looking for