Loading of local swf files with actionscript on air for iOS

I apologize if this seems like it has already been asked, but I'm not sure that having understood the answer, not on the Adobe site, or elsehwere.

I am developing an app for iOS, targeting the last 3.9 SDK

I have a main swf file that loads the local swf files. These local swf files have code actionscript in them. I use Flash Professional CS6.

I publish the application successfully and everything's fine. When I start the app on the iPad, is the main swf and all is well. When I click on the button that loads the local SWF files, nothing happens. They are not loaded.

It seems that this has been answered, but I'm losing my mind. I don't know what the problem is. I know that, in version 3.9 Air, it is now possible to load local SWF files are actionscript.

Air for the Android version works perfectly with these local files loaded and unloaded like a charm.

Any help would be greatly appreciated

from the air, 3.6, you can load swf with actionscript and that run actionscript.  before 3.6 air that was not allowed (without additional work).

but your charger must provide a loadercontext object that uses the current applicationdomain:

var lc:LoaderContext = new LoaderContext(false,ApplicationDomain.currentDomain,null);

yourloader. Load (yourexternalswf.swf, LC);

Tags: Adobe Animate

Similar Questions

  • Load the local swf file with flash

    Dear my friends

    I have a big problem with as3. I have two .swf file: Index.swf - 1 and 2 - page1.swf. Index file has a frame with the following measures:

    var loader_mc:Loader = new Loader();

    addChild (loader_mc) ;// add the loader to the display list
    loader_mc. Load ("d:\\page1.swf"));// loads the file

    I have download the Index file in my site and it can't load page1.swf.

    Please help me.

    Best regards

    For that you must have a web server if you are using Windows you can have IIS or you can choose a free like Apache

    You start the Web server and place the swf file in the wwwroot directory, then you will be able to access using

    http:// page1.swf

  • Loading the local swf files in Dir Application (ios)

    Hi guys,.

    I want to load additional local swf files for my ios Release version but I'm a bit confused because of changes in the API again.

    As far as I know at the moment (3.7 Air or newer), it is permitted to load local swf files containing actionscript compiled from local file and a remote host that is predefined 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 my names swf local and created the next node in the application.xml file:

    < iPhone >

    .

    < externalSwfs > assets/SampleSWFInfoFile.txt < / externalSwfs >

    .

    < / iPhone >

    When I compile the release build (ipa) using the adt command line, it converts all my local SWF files in naked sovereign wealth funds which is perfect, but even if I include all SWFs in the compiler command, it takes only the SampleSWFInfoFile.txt file in the current folder in the ipa, but not swf files.

    I guess, he thinks I have will load these files from an external host, but I want to include them in the application itself.

    I tried to copy files swf stripped in the externalStrippedSwfs folder and comment on the assets/SampleSWFInfoFile.txt < externalSwfs > < / externalSwfs > node application.xml and he and this way, he puts the SWFs in the ipa, but when I try to install and launch the application, it hangs and when I test it using Flash Builder he displays a compilation error message

    «VerifyError: Error #1042: not an ABC file.»

    Anyone of you guys know the solution to this problem?

    Thank you in advance for your help!

    You are the publication in AOT mode as long as you use one of these:

    The AIR Developer Tool ADT a target that allows you to package applications or for the mode of the AOT or interpreter. Targets for packaging in AOT mode are ipa-app-store, ipa-ad-hoc, ipa-test and debugging of the ipa.

    Flash CS6 Pro and Flash Builder automate this process well enough so it's invisible, but the SWF file loads and runs the code very well for me when directly published.

    If I take it on the command line, I can use this to compile successfully (test iPad application):

    ADT-package - target the ipa-ad-hoc - stores pkcs12 - keystore my.p12 - implementation service-profile my.mobileprovision NameOfApp.ipa NameOfApp - app.xml iTunesArtwork SWF/SWF/GenerateText.swf swfs.txt AppIconsForPublish iTunesArtwork@2x NameOfApp.swf

    I include at a minimum the generic icons in there, but I did a "SWF" folder and placed "swfs.txt" and "GenerateText.swf" there. The SWF file uses code to generate random text and change every second using a timer. I load using the same code as you do with the context ApplicationDomain.currentDomain. I see appear the SWF file and text begin to change randomly.

    As I compile there is a generated file called 'externalStrippedSwfs' with the stripped in that SWF.

    One thing to note is that I provide no SWF/swfs.txt in my settings of the iPhone. If I do that it does not. I provide the path to the text file containing the SWF I want be stripped to adt itself as well as funds sovereign I want stripped and he takes care of the rest.

  • Load SWF a remote server with ActionScript in AIR base iOS ipa

    Hi Nimisha1,

    Can you please confirm if I can SWF load of distance on the server with ActionScript in AIR iOS ipa?

    Any help regarding this is appreciated.

    Thank you

    Amandeep Singh

    Hi Steve,.

    You cannot load a swf file on a remote server that contains ActionScript.

    Thank you

    Nimisha

  • How do external swf garbage collector in the Air for iOS?

    My app uses a lot of external SWF (although they are actually included in the application with a file, but they are not shipped) and does not contain any bitmapdata, only of vector graphics. The problem I have is that they seem to never be garbage collected and System. privateMemory continues to increase while the application loads more SWFs.

    As sovereign wealth funds contain vector graphics, I cancel all just all the variables that are now the reference to the SWF file and call it system.GC()... But it doesn't seem to work. What should I do for the garbage collector to clean sovereign wealth funds?

    I use Air for iOS 3.5.0.1060 and ActionScript3.0.


    Ago - I found that they are not always collected garbage when you expect to be. It is not that they are "missed" just AIR decides to wait before waste collection. I found that continuous application to run they will eventually be garbage collected at the same time very unpredictable, as long as you don't have really any remaining reference for them.

  • Static load of the XML file with the list of choices

    Hello

    So let me explain my problem:

    -J' have XML files: (in my < fx:Declaration >)
    < fx:XML id = "flexang" source = "xml/flex - ang.xml" / >
    < fx:XML id = "flexastro" source = "xml/flex - astro.xml" / >
    < fx:XML id = "flexber" source = "xml/flex - ber.xml" / >

    -J' have a list constructed as follows:

    (in my < fx:Declaration >)

    < fx: Model id = "anim" >
    States <>
    < label State = data="animations/flex-ang.swf"/ "Anguinéa" >
    < label State = "Retrograde motion" data="animations/flex-astro.swf"/ >
    < label State = "Rod of Bérard" data="animations/flex-ber.swf"/ >
    < / states >
    < / fx: Model >


    (and then)

    < mx:List id = 'source' width = '100% ', color = 'blue '.
    dataProvider = "{anim.state}" "
    change = "selectedListItem .selectedItem = list (event.currentTarget);" / > "

    (with public var selectedListItem:Object ;)


    My list is designed to load dynamicaly some SWF files

    < mx:SWFLoader id = "animation".
    source = "{selectedListItem.Data}" "
    autoLoad = 'true '.
    Width="100%"/ >

    -But now I want to display the correspondent. So I tried to build the string to the XML of the selectedListItem.data id:

    private void xmlFile(swf:String):String
    {
    var pref:String;
    var tab = swf.split (".", 2);
    Tab = Tab [0]. Split("/",2);
    Pref = tab [1];
    Pref pref =. Split("-"). Join("");
    return of pref;
    }

    This gives me, for example, "flexang" of "animations/flex - ang.swf. But my problem is that I want to put my XML file in my region RichText:

    < s:RichEditableText id = 'codeView' editable = textFlow = "{TextFlowUtil.importFromXML (xmlFile (selectedListItem.data)) 'false'}" / > "

    But xmlFile returns a string! and I don't know how to specify that it is an XML ID.

    I hope I am clear enough.

    Thank you if you try to help me

    Wait, that wasn't fair.  Try:

    TextFlow = "{TextFlowUtil.importFromXML (this [xmlFile (selectedListItem.data)])}

    "

  • Loading the SWF in the AIR for iOS

    Hello

    I'm working on a project in the AIR for iOS.  It's great that we, flash developers are now able to compile our code actionscript for iOS.

    The project that I am working on is divided into different SWF files.  There is a main SWF file that loads the others if necessary.

    Now I can't get a working swf file loading.  The only thing I see is the background of the child being displayed, but then the program freezes and no child actionscript code is exectuted.

    Children SWFs are loaded with a simple charger:

    var loader: Loader = new Loader();

    childLayer.addChild (loader);

    var url: URLRequest = new URLRequest ("child.swf");

    loader.load (url);

    When I post the main swf file I include children swf files in the package.

    Is it really possible to use several swf in your iOS projects?
    And what are the limits for this?

    Thank you.

    greeting,

    Bert

    Yes, it is possible to include any swf in your main application, but your external swf should not contain action script code. Just you can have graphics, symbols, textfield etc on the timeline, but with no timeline script.

  • Download of AIR for IOS via the Application Loader I get the following error - the package does not contain a file Info.plist.

    I publish a .fla in the AIR for IOS.

    I'm in 2014 CC, so first I need to know what AIR I should publish in?

    more recent is AIR 14.0.0.178 for IOS

    IOS deployment type is App Store

    published with no error.

    I see that the following files included app.xml and .swf

    I converted the .ipa to a zip file

    Download through the Application Loader, I get the following error

    The package does not contain a file Info.plist.

    Here is the infoplist for that and convert the .ipa and the info in a zip file?

    I converted the .ipa in a zip file and the intoplist file is NOT THERE how to generate this?

    Any help here?

    the most recent is 16 +, Download Adobe AIR SDK

  • How can I replace my app on iTunes Connect with a new version with air for iOS and app Loader?, how do I replace my app on iTunes Connect with a new version with AIR for iOS and the Application Loader?

    How can I replace my app on iTunes Connect with a new version with air for iOS and app Loader?, how do I replace my app on iTunes Connect with a new version with AIR for iOS and the Application Loader? I got an error that the version number needs to be updated. I created a new record in iTunes Connect with version 1.1 and I took ownership of my current app 1.1 in air for iOS section in Flash.

    Check your descriptor file to make sure that it shows the updated version, too.

  • the .xml file will not hold the new version I am writing on the 'AIR for iOS settings' window on Flash cc 2015

    Hello

    I need to download a new version of my app on iOS, but the .xml file will not hold the new version I am writing on the 'AIR for iOS settings' window on Flash cc 2015. It keeps appearing as:

    <? XML version = "1.0".

    also when I try to download the new .ipa on iTunes Connect with the Application Loader, I get this message:

    "" "ERROR-ITMS-4238:"redundant binary Upload. " «"" "" There is already a binary download with release ' 1.0.0' train ' 1.0.0 ' "at SoftwareAssets/PreReleaseSoftwareAsset»»»

    The problem is not of Application Loader or iTunes Connect as when I open again the .fla and check the window 'AIR for iOS parameters' he continues to display the 1.0 version over and over again. If Flash isn't that save the .xml file.

    And it happens with all my other apps Android or iOS, old and new versions, all appear as <? XML version is "1.0" on the .xml file.

    Is anyone know how can I solve this problem?

    Thank you.

    There are two different values, the build number and version number. If you use a test flight, you can submit an update without obtaining a review by increasing the build number. If you are submitting an update to an application in iTunesConnect, you must increment the version number.

  • LOADING IN ONE air for iOS to the PROJECT WEB PAGE

    Hello!

    I have a complicated problem. I'm trying to find a solution in the world, but I have not found anything.

    I create a project Air for iOS with Flash CS5 and CS6 Flash. I need to find someone who knows how to download a web page within an application.

    I try to explain better. There is still a task for the download, html link, but it just works in a new browser window. That way, whenever I want to see a web page, the application will be close. Is it possible to import the entire web page inside Air for ios project and not in an external window?

    I wish that the result is like this:

    forumADOBE.jpg

    Thank you very much.


    When you change to another frame

    webView.stage = null;

    If you back up the first picture tho

    webView.stage = this.stage;

  • Maximum file size for Adobe air for iOS and Androind update apps

    Hi all

    I'm working on a project that has a few videos I need to group in my mobile application for an Ipad app that I created using Adobe Air for iOS. My question is simple there at - it a maximum file size limit on applications compiled using Adobe air for iOS? And if yes what is it? Any help would be great.

    best regards Mike

    It is not a limit.

  • Cannot load the local xml file from swf

    Hello!

    I have next construction

    (1) in ai3r app to load the SWF by HTMLLoader

    (2) I'm trying to load local xml file in swf. No error and no results.

    Application of AIR-> SWF-> load xml

    When I load xml file site, everything is ok, but when I load just from local file , nothing happens

    and when I load the local file with swf but everything is ok in the browser (firefox)

    for loading xml in a I use the following path: file:///folder_name/xml_file_name.xml

    Help me please!

    Did you write the SWF?  Some sovereign wealth funds will remove errors.

    Why use HTMLLoader?  Who can load it with different security rules.  Content browser often cannot access local content.

  • Is there a way to open a local file not a web file with actionscript 3.0?

    Reason for the request is because I do a Flash of Adobe CS6 multimedia player and I was wondering if there was anyway to make a button to open a local .fla file in a directory with ActionScript 3.0, or if there are other ways I can achieve?

    Thanks, Casey

    with an air application, check the file class.  Otherwise, check the filereference class.

  • Problem loading an external swf file implemented with AS3

    I use Adobe Flash CS3

    At first, I tried

    swf_mc.loadMovie ("location of the //swf file");

    He gave me
    Quote:
    WARNING: 1060: Migration issue: the loadMovie method is no longer supported.
    USE: var l = new Loader(); addChild (l); l.Load (new URLRequest ("your url"));.

Maybe you are looking for