Is faster than the local AIR IOS app remote SWF SWF because I can ' t use the unloading code.

Are faster than the local SWF on AIR IOS app remote SWF because I can't use the code to unload on IOS of AIR.

my local code:

Stop();

import flash.net.URLRequest;

import flash.system.ApplicationDomain;

import flash.system.LoaderContext;

import flash.filesystem.File;

import flash.filesystem.FileMode;

import flash.filesystem.FileStream

go_level_2.addEventListener (MouseEvent.Click, Level_2);

function level_2(event:MouseEvent) {}

var loader2:Loader = new Loader();

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

var file2:File = File.applicationDirectory.resolvePath ("level2.swf");

loader2. Load (new URLRequest (file2.url), loaderContext2);

addChild (loader2);

}

Because it works for me, because I can't unload the SWF app file en becomes slow, I'll put the SWf file "s on a remote location.

But I can't imagine what is happening when I loaded the SWF file remotely. It remains on the server, or it remains on my application when I unloaded it, and the app gets also larger. I hope you can help me because I went on the internet for a week and do not now how to go further.

I had a similar problem, but not on iOS.

Maybe my solution might work for you too, however.

The problem was this line:

new LoaderContext (false, ApplicationDomain.currentDomain);

Do not reuse the same field of application, or you will never be able to get rid definitions and thus the SWF loaded.

Instead, make a new child application domain for the current domain, keep track of it and it has as well as the rest of the SWF file when you are finished.

Example:

var loader2:Loader = new Loader();

var appDomain2:ApplicationDomain = new ApplicationDomain (ApplicationDomain.currentDomain);

var loaderContext2:LoaderContext = new LoaderContext (false, appDomain2);

var file2:File = File.applicationDirectory.resolvePath ("level2.swf");

loader2. Load (new URLRequest (file2.url), loaderContext2);

addChild (loader2);

Then

function finishLevel2(event:Event):void

{

var loader2:Loader;

loader2 = Event.Target.Loader;
loader2.parent.removeChild (loader2);

loader2.unloadAndStop ();

appDomain2 = null;

}

Note that the definitions of the classes of the loaded SWF file will be available in the new application domain.

Tags: Adobe Animate

