Fiexed! AIR 3.7 on ios load packaged swf problem

I have fixed this, thanks. It's because this:
<mxmlc file="${SOURCE_DIR}/${APP_NAME}.${APP_EXTENSION}"
output="${OUTPUT_DIR}/${APP_NAME}.swf"
static-rsls="true" It's the problem
accessible="true"
configname="air"
debug="${DEBUG_FLAG}"
failonerror="true"
fork="true"
maxmemory="512m">
Hi, nice guys
Thanks for your time to watch my proble!
I'm develop IOS App by AIR 3.7. I have seen this about load swf http://blogs.adobe.com/airodynamics/2012/11/09/packaging-and-loading-multiple-swfs-in-air- apps-on-ios/  . Everything works fine in debug mode, but when I release it , everything is gone.
I'm using AIR 3.7 in GPU renderer mode, and load SWF with some code. I have add LoaderContext.
var l:LoaderContext=new LoaderContext(false, ApplicationDomain.currentDomain);
l.allowCodeImport=true;
When I debug in Fast mode, everything is ok, in Standard mode package get the Errors:
Error occurred while packaging the application:
java.lang.NegativeArraySizeException
          at com.adobe.air.ipa.SWFUtils.read(SWFUtils.java:205)
          at com.adobe.air.ipa.SWFUtils.inspect(SWFUtils.java:250)
          at com.adobe.air.ipa.SWFUtils.<init>(SWFUtils.java:181)
          at com.adobe.air.ipa.SWFSplitter.main(SWFSplitter.java:68)
Exception in thread "main" com.adobe.air.InvalidInputException: Invalid input. Not a valid swf file
          at com.adobe.air.ipa.SWFSplitter.main(SWFSplitter.java:105)
Compilation failed while executing : ADT
When I use a empty project to load a test swf, get the Error:
Main Thread (Suspended: Error: Error #3747: Multiple application domains are not supported on this operating system.)
Anybody know how to fix this ?
Thanks!

i have same problem. but i did not understand where is this code? where should i look?
"""<mxmlc file="${SOURCE_DIR}/${APP_NAME}.${APP_EXTENSION}"
output="${OUTPUT_DIR}/${APP_NAME}.swf"
static-rsls="true" It's the problem
accessible="true"
configname="air"
debug="${DEBUG_FLAG}"
failonerror="true"
fork="true"
maxmemory="512m">""""

Similar Messages

  • AIR 3.6 & 3.7 Loading Remote SWF Crashes iOS on Property Read

    I have been trying out the feature in AIR SDK 3.6 that allows you to load local swf files with ABC.  This is working fine.  However, I am getting a crash on an iOS AOT build when I load a remote swf that does NOT have ABC and I try to read any property on that remote asset.  I have never had this problem with AIR 3.4.  The problem persists on AIR 3.7
    Below is a simple example to reproduce the problem.  The crash will occur immediately when it attempts to trace the "currentLabels" property of the loaded content.  I believe the property itself to be arbitrary --- the same crash will occur when reading any property.  In fact, you can even set a breakpoint before that line and in the Flash Builder debugger, if you try to expand the content's properties the app will crash.
    package
              import flash.display.Loader;
              import flash.display.MovieClip;
              import flash.display.Sprite;
              import flash.display.StageAlign;
              import flash.display.StageScaleMode;
              import flash.events.Event;
              import flash.events.ProgressEvent;
              import flash.net.URLRequest;
              import flash.system.ApplicationDomain;
              import flash.system.LoaderContext;
              public class MobileAppTest extends Sprite
      private const path:String = "https://s3.amazonaws.com/wowzers-dev/mobile/client/";
                        private var files:Array = ["art/common/LoadingScreen.swf"];
                        public function MobileAppTest()
                                  super();
                                  stage.align = StageAlign.TOP_LEFT;
                                  stage.scaleMode = StageScaleMode.NO_SCALE;
                                  loadNext();
                        private function loadNext():void {
                                  var loader:Loader = new Loader();
                                  var req:URLRequest = new URLRequest(path + files[0]);
      trace("\n>>> loading: " + req.url);
                                  loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onLoadProgress);
                                  loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadComplete);
                                  var context:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
                                  loader.load(req, context);
                        private function onLoadProgress(evt:ProgressEvent):void {
                                  trace(evt.bytesLoaded + " out of " + evt.bytesTotal);
                        private function onLoadComplete(evt:Event):void {
                                  trace("<<< onLoadComplete " + evt.currentTarget.contentType);
                                  trace("=== currentLabels: " + evt.currentTarget.content.currentLabels);
    Am I doing something wrong?  Is this a known issue that will be fixed?
    So far I have tested this on an iPad 3 with iOS 6.1.3.
    Thank you.

    I was having the same problem using CS5.5 and AIR 3.7.  For me, the solution was to put a label in my main timeline and then call this.currentLabels in the main .as class.
    My app was crashing every time I called the "currentLabels" property from a custom class controlling a remote SWF.  I thought that it might have been a problem with the FrameLabel class not being imported at compile-time, so I tried placing a flash.display.FrameLabel reference in the main class.  This did not fix the problem.  Then I tried making an arbitrary call to the currentLabels property of my main timeline (all you need to do is reference it) and everything else worked fine.
    *edit*
    After a little further testing, it seems that you can place the reference anywhere (I put it in my custom class by calling theRemoteSWF.parent.currentLabels), but that you must have a label somewhere in the main timeline and call the "currentLabels" property of your main SWF before referencing the currentLabels of a child SWF

  • Loading External SWF - Problem

    Hi,
    Using MovieClipLoader I want to load external SWFs - and it
    is working fine
    if external swf doesn't have anything outside it's stage,
    otherwise it shows
    everything - that's the problem.
    For example, external swf's stage dimensions are 100x150, but
    it has some
    timeline animation (some objects scrolling through the stage,
    some bouncing
    text animation that sometimes goes off-stage, etc..).
    So when I load this external movie (banner.swf), I can see
    all these objects
    that were bouncing outside this 100x150 area (the stage of
    banner). Even
    more - the size of loaded movie is larger than 100x150px
    (because of these
    off-stage objects that are now visible). This way I'm getting
    positioning
    problems, too.
    var mcl:MovieClipLoader = new MovieClipLoader();
    mcl.loadClip("banner.swf", holder);
    mcl.addListener(listener);
    holder._x = Stage.width/2 - holder._width/2;
    holder._y = Stage.height/2 - holder._height/2;
    Thanks in advance,
    B.

    Hi kglad,
    Does doing that takes only into account width and height of the stage, or also considers off stage items (as in the initial question)?
    I am also looking at this issue and we can't have all the content providers modify their pre-existing flash applications to be displayed in the appropiate scale. We are looking to any of the following:
    find a way to get adobe air/flash to not consider the off stage elements on the width/height we set to the movie.
    find a way to get the stage size from the external movie and use that to auto calculate the resize needed.
    any other alternative that allows to have the same end result, which is loading up the external content at the size we specify and displaying well. We can actually hide content outside the stage, but we still need to know the appropiate scale / size to apply to the movie so what's visible matches the are where we want to show the content.

  • AS3 load external swf problem, please help...

    Hey guys, I am really in need of an answer here. I would tremendously grateful if someone has the answer. I'll keep it simple and right to the point:
    1. I have created "index.swf" in AS3. Has it's own "MainClass" class.
    2. I created "holder.swf" which is the main landing page. Has 2 buttons, for the viewer to load the site in fullscreen or standard.
    3. In the timeline of "holder.swf" I have created 2 frames, 1st frame containing the buttons, second frame containing the AS3 external swf loader script.
    It does not seem to want to load my "index.swf".
    I have tested a million different ways, it load other swf's just fine, AS2 and AS3, but for some strange reason it just will NOT load "index.swf".
    This is driving me crazy, I have a feeling it has something to do with a class conflict. I have tried (import MainClass;) in the first frame of "holder.swf" and no luck.
    PLEASE GUYS, LET ME KNOW IF YOU KNOW THE ANSWER!
    THANK YOU SO MUCHO.
    Michael

    Hey kglad,
    Thanks for the quick reply!
    Well here is the problem... With the exception of a few things I need to update, as well as implementing some better preloaders etc... the site is running alright...
    About a week ago I decided that I wanted to site to start with the above landing page. A simple "holder.swf" which would give the viewer something to look at before entering the site... (ideally I want to find a script that will begin loading "index.swf" while the viewer is still on "holder.swf", but I'll figure that out later).
    Anyhow, I created "holder.swf" as I have many times before, and for some reason it does not seem to want to load "index.swf" into the second frame when instructed to do so... does that make sense?
    So... ideally I would like the site to start on the above graphic, then once the button is clicked, "index.swf" opens up...
    It's driving me crazy, because my code works on other swf's I've tested it with, just not with index.swf, which leads me to believe there is something in the MainClass.as file which is causing it not to load...
    What are your thoughts?
    Oh, and many thanks again!!!
    M

  • AS3 - Load an SWF (problem)

    Hello,
    I have to make some kind of an portfolio where I have to load my .swf's and .f4v's I made past year.
    My code doesn't make me having errors.
    Code:
    var request:URLRequest = new URLRequest("bronbestanden/A_AndriessenB_Fotoalbum.swf");
    var laden:Loader = new Loader();
    laden.scaleX = laden.scaleY = 0.5;
    laden.x = 100;
    laden.y = 190;
    laden.load(request);
    addChild(laden);
    But when I click the button he loads my .swf's but plays it
    very very slow. The fps of both my portfolio and swf is exactly the same. I already put the code
    to load my .swf in another new file and there it works very fluently. All my other types of videos (.flv's and .f4v's) also
    run without any problem (even though my .f4v-files are bigger than my .swf's) Can anyone help me?
    Thanks

    // add some preloader entertainment display
    var request:URLRequest = new URLRequest("bronbestanden/A_AndriessenB_Fotoalbum.swf");
    var laden:Loader = new Loader();
    laden.scaleX = laden.scaleY = 0.5;
    laden.x = 100;
    laden.y = 190;
    laden.contentLoaderInfo.addEventListener(Event.COMPLETE.loadCompleteF);
    laden.load(request);
    function loadCompleteF(e:Event):void{
    // remove your preloader display
    addChild(laden);
    MovieClip(laden.content).gotoAndPlay(1);

  • Loading external swf problems

    iv recently started learning as3 and have made a flash site
    using it which all works fine. iv used an online tutorial to help
    create a dynamic slideshow/photo gallery which again works fine.
    But when i try to load the external slideshow/gallery into a
    movieclip it dosnt work and i get this error:
    TypeError: Error #1009: Cannot access a property or method of a
    null object reference.
    im pretty sure its because the code used in the main flash
    file is on the timeline and the code in the external file to be
    loaded in is in an external as file.
    any suggestions on a way around this?
    the code im using to load the external flash file is:
    toload.load(new URLRequest("newfile.swf"));
    photography.buttonThumb.addChild(toload);

    no sorry forgot the 1st line
    var toload =new Loader();
    the loader works fine when loading jpegs and swfs with no
    actionscript

  • Application freezes when loading amCharts-component on AIR 3.9 in iOS devices

    Hello,
    I'm having problems with amCharts component, for it works fine with AIR 3.6 -version, but when I updated AIR SDK to 3.9 it stopped working. When chart should be loaded, application just freezes. It won't work even if chart's dataprovider and series are removed, application freezes everytime when chart should be loaded. Therefore problem can't be that amCharts component was too "heavy". In Android devices amCharts works fine with AIR 3.9, so this problem appears only in iOS.
    Hopefully someone finds out what causes the problem.

    Hi,
    Could you please open a new bug report on this over at https://bugbase.adobe.com?  When adding the bug, please include your sample code or a sample application so we can quickly test this out internally.
    Once added, please post back with the URL so that others effected can add their comments and votes.  I'll also give the mobile team a heads up. 
    Thanks
    -Bo

  • Flex 4.6 IOS Mobile packager - can it load and play swf's dynamically at run time?

    I have an app that shows the viewer slides in a SWFLoader object.  I load the slides at runtime from a remote server.  When I package the app for IOS using 4.6 the swf slides load and play fine in the IOS emulator on the PC.  They don't load, however, when I deploy to a provisioned iPad. 
    My guess is that IOS can handle doesn't know what to do with dynamically loaded swf data.  I'm not positive though because it plays in the emulator.  Is that emulator truly emulating xcode or is it running flash?
    Note:  this same app plays an rtmp flash stream just fine even on the device itself.  Just can't handle a dynamically loaded swf.

    The correct answer to this question appears to be that Apple's terms of service *do not* prohibit the loading of swf's on IOS from remote servers dynamically at runtime.  They prohibit the loading of swf's that *contain executable ActionScript code*. 
    I loaded a PPT into Adobe Connect and then retrieved the resultant slide swf's from the Connect server.  I took these swf's and loaded them into my iPad app, dynamically at runtime, from a remote server.  The swf's loaded and animations played.  I made no changes to my code.  I'm just using a plain old SWFLoader object.
    Loading swf's dynamically at runtime from remote servers into IOS works - if you make the swf's right.  How to do that I'm not sure.

  • Loading multiple swfs using air 3.6 for ios

    Adobe, can you please provide us with the code to load multiple swf files for ios. Please provide examples. The code below loads multiple swfs, but the swfs stall, so this does not seem to be a solution.
    Code description: A flash file made up of 4 frames with forward and back buttons that navigate from frame to frame. The code loads three different swf files in frames 2, 3 and 4.
    Frame 1:
    var myLoader:Loader;
    var loaderContext:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
    if(myLoader == null){myLoader = new Loader(); addChild(myLoader); }
    else {myLoader.unload();}
    Frame 2:
    myLoader.unload();
    myLoader.load(new URLRequest("file1.swf"),loaderContext);
    Frame 3:
    myLoader.unload();
    myLoader.load(new URLRequest("file2.swf"),loaderContext);
    Frame 4:
    myLoader.unload();
    myLoader.load(new URLRequest("file3.swf"),loaderContext);

    I've just tried loading, unloading and then loading again same SWF with 2 library objects linked for AS3 export. It worked both on simulator and on device in debug mode. When I look inside swf it does contain AS3 code.
    So is my swf a pure asset SWF? Or Intellij Idea 12 that I'm using does stripping automatically?
    And then I've read your comment at http://forums.adobe.com/message/5217325#5217325 and run 'swfdump' utility on my .swf file. Looks like there's no ABC2 code, that's why app was able to load, unload and load again the same swf.
    public dynamic class net.games.bg extends flash.display.MovieClip
      native public function bg():*;
      native public var one:flash.display.MovieClip;
      native public var three:flash.display.MovieClip;
      native public var two:flash.display.MovieClip;
    public dynamic class net.games.z1 extends flash.display.MovieClip
      native public function z1():*;
    I can access objects as instances through root  or as objects through getDefinition.
    private var aLoader : Loader;
    private function init():void
                load1();
            private function load1():void
                aLoader   = new Loader();
                var url:URLRequest = new URLRequest("levels/expirementlevel1.swf");
                var loaderContext:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
                aLoader.load(url, loaderContext); // load the SWF file
                aLoader.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, handleSWFLoadComplete1, false, 0, true);
            private function handleSWFLoadComplete1(e:flash.events.Event):void {
                var levelObjectsMC:flash.display.MovieClip = e.target.loader.content;
                for (var i:uint = 0; i < levelObjectsMC.numChildren; i++){
                    trace ('\t|\t ' +i+'.\t name:' + levelObjectsMC.getChildAt(i).name + '\t type:' + typeof (levelObjectsMC.getChildAt(i))+ '\t' + levelObjectsMC.getChildAt(i).x);
                var LibraryClass:Class = e.target.applicationDomain.getDefinition("net.games.z1") as Class;
                var myLibraryObject:flash.display.MovieClip = new LibraryClass as flash.display.MovieClip;
                trace(' load 1 ' + myLibraryObject);
                aLoader.unload();
                load2();
                //addChild(levelObjectsMC);
            private function load2():void
                aLoader   = new Loader();
                var url:URLRequest = new URLRequest("levels/expirementlevel1.swf");
                var loaderContext:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
                aLoader.load(url, loaderContext); // load the SWF file
                aLoader.contentLoaderInfo.addEventListener(flash.events.Event.COMPLETE, handleSWFLoadComplete2, false, 0, true);
            private function handleSWFLoadComplete2(e:flash.events.Event):void {
                var levelObjectsMC:flash.display.MovieClip = e.target.loader.content;
                for (var i:uint = 0; i < levelObjectsMC.numChildren; i++){
                    trace ('\t|\t ' +i+'.\t name:' + levelObjectsMC.getChildAt(i).name + '\t type:' + typeof (levelObjectsMC.getChildAt(i))+ '\t' + levelObjectsMC.getChildAt(i).x);
                var LibraryClass:Class = e.target.applicationDomain.getDefinition("net.games.z1") as Class;
                var myLibraryObject:flash.display.MovieClip = new LibraryClass as flash.display.MovieClip;
                trace('load 2 x ' + myLibraryObject.x);
                aLoader.unload();

  • Loading local swf files from Application Dir (ios)

    Hi Guys,
    I would like to load additional local swf files to my ios release build but I am confused a little bit because of the new API changes.
    As far as I know at the moment (from Air 3.7 or newer) it is allowed to load local swf files that contains compiled actionscript both from local folder and from a predefined remote host as well. 
    My assumption based on this article:
    http://blogs.adobe.com/airodynamics/2013/03/08/external-hosting-of-secondary-swfs-for-air- apps-on-ios/
    I created the text file to include all of my local swf file names and created the following node in the application.xml:
    <iPhone>
           <externalSwfs>assets/SampleSWFInfoFile.txt</externalSwfs>
    </iPhone>
    When I compile the release build (ipa) using command line adt, it converts all of my local swfs into the stripped swfs which is perfect, but even though I include all the swfs in the compiler command, it puts only the SampleSWFInfoFile.txt file into the assets folder in the ipa but not the swf files.
    I assume, it thinks I will load these files from an external host, but I would like to include them in the app itself.
    I tried to copy the stripped swf files from the externalStrippedSwfs folder and comment the <externalSwfs>assets/SampleSWFInfoFile.txt</externalSwfs> node in the application.xml and compile it and this way it puts the swf files into the ipa, but when I try to install and launch the app it crashes and when I test it using Flash Builder it shows an error message
    "VerifyError: Error #1042: Not an ABC file."
    Do any of you guys know the  solution for this problem?
    Thank you for your help in advance!

    You're publishing in AOT mode as long as you use one of these:
    The AIR Developer Tool or ADT has targets that lets you package apps either for the AOT mode or Interpreter mode. The targets for packaging in AOT mode are ipa-app-store, ipa-ad-hoc, ipa-test and ipa-debug.
    Flash Pro CS6 and Flash Builder automate this process pretty well so it's invisible but the SWF loads and executes code just fine for me when directly published.
    If I take it to command line I can use this to compile successfully (iPad test app):
    adt -package -target ipa-ad-hoc -storetype pkcs12 -keystore my.p12 -provisioning-profile my.mobileprovision NameOfApp.ipa NameOfApp-app.xml NameOfApp.swf iTunesArtwork iTunesArtwork@2x AppIconsForPublish swfs/swfs.txt swfs/GenerateText.swf
    I at least include generic icons in there but I made a 'swfs' folder and placed 'swfs.txt' and 'GenerateText.swf' in there. The SWF uses code to randomly generate text and changes every second using a Timer. I load it in using the same code you do with the ApplicationDomain.currentDomain context. I see the SWF appear and text start randomly changing.
    As I compile there's a folder generated called 'externalStrippedSwfs' with the stripped SWF in there.
    One thing to note is I do not supply <externalSwfs>swfs/swfs.txt</externalSwfs> in my iPhone settings. If I do that it doesn't work. I supply the path to the text file containing the SWF I want to be stripped to adt itself along with the SWFs I want stripped and it takes care of the rest.

  • Air 2.7, ios, rtmfp bug - known problem?

    Hello,
    i have a little Video & Audio Broadcaster and Receiver Application, using rtmfp and cirrus.
    As an Example, following Scenario:
    1. Broadcaster: AIR Debug Launcher on my Laptop
    2. Receiver: IPad App 
    => Everything works as expected, the Broadcaster Application on my Laptop broadcast its live Audio/Video Stream, the Ipad App can receive it.
    Now comes the strange part. When i switch the IPad App to the Broadcaster and my Laptop Air App to the Receiver, it does not work anymore; so the scenario is as follows: 
    1. Broadcaster: IPad App
    2. Receiver: AIR Debug Launcher on my Laptop 
    In this Scenario the Receiver NetStream gets no NetStatusEvent.NET_STATUS after tring to play the Stream, the Broadcaster's NetStream fires no onPeerConnect Event. 
    This renders my app pretty much useless and iam interested to hear if this is a known bug or if iam missing something?

    Hi Chris,
    could you be so kind and forward this code here:
    http://codetidy.com/792
    to the ios team? this is a very simple script which sends and receives a video stream via rtmfp.
    it works on web, in the air launcher but not on ios after packaging.
    it worked on ios when i used rtmp via red 5, but with rtmfp it does not, so it might be an ios / rtmfp related bug.
    thanks for your help, i'll fill a bug request, as you described.

  • [advance question] loading a swf in adobe Air, which loads an image with "componentloader"

    Good evening all,
    I think this is a complex issue.
    I have adobe air application which loads a SWF I made.
    Inside this SWF I have used the "component LOADER" to load
    something with "ContentPath=image.jpg" for example.
    But the swf loaded in the Adobe air works, but does not load
    the "ContentPath image"...
    (it does load and display it when it this swf is run outside
    adobe Air)
    I need it to be dynamic like this, so if eventually I Include
    it in the package it won't help much...
    I just intend to replace an image background from this loaded
    swf file!
    Thanks!
    Edit:
    At this time of the editing, I fear and realize
    something....I have been using Actionscript2 for the .SWF file,
    could it be why it does not works???
    If its problematic, is there a simple way like telling it to
    read actionscript2, rather than transforming everything??
    edit2:
    I found this on the official AIR FAQ:
    Will Flash version 8 and below SWF files run in Adobe AIR?
    Yes. However, the Adobe AIR APIs are only exposed to Flash
    content via ActionScript 3 / AVM2, and thus Flash 8 / AVM1 SWFs
    will be able to run, but they will not have direct access to the
    Adobe AIR APIs.
    source:
    source
    faq Adobe
    it seems it should works!!??
    Edit3:
    nope I confirm at least some code made in Actionscript2
    works.
    I am sure this code needed to be changed for working in
    actionscript3, so "actionscript2" code works in Adobe Air.
    The problem of not loading my image must come from something
    else!!??

    Good Morning all!
    Hilarious....
    I tried so much to think maybe Adobe Air does not like a SWF
    using actionscript2, or it does not load any "external image from a
    swf", etc...
    None of that!
    I just in FLASH in the ComponentLoader....I did put simply
    the ContentPath at "myimage.jpg"....
    Of course I had to use the absolute path like
    "c:\\myfolder\\myimage.jpg"
    Of course aswell it works now!!!

  • Loading external swf fonts created with fontswf, loaded with a Loader, compatible with iOS

    Let me immediately start out by saying that I do in fact have a current working solution for using embedded fonts, generated by fontswf and working in an AIR ActionScript mobile application, and also currently working fine with iOS.
    My current app needs CFF fonts, so I currently use the fontswf tool to pre-generate the .swfs using:
    fontswf -4 -a [SomeAlias] -o [SomeFont.swf] [SomeFont.ttf]
    and then I am currently embedding them in my app source code .as for compilation using:
    [Embed(source="/swf/SomeFont.swf", symbol="SomeAlias")]
    public static var SomeFontClass:Class;
    I then have no problem registering them using Font.registerFont(SomeFontClass) and everything works fine.
    However, I would prefer to take the use of these swf fonts one step further and load them dynamically using a Loader so that I do not have to take the hit of having multiple CFF font swfs embedded in the main compiled SWF and so that I could even load an unknown future set of fonts without having to supply them as part of the app build.
    Now I have seen and read many blogs and tutorials where people have exported font swf from Flash Builder where you add an explicit 'Class' name or even made standalone .as static files compiled into standalone swfs only including the two lines:
    [Embed(source="/swf/SomeFont.swf", symbol="SomeAlias")]
    public static var SomeFontClass:Class;
    so that you also have a 'Class' involved. Then people use some form of appropriate applicationDomain.getDefinition("className") as Class
    to pull out the class for the font registration.
    My question is, how does one perform the same font loading and registration of fonts using a Loader only loading the .swfs produced directly from fontswf?
    It seems only a DefineFont4 is tagged in the swf, there doesn't seem to be a 'Class' per se to call on.
    More importantly, iOS apps cannot load external swfs with code in them, so my understanding is any extra wrapped swf that would contain a custom Class technique would fail the iOS requirement of only having one main SWF with any ActionScript compiled code.
    Is there an alternative to the 'Class' technique by grabbing the DefineFont4 tagged resource from the swf and instantiating a proper working Font class from that? One that would still be compatible with the restrictions placed on AIR mobile apps running on iOS?

    Ironically, just after posting this, Adobe released AIR 3.5 beta onto labs, and added multiple SWF support for iOS.
    While this new support makes it easier to manage your content across multiple SWFs and technically allows you to use the class based separate .swfs for each font if desired, the system still requires that all these SWFs be present at compile time when making the final app .ipa for iOS.
    So this still doesn't solve trying to load fonts after the app is already built. For example, as part of a downloaded in-app purchase mechanism.

  • Loading external swf in AIR

    In AS3 this would load loadme.swf into my holding mc
    (contentmc) provided both the holding swf and loadme.swf are in the
    same directory
    var loaderMC:Loader=new Loader();
    loaderMC.load(new URLRequest("loadme.swf"));
    contentmc.addChild(loaderMC);
    But it does not work in AIR. Any reason why? what am i
    missing out or is there a new way to do it?
    thanks
    Murtaza Topiwalla

    What if you don't want the external swf to be packaged in the
    air file? I want the air file to pull the swf from the http, as it
    does with jpegs:
    Yay, this displays the jpeg
    loaderMC.load(new URLRequest("
    http://mywebsite.com/loadme.jpg"));
    Same code but it doesn't display the swf:
    loaderMC.load(new URLRequest("
    http://mywebsite.com/loadme.swf"));

  • How about the performance of AIR 2.6 in iOS/Android?

    Does anyone test the performance improvement of AIR 2.6 in iOS/Android? Could you share the result? It's pretty good if you can release your testing code. It gives me a headache to update my AIR 2.5 in Flash CS5.

    Today, I created the AIR 2.6 environment to package my swf with Flash CS5. It gave me a big surprise, the performance became worse. Oh my god, who can save me?
    Command
    "C:\Program Files (x86)\Java\jre6\bin\java" -jar "I:\Software\Adobe\AdobeAIRSDK2.6\lib\adt.jar" -package -target ipa-ad-hoc -storetype pkcs12 -keystore "F:\Work\Projects\Flash\packages\iOS_Certification\p12.p12" -storepass 1234 -provisioning-profile "F:\Work\Projects\Flash\packages\iOS_Certification\mobileprovision.mobileprovision" A.ipa A-app.xml A.swf icon29.png icon57.png icon512.png icon48_iPad.png icon72_iPad.png
    A-app.xml
      <initialWindow>
        <content>A.swf</content>
        <systemChrome>standard</systemChrome>
        <transparent>false</transparent>
        <visible>true</visible>
        <fullScreen>false</fullScreen>
        <aspectRatio>landscape</aspectRatio>
        <renderMode>gpu</renderMode>
        <autoOrients>false</autoOrients>
      </initialWindow>
      <icon>
    ...  </icon>
      <customUpdateUI>false</customUpdateUI>
      <allowBrowserInvocation>false</allowBrowserInvocation>
      <iPhone>
        <InfoAdditions>
          <![CDATA[<key>UIDeviceFamily</key><array><string>2</string></array>]]>
        </InfoAdditions>
      </iPhone>

Maybe you are looking for

  • Totals not working correctly

    I am trying to create a calculation by evaluating a set of records and including only those that meet the criteria in the total. The calculation seems to work correctly on the individual records, but the total does not... it seems to be doubling the

  • Missing printing profiles

    i have a dell xps system with Vista operating system and Lightroom V1.3.1. Windows explorer list all my printer profiles however, in Lightroom under color management, profile, other, not all the profiles are shown. How do i get Lightroom to list all

  • How do you submit technology ideas for Microsoft to buy?

    Hi, Chris here. Some of you already know me. I'm a MS beta tester and technogeek. As I'm sure you have too, I've come up with technology ideas that I and those around me thought were truly great, but I struggled with getting my ideas 'out there' and

  • MOST crucial decision - please please help me...!!!!!!

    please please read the whole post....please have patience.... WHAT I WANT: To be able to record lectures deli'vered by my professor so that I can later on listen it while commuting and also make notes. WHY I WANT: Because our professor deli'vers lect

  • Ipod Nano (3rd Gen) Contstantly needing reset to turn on

    This is my first Ipod and I am very disappointed in that I constantly have to reset it to turn it on. It has charge and can take numerous attempts to turn on by resetting. Am I doing something wrong - or do I need to send it back? I am resetting it b