Similar Questions

  • Clean install of Windows a lot faster than the preinstalled system?

    My satallite comes with windows 64-bit installed.
    Since a lot of people suggested, here and elsehwere, a clean installation making consierably faster than the pre-installed windows (all bloated and unwanted software uninstalled with the uninstall program).

    Although fresh installtion was faster without drivers and programs, it has become more or less the same after installation of all software, etc. (perhaps a difference of 2 to 4% in the use of RAM) (over 4 GB)

    Is this normal or do others go much faster on any new install, for me, this effort has proved there is not a lot of use to do a clean install to drive retail.

    Ideas, wiers and feed back?

    See you soon

    Many pre-installed utilities are required for correct functionality and it can be a headache get these functions to work after installing a street copy of Windows.

    You will find that when you install Antivirus software on a street copy of Windows, it will happen similar to the pre-installed Windows installation. So if you want that the installation of Windows pre-installed perform better, uninstall the Antivirus should do the trick.

  • Is faster than the HP Mini 110 Microsoft Surface?

    My HP Mini 110 series netbook is SLOW and it is 2 years old and the Microsoft Surface seems newer, but I want to know if the Microsoft Surface would go faster (for example, loading programs and files, etc.)

    The HP Mini 110 has an Intel Atom processor and the Microsoft Surface has an ARM processor.

    The Microsoft Surface would be faster than the HP Mini 110?

    It must be such that it is a newer CPU, but until the Surface is in the hands of consumers, we do not have really the real world benchmarks. I am 100% sure that whatever that is released by Microsoft or others would show much faster and better in all aspects. But these are marketing people making conversation, not technicians running the real numbers.

  • Why disable SuperFetch on ssd, if the RAM is much faster than the ssd?

    Directed by Microsoft that SuperFetch and PreFetch must be disabled, if the OS is installed on an ssd, in accordance with article http://support.microsoft.com/kb/2727880. But SuperFetch is used for loading the data components of applications, which were very often used for RAM. Although the ssd is faster that a hard drive is not faster than the RAM. So, I do not understand why Microsoft suggest disabling this feature. The only reason why I want to understand, it's because of a limited RAM. If the RAM is sufficient beyond 6 GB, if we disable SuperFetch, then the boot time and increase the loading time of most used applications. I miss something here?

    The other question is about PreFetch. I feel, maybe wrong, it does the same thing with SuperFetch, with one major difference. It loads all the information data on the ssd or hard drive, instead of the RAM, in order to accelerate the launch of applications and time when the OS is installed on a hard drive to boot. If I'm right, let's disable the PreFetch it stores information for one ssd or hdd, while SuperFetch stores data of RAM information, which is much faster and so it must be enabled if there is a sufficient RAM.

    I look forward to reading the notice of a Microsoft software engineer.

    Hi Leventis,

    Prefetch copies frequently accessed files together into a contiguous on the disk area so that they can be located and loaded more quickly. That it takes a lot of old drives to recover data faster.

    SuperFetch predict what applications you run next and preload all the necessary data in the memory. She has also done that with startup files. And for all the three days he sends a defragmentation command to the OS drive that will cause problems in the SSD drives.

    In traditional hard drives (HDD) data are scattered throughout the disk, so that the operating system for access, it will take more time. It is suggested to perform a disk defragmentation. But storage technology is different in SSD, where, it records the data dynamically and it recovers more quickly. Who will be low down the burden on the RAM and the RAM can be used for uses such as for the opening of the games graphics high-end, etc..

    Hope this information is useful.

  • Why preview is rendered faster than the actual speed of my clips?

    When I create a new project, the overview of my project "plays" faster than the speed of the video. As it is fast forward. Each of the speed of clips are 100%.

    I tried to uninstall and reinstall the first but still have the same problem.

    Any idea? Thank you

    sample rate is 48 kHz

    Some people set their entry to 'none', but I do not see as to how that is going to change anything

  • Devices on all my iCloud preferences says "this device can be used to receive codes of audit ID Apple." How can I change this if at least one, if not several, can receive the verification code?

    Devices on all my iCloud preferences says "this device can be used to receive codes of audit ID Apple." How can I change this if at least one, if not several, can receive the verification code?

    Try to go here and see if you can add them to your Apple ID.

  • AIR iOS app - how much memory consumption, it's too?

    Hi all

    I have an app focused on Flex AIR that works very well on Android.

    IOS (iPhone 4), it freezes after it worked for a while, and I suspect that the problem is that the application consumes too much memory.

    I'm looking at System.totalMemoryNumber, and it is the statement that the application uses between 17 and 23 MB right until it freezes.

    Is this a lot for an iOS app?

    Is there a better way for me to review/research/diagnose this? I did a lot of research and it does not appear that AIR apps get no warning IOS memory becomes low.

    Thanks in advance!

    Douglas

    Hi all

    I answer at least a part of my own question...

    I created a test application that has added 10K characters in a string on every enterFrame, then he ran until it crashed. He always seems to get up to about 175 MB (as reported by System.totalMemoryNumber) before it crashes.

    This has happened with and without several other applications running in the background.

    As mentioned above, it is on an iPhone 4.

    It seems that my current problem is not caused by excessive memory consumption.

    Douglas

  • AIR iOS app fails download to Apple (iTunes Connect)

    I tried to download my iOS app on iTunes Connect via the Application Loader, but it fails every time. I get the following errors;

    «Cannot run the lipo command:...» Impossible to map an input... file ' and 'Application does not codesign verification. "

    In my view, the second error is due to the first, but I'm not sure. I've been browsing the web solutions and only found this thread here, I have tried everything that said it, but nothing helped.

    Replacement of my game with an empty FLA does not seem to work either.

    I'm on the side of the latter, usually it is a question of dialogue. How developed your CERT and have you followed the order specifically in my list in this post? Often people use old CERT but create a new ID app and you wait for the old CERT to work.

    There has been other discussions on additional "files" that Flash Pro inserts in IPAs (disguised .zips). Because Flash Pro publish in a folder that is not built specifically for this generation, people sometimes copy additional files to this path. These files can 'automatically' and accidentally be added to the IPA without the willing author only. You should check what files are being packaged with your IPA to check there is not very undesirable.

    You use flash CS5.5 or CS6, and which version of AIR you are superimposed to?

  • Sending Tweets via Adobe AIR iOS Apps

    Heya everyone.

    Is it possible that I can implement a tweet function in iOS app AIR? I'm currently he developed in Flash Professional Actionscript 3. I understand that there is a method to do it in Flex, but I have no knowledge in this area.

    Thank you .

    I used the files of source tweetr for a web application.

    for an application installed (like air for iOS), you shouldn't have problems cross-domain.  you test on an iDevice (you should be) or a simulator on a laptop (where you'll cross-domain issues)?

  • R7000 Nighthawk Wired is faster than the wireless

    I currently use a Nighthawk R7000 and after the speed test internet using speedtest.net, I found that a desktop computer that is connected directly with ethernet is more than 100 Mbps faster than a wireless laptop which is the only room away from the router (wired office gets 140 ~-~ 160 Mbit/s, while the laptop is ~ 30-40 ~ Mbps). Any help would be great.

    Thanks to all who tried to help, but he had a friend IT of my father who came and said: it's a certain chip (or something of the kind) in my computer that was wrong, so we got a Linksys adapter Max - Stream AC600 WiFi Micro USB. I can now get 90 Mbits/s download. Thanks again for everyone's help.

  • What can I do if the script runs faster than the network?

    I wrote a script between applications moving to InDesign, where he begins to AppleScript, to Photoshop, which AppleScript runs a JavaScript script to perform various tasks.

    It works beautifully on my laptop at home where I do my development. Yesterday, using me as a Guinea pig, I tried it in the office.

    On the third round, I was horrified to see the ExtendScript Toolkit pop up with an error message (about as welcome to see an AppleScript script, asking the user to open the Script Editor and fix a script).

    The error message was that app.bringToFront (); was not a valid function.

    This was the case in InDesign, which has a different activation function, and I realized that, even if my AppleScript called Photoshop activate, I was still in InDesign.

    The app.bringToFront JavaScript was so called because I had joined my code in the model of Tranberry.

    So I pressed the button stop on ExtendScript, returned to InDesign and represented the script. This time he worked as usual.

    Occasionally on our network we spend some time beachball - watch as a communication happens in the background. So I guess the time wherever the error was thrown was on one of these downturns in the network.

    The passage of InDesign, Photoshop is not happening pretty fast, but the script has run and has issued an order Photoshop JavaScript while I was still in InDesign.

    In AppleScript this unhappy communication with users can be avoided using blocks '... try error'.

    Is there an equivalent of the error handling in JavaScript that would allow me to avoid being tossed in the ExtendScript Toolkit and give them a friendly message to apologize, explaining what had happened and inviting them to try again?

    JavaScript has try/catch blocks

    try {}

    app.bringToFront ();

    } catch (e) {}

    error handling code

    }

    Or you might be able to use an if statement

    If (app == 'photoshop') {}

    app.bringToFront ();

    } else {}

    app handle not photoshop

    }

  • In addition to making video is the most powerful 60 d or faster than the 50 d.

    I have a 50 d is there one reason other than the ability to make the video to purchase a 60 d.

    Canon made a large step backward with the 60 d, I agree with other posters.

    The articulated screen is nice for video, but really not so valuable to the shooting yet. In fact, I consider the rebel T5i to be upper-middle to the 60 d and which is reflected in the price of these two bodies ($700 for a 60 d) and $850 for a T5i.  Don't 'upgrade' to the 60 d.  The next update of the 60 d is now the 7 d, which is a fine camera.

    Canon seems to work in three directions: creation less expensive cameras full frame (6 d vs 5DIII), the upgrade of the rebels as well as a transfer line which was the 40 d, 50 d to the 7 d product line.  I think the 60 d will be the last body "double-digit".  In fact, the EOS - M has the same internals as the T5i but in a small body.

    For everyone (except the 60 d

  • IOS App Remote - Volume control issues

    OK, so I downloaded the app recently released for Apple TV IOS. Everything works as expected, except the inconsistent Volume control.

    I have two Vizio TVs in my house - E701i-A3 and models M401i-A3. The volume via IOS app works perfectly on my E701i-A3 - pressing iPhone volume buttons triggers change in volume on the soundbar attached to this set.

    No luck with my M401i-A3 not set - by pressing the volume iPhone buttons does cause changes in local ringtone volume iPhone... that tells me something is not right with audio control EAC between ATV4 and the TV set. I do not use soundbar with this set - internal speakers only.

    Both sets are running the latest firmware of Vizio and CEC/audio is enabled. No problem to control the volume or turn the sets/turn off via the remote Siri material.

    Kind of ideas here... anyone have any ideas as to what the problem may be with my Vizio M401i-A3 defined? Someone at - it got IOS volume remote control works with other models of TV?

    Volume control requires HDM - CEC to ensure compatibility. It is quite possible that only one of your TV is compatible.

  • I have an iphone more than 6 s and my app store icon disappeared?  How can I get that back?

    I have an iphone more than 6 s and my app store icon disappeared.  How do restore it or find it?

    Do you have any restriction enabled?  Settings > general > Restrictions.  This may completely hide the App Store.

    Did you use the search function to try to find it?

    Have you tried to reset the homepage presentation of the screen?

  • I purchased the 1 year subscription and installed apps but apps are expired and now I can't use it anymore.

    Hello

    I'm currently resides in the teaching of Taiwan.

    I bought the subscription for 1 year and I've done everything I can to make this work.

    All expired after the evaluation mode, now I can't use them. (I tried all the suggestion provided to the forum that applies to me.)

    I paid my second month of tax and unable to use them.

    I really get annoyed and I need help.

    Hi Kim,

    First of all, disconnect, then back into creative cloud, using adobe id to pay for your subscription.

    https://helpx.Adobe.com/creative-cloud/help/sign-in-out-activate-apps.html

    Then, if you launch any product of CC 2015 and the pop up still shows a trial message window, please check this link for the resolution:

    https://helpx.Adobe.com/manage-account-membership/CC-reverts-to-trial.html

    Thank you

    Yann Arora

Maybe you are looking for

  • Why Firefox 34.0 freezes?

    After Firefox updated to 34.0, it suddenly started freezing at inopportune moments. Not always at the same point on the same web site. I tried Google Chrome on the same sites Firefox would freeze and Chrome worked flawlessly like Internet Explorer 11

  • Startup problems

    Hello I just received a 3440CT which was working fine until I turned off the machine to remove the additional battery. Now, when I turn it back on to I am presented with a scroll bar with a moon and Sun on part and on the other. The bar gets to the e

  • OK, following touchpad problem...

    Model: Acer Aspire E1-731-4699 OS: Windows 7 Ultimate OK...  In a previous discussion, I had help to resolve a question relating to a problem of touchpad on my laptop.  The driver disk that I burned embedded software with which Acer gave me contained

  • Ethernet network Officejet Pro L7555 printer-perfect on one but feel problems with others

    My HP Officejet Pro L7555 is connected to an ethernet network.  Two computers are on the network in the same residential group.  The printer is installed on computer A (I-5 with Win 7 Pro) files downtloaded the HP support assistance.  It is shared wi

  • Need help question gamertag

    I have two gamertags associated with my email * address email is removed from the privacy * .  I want the gamertag sundaze1970 to stay with this mail. The second gamertag is sundaze70. I want this gamertag to be associated with this email address * a