Problem unloading SWF...!

Dear all,

I have 8 swf file to animate, I created a support fla to load all bye a swf, one. It should be in a loop until I close the flash of the licensee. its working fine for 30 min. After 30 min of flash not working not well, animation will slow down. The flash 2 is heavy animation made by as3. but I ran the swf 2 separately its fine, no problem hanging on after 30 min, while loading like swf the question. I'm lording the swf by a duration of time.

Can you pls check my code, the SWF is unloaded correctly or needs something?

My script here...

import flash.display.Loader;
import flash.net.URLRequest;
import flash.utils.Timer;
import flash.events.TimerEvent;

fscommand ("fullscreen", "true");

var swfLoader:Loader = new Loader();
var swfName:Array = new Array ("none", "Technology.swf", "World_map.swf", "Domain.swf", "Consulting.swf", "swf", "BPO.swf", "Alliances.swf", "Allied.swf Tech_Skills.");
var logoChange:Array = new Array (0,0,1,0,0,0,0,0,0);
var swfTiming:Array = new Array (0,31000,45000,110000,13000,15000,15000,25000,19000);
var dummyCount:Number = 1;
var noOfSwf:Number = 8;
var swfRunTime:Number;
var currentSwf = nomswf [dummyCount];
var dummySwfTimer = 0;
var firstTimeSWFremove:Boolean = false;

var timmer:Timer = new Timer (0,0);

timmer.addEventListener (TimerEvent.TIMER, onTimesUp);

function onTimesUp(evt:TimerEvent):void
{
dummySwfTimer = swfTiming [dummyCount];
loadSwf();
}

interval
function setIntervalVar()
{
Timmer.Delay = dummySwfTimer;
Timmer.Start ();
}

function loadSwf()
{
Timmer.Stop ();

If (swfLoader.content! = null)
{
swfLoader.unloadAndStop ();
swfLoader.unload ();
removeChild (swfLoader);
trace ("removed swf");
}

swfLoader.load (new URLRequest (currentSwf));
addChild (swfLoader);

color change of logo
If (logoChange [dummyCount] == 1)
{
MovieClip (parent).logo.gotoAndStop (2);
}
on the other
{
MovieClip (parent).logo.gotoAndStop (1);
}

change the name of the swf;
If (dummyCount! = noOfSwf)
{
dummyCount ++;
currentSwf = nomswf [dummyCount];
}
on the other
{
dummyCount = 1;
currentSwf = nomswf [dummyCount];
}

setIntervalVar();
}

setIntervalVar();

Thank you

Karthikeyan

Welcome

Tags: Adobe Animate

Similar Questions

  • [Unload SWF] appears in a console application and crashes

    Sometimes, "[Unload SWF] path: hand - debug.swf" appears and kills all calls HTTPService that are made.

    The application behaves as such:

    1. about 4 HTTPService calls are made at once, using different instances of HTTPService.
    2. on occasion, in the debugging console a "[Unload SWF]...". ' opens and shows the path to my application. Sometimes it appears once for each Web service call that I do.
    3. each webservice that gets the '[Unload SWF]' will never return and hangs forever.

    Sometimes, I also see a "[SWF] path: hand - debug.swf" message in the console, how Web Services crashes again. If I click on "Cancel" on my application, then try again, they will sometimes work like magic (and I don't receive messages [Unload SWF]).

    Any help would be greatly appreciated!

    -Michael Whitaker: confused;

    Incredible...

    I think I can find the problem and the solution:

    The way I was using the HTTPService component was in a separate category that itself contained the httpservice I was instantiating and calling on a per need basis. The function that I used to call my web service needs of two function pointers accepted (or types of functions) who were called on a ResultEvent or a ResultEvent (from the HTTPService). I used the method call lamba (inline functions). That's what seemed to be the problem. As soon as I moved the lamba outside, in the real functions, functions and just passed their reference thanks to my method, everything worked.

    I've noticed several problems related to the functions of lamba, who are all very unhappy (because I would use more, but they are so buggy):

    1. a function of lamba sometimes has a weird scope. Sometimes call "this.something" fails in the service of lamba, like 'this' is null. Ex:

    class Bob
    {
    public Bob()
    {
    this.addEventListener (Event.ENTER_FRAME, function(e:Event):void {trace ("this:" + this.toString ());}, false, 0, true);
    }
    }

    (Note: it's 1% psudo code (not compiled).) 'this' will sometimes be null (depending on where the lamba is used).

    2. If using the above code, you need to instantiate Bobs several at a time and add them to the displaylist, sometimes only ONE of the instances will actually call their lamba function enterframe. others will not. I don't know why this happens, but I think that multiple instances of the same class by using a function of lamba has tendency to conflict in memory or something. (or the scope of the special lamba).

    3. sometimes, as directed by my problem in this thread, a function of lamba will not even be called. I solved this by pulling on the functions of lamba and placing them in the actual duties, then just casually pointer throughout.

    I guess that the debugger sending [Unload SWF] and the [SWF] messages were just a coincidence (unless they affect somehow lamba functions). I will continue to test this to make sure that the problem has disappeared. If not, I'll probably start a new thread.

    Thanks for your help mike_morearty!

  • problems loading swf to a remote server

    Hi all

    I have problems loading SWF to my remote server of Mr. There is no problem loading all my other SWF files just straight up. I get a message telling me that Dreamweaver is having a problem connecting to the remote server and it times out. I can load up the swf using cpanel. Does anyone have advice helping, what happens if something can be done to address the problem

    Concerning

    Paul

    Hi Paul,.

    Use to troubleshoot Adobe: http://helpx.adobe.com/dreamweaver/kb/troubleshoot-ftp-issues-dreamweaver-cs5.html. (cs5 is similar I think).

    BUT in any case I'm not a friend of a detailed diagnosis. This is one of the reasons why I prefer an external FTP program. The difficulties with which we must fight encourage me in this opinion, especially because we are always looking for experts, we charge a 'jack of all trades '.

    For this reason, for example, manage multiple Web sites or download my files and sometimes the reverse, for a necessary download from my server or use a "sync a whole site", I use FileZilla (cpanel I don't even know). It just seems easy for me to keep track of all transactions accurately and generate or easily reflect the desired tree structure.
    First and foremost, FileZilla has a function (translation of my German FileZilla), called 'compare the list of files. Here it is possible to use the time of size or change file as a criterion. There is also the possibility of 'hide identical files', while only those files that you want to redact remain visible.

    And even if it means that you need to install a new program, I am convinced that there is an advantage. Here is the link to get it and where you can read information on how it works:

    http://FileZilla-project.org/ and http://wiki.filezilla-project.org/Tutorial#Using_the_site_manager

    Mac: Mac OS X
    http://FileZilla-project.org/download.php

    Of course, you should also access data to reach your server.

    Good luck
    Hans-Günter

  • Need HELP loading and unloading SWFs external when the user clicks on the buttons

    Hi everyone, I'm working on a few Web sites at the moment, one for being my online portfolio, as well as my Web site for a product of sleep, that I'm selling.  I have very little experience with AS3, last time I created a Web site that as2 has been used.  I tried a few tutorials online, but nothing performs the work, there is always an error...

    I have an index.swf that loads the default home.swf.   There is also an about.swf, contact.swf, order.swf and testimonials.swf...

    It was a hair pulling 4 days now, not be able to get this working.

    All I need is for the swf external to pull up when you click on the corresponding button, and when the next button is clicked, the current to unload swf and swf to load new file.  It was so simple with AS2, you would think things could be as easy, if not easier.   So any help that all the world can offer, I would be so very you happy for me!  If necessary I can copy my current code, even if it doesn't work!   Thanks, Mike

    var loader: Loader = new Loader();

    addChild (loader);

    home_btn.addEventListener (MouseEvent.Click, loadF);

    about_btn.addEventListener (MouseEvent.Click, loadF);

    contact_btn.addEventListener (MouseEvent.Click, loadF);

    function loadF(e:Event):void {}

    Loader.Load (new URLRequest (e.currentTarget.name.split ("_") [0] + ".swf")); / / assuming that each reference button is also the button's name property

    }

  • Charger, Unload SWF and WARNING: ignorance of the attribute 'safe '...

    Hey all

    I just tried to load a swf into another.  in my document class, I have the following line of code in my constructor.

    var loadBoard:LoadBoard = new LoadBoard ("Directory.swf");

    in my LoadBoard class:

    package com.myproject

    {

    import flash.display.Loader;

    import flash.display.MovieClip;

    import flash.net.URLRequest;

    /public class extends MovieClip LoadBoard

         {

    public void LoadBoard(nameOfBoard:String)

              {

    var boardLoader:Loader = new Loader();

    addChild (boardLoader);

    boardLoader.load (new URLRequest (nameOfBoard));

    trace ("swf must be loaded");

              }

         }

    }

    "In my console I get the following when I debug.

    [SWF] U:\fullPath\Directory.swf - 69 058 bytes after decompression

    [SWF] U:\fullPath\Directory.swf - 2 067 bytes after decompression

    [SWF] U:\fullPath\Directory.swf - 322 606 bytes after decompression

    [SWF] U:\fullPath\Directory.swf - 112 558 bytes after decompression

    [Unload SWF] U:\fullPath\Directory.swf

    Warning: ignorance of the attribute 'trust' in the policy file to http://fpdownload.Adobe.com/pub/SWZ/crossdomain.XML .  The 'confidence' attribute is permitted only in HTTPS policy files and socket.  See http://www.adobe.com/go/strict_policy_files for more details.

    Don't know why I get this warning when I google it, the error has to do with trying to load a file from another domain. My Directory.swf file is in the same place as my main swf, the bin-debug folder.  Also the Directory.swf does not seem to load into my main swf as I do not appear in the flash player, when I run my application.   I'm also a bit confused about the [Unload SWF], I don't ask for anything for him to unload my swf.

    I use FB to do all my coding and debugging if it matters.

    Anyone has any ideas.

    Thank you

    you use a tlftextfield in Directory.swf or elsewhere?

  • SWFLoader.unloadAndStop () - t - it unload swf and release memory?

    Hi all

    SWFLoader FP10 unloadAndStop() and GC really unload swf?

    I have simplest possible test case when parent app creates new SWFLoader, under app load and then unload it.

    Every time when it does I see memory grows. The sub app is tiny:

    <? XML version = "1.0" encoding = "utf-8"? >

    < mx:Application ' xmlns:mx = ' http://www.Adobe.com/2006/MXML "layout =" " absolute " >

    "" < mx:Label id = "idLabel" color ="Blue" text = "it comes on-board application. " />   

    < / mx:Application >

    The initial request is as simple

    public function loadSwf(name:String):Sub

    {

    loader.addEventListener (Event.COMPLETE, completeHandle, , false0, true,);    

    loader.showBusyCursor = real

    loader.scaleContent = real

    loader.source =name;      / / name is subappswf.swf the

    Loader.load().

    }

    private function completeHandle(event:Event):Sub

    {

    loader.removeEventListener (Event.COMPLETE, completeHandle);

    loader.unloadAndStop (true);

    }

    Profiler shows decent memory of crete and same Cumulative memory seems not horrible. There are no objects suspended in the sub-application except SystemManager. But Google Chrom Task Manager shows the real picture: Shockwave Flash memory develops and soon he reached the ~0.5 GB threshold, application stops responding and finally FP crashes.

    How to free up memory?

    Kind regards

    Ilya

    If autoLoad is true, and you set the source = null and call validateNow() right

    After that, it should cause unloadAndStop to actually be called.

  • [Unload SWF] - automatically unloading a swf file loading - question of GC?

    Hi, I am trying to load some SWF style during execution using the StyleManager.loadStyleDeclarations. There are more than 4 style SWF and I load via a for loop and add the IEventDispatcher in a table as a reference... Files seem to load properly. But sometimes, some of the SWFS of style are automatically discharged. I see the [unload SWF] in the journal... I do not know how to avoid being GCed when loading files... Also, it seems that their loading / decompressed twice. Check the log below...

    [SWF] / Flex/com /... /styles/Common.swf - 45 421 bytes after decompression

    [SWF] / Flex/com /... /styles/StyleSkin.swf - 253 886 bytes after decompression

    [SWF] / Flex/com /... /styles/StyleSkin_Fonts.swf - 440 292 bytes after decompression

    [SWF] / Flex/com /... /styles/ StyleSkin _Assets.swf - 189 281 bytes after decompression

    [SWF] / Flex/com /... /styles/ StyleSkin _Assets.swf - 1 153 335 bytes after decompression

    [SWF] / Flex/com /... /styles/ Common.swf - 1 153 335 bytes after decompression

    [SWF] / Flex/com /... /styles/ StyleSkin _Fonts.swf - 1 153 335 bytes after decompression

    [SWF] / Flex/com /... /styles/ StyleSkin.swf - 1 153 335 bytes after decompression

    [Unload SWF] / Flex/com/marketlinx/mls/client/ui/styles / StyleSkin _Assets.swf

    /Flex/com/MarketLinx/MLS/client/UI/styles/common.swf [unload SWF]

    [Unload SWF] / Flex/com/marketlinx/mls/client/ui/styles / StyleSkin _Fonts.swf

    How to avoid files being GCed. is it because I have re using a single charger (loadStyleDeclaration) to load several files?

    Sorry, my bad on the last response. I meant - static-RSLS = true.

    -Darrell

  • Problem with loading/unloading SWFs external

    Hey! Thank you in advance for any assistance you can provide. Here's the question: my master I am loading an external swf file. This file overlays the original file, so I started looking for a way to download the original file. I was not very successful. I've looked through these forums and did research on google, too, but found only a partial solution.  Right now, I have created a background layer that allows the loaded file cover the original file without bleed through.  I'd rather have the original file unload before loading the file newly appointed.

    Here is the code that I found so far:

    Declaring Variables
    var Xpos = 0;
    var Ypos = 0;
    var loader: Loader = new Loader();
    var swfFileToLoad: URLRequest = new URLRequest ("holdHumans.swf");

    Go to the creation
    removeChild (loader);
    Loader.Load (swfFileToLoad);
    Loader.x = Xpos;
    Loader.y = Ypos;
    addChild (loader);

    This code is normally associated with a key event, but I have to be able to use it inside a timer function in the original file. When the function is called, I get this message: Error #2025: the supplied DisplayObject must be a child of the caller.

    I get this message too when I try to use it in the swf file loaded externally.

    How to solve this problem?

    Thank you

    Michael

    You are welcome.

  • Problem with SWF merged

    I have a problem. I merged just two SWF insert the second on first with the following code in AS3:

    var request: URLRequest = new URLRequest ("destino.swf");

    var loader: Loader = new Loader()

    Loader.Load (request);

    addChild (loader);

    It is a slide file, something like powerpoint where you can navigate through the slides with the arrows. I merged two SWF because it is a presentation with images and videos, the problem is that if I navigate back, slide in the second SWF mingle with the first:

    I'll show you a video with the problem. Once the video when the first SWF load the other.

    I hope you can help me.

    When you want to go back, run:

    Loader.Unload ();

    (and, if there is a stream in destino.swf, use loader.unloadAndStop ())

  • Problem loading swfs to the server group.

    Hi all

    I have a SWF that has dependent files, and it does not load on the server so that it plays. It plays on my computer when I click on the index.html file that accompanies the swf file that I want to play, but not when I load it on the server for my web site.

    The file I was sent to load on the server includes

    a subfolder with the swf file that I need to play, but also

    an index.html file,

    a file menu.swf

    a file debug.swf

    a file exit.swf and

    an AC_RunActive Content.js file.

    Everything on the site, no matter what path I'm going to get there, loading appears a white screen. The files are there on the server, I can see them, and the size of the file is the same as on my local machine, so I think they have loaded correctly, they just don't play. The closest I've seen is when I make the path to the menu, but a progress bar appears for the menu and he never finishes loading.

    I don't do flash files myself, so I don't even think that I have the vocabulary to ask the right questions. Y at - there a name for this kind of grouping of files (as described above)?  How can I load it on the server so that it plays?

    I work in a Dreamweaver site. I don't know if the problem is how I do the path in Dreamweaver or how I'm loading the files on the server... or something else. I tried to ask this question in the Adobe Flash forum and they sent me here.

    Help!

    P.S. I have other .swf online files that work very well, but these are independent files that have all of these files are associated with them.

    The link in question is the BCBS button on this page

    http://skillbridgetraining.com/custom-training-Temp2.shtml

    Thanks in advance for your help.

    Too bad! It was a problem of capitalization in the code. Apparently, the one who built this ravises thing halfway through and had the menu in the Menu somewhere.

  • Loading &amp; unloading SWF external in main.swf

    Hello, please I have problem with my project. I'm happy for all the help I can get.

    so, my question is the following:

    I main.swf that standard load menubar.swfand footer.swf in menubar.swf are buttons: button1_btn, button2_btn, button3_btn.

    Main.swf is listening click on the button 1, 2 or 3. If for main.swf loads content1.swf, content2.swf or content3.swf

    for example: was clicked button1_btn which addedChild of content1.swf coming from the left to the center of the stage and if user click on button2_btn , I want only the content that is loaded (in this example is content1.swf), going away from the stage to the right and then content2.swf will come from the left side toward the center of the scene.

    I'm sorry for my English.

    Any help will be much appreciated.

    Thank you very much in advance.

    project1.jpg

    you always change the names of your buttons.

    When you finally on your button names, add them to a table and use:

    var buttonA:Array = [the button that matches content1Loader, the buttons corresponding to content2Loader, etc.];

    var prevOnStageLoader:Loader;

    for (var i: int = 0; i<>

    buttonA [i] .addEventListener (MouseEvent.CLICK, goContent);

    }

    function goContent(e:MouseEvent):void

    {

    {if (prevOnStageLoader)}

    TweenLite.to(prevOnStageLoader,1,{x:stage.stageWidth});)

    }

    prevOnStageLoader Loader = (this ["happy" + (1 + buttonA.indexOf (e.currentTarget)) + "Loader"]);

    addChild (prevOnStageLoader);

    prevOnStageLoader.x =-1250;

    TweenLite.to (prevOnStageLoader, 1, {x: 0, ease:Elastic.easeInOut});})

    }

  • Load Unload swf

    as3 load unload.jpg

    I can load 'Sample.swf' load on stage by the loader class, but I can't unload "Sample.swf."

    What button code 'X '?

    Code of main.swf is:

    load_bt.addEventListener (MouseEvent.Click, onLoadbt);

    function onLoadbt(e:MouseEvent):void

    {

    var ldr:Loader = new Loader();

    LDR. Load (new URLRequest ("Sample.swf"));

    addChild (ldr);

    }

    Sample.swf code is:

    close_bt.addEventListener (MouseEvent.Click, onClosed);

    function onClosed(e:MouseEvent):void

    {

    Loader (this.parent) .unloadAndStop ();

    }

    p.s. pleas mark the answers useful/correct.

  • Compatibility problem between swf

    Hello world

    I have several swf games I created myself in Adobe Flash CS3 using Actionscript 3. I want to use these games in a sharing module Adobe Connect, and two participants at the session, being able to play the game together (each with authority, and and the ability to see what the other player). The games are games of base maps.

    Supposedly, the presenter must open the file and allow this when I open it through a sharing module. However, all I get are two separate copies of the game on each computer. players cannot share the game or play together.

    For ppt files, the presenter works very well and I can click on the "sync" button to switch between the participant with controls, or not having not controls. Apparently, the presenter opens any file swf with many images. My games have two frames a piece, but it does not work.

    Should I modify the code somehow to make my games?

    Thanks in advance for your help, and I apologize if my description of the problem is not quite clear.

    Peter

    This (http://help.adobe.com/en_US/connect/8.0/collaborationbuildersdk/connect_8_collaboration.pd f) should be a good starting point.

    BTW, I think that currently sync swf need to a Flex application (unless you can fool connect into believing that your SWF is flex application)

  • Button to navigate and unload swf

    I have the following code to load an external swf by clicking a button. It works very well.

    btn_01_01.addEventListener (MouseEvent.CLICK, fl_ClickToLoadUnloadSWF);

    function fl_ClickToLoadUnloadSWF(event:MouseEvent):void

    {

    var url: String = event.currentTarget.name + ".swf";

    fl_Loader.load (new URLRequest("loads/TEST_VID_AS3.swf"));

    }

    I also have a button that takes me to another place on the timeline.

    This.btn_back_main.addEventListener (MouseEvent.Click, fback_main);

    function fback_main(evt:MouseEvent)

    {

    MovieClip (this.root) .gotoAndPlay ("main");

    }

    But the loaded swf file is always visible.

    I would like it touches to also unload the loaded swf file.

    Someone can tell me if it is possible and suggest the code?

    Thank you in advance.

    This should do it (assuming that the btn to remove is called "btn_remover"):

    var ld:Loader = new Loader();

    btn_01_02.addEventListener (MouseEvent.CLICK, v);

    function v(e:MouseEvent):void {}

    LD. Load (new URLRequest("loads/TEST_VID_AS3.swf"))

    addChild (ld)

    }

    btn_remover.addEventListener (MouseEvent.CLICK, removeSwf);

    function removeSwf(e:MouseEvent):void {}

    ld.unloadAndStop ();

    }

    first of all, I moved the Loader definition outside the function (otherwise, it is removed at the end of the function and are not accessible afterwards)

    then I added the event listener to remove the button for removeSwf call function - calling unloadAndStop() on the loader object

    FYI, I suggest you use more descriptive names for your buttons and functions otherwise you will find it more difficult to work out what happens if return you after a break.

  • Problem loading swf which reads data from a local file

    Hello

    Using flex with an online project, I load a swf file, which reads data in a xml file (it works fine if I open it with flash player)

    I do a very simple test:

    " < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "
    layout = "absolute".
    minWidth = "955" = "600" minHeight
    >
    < mx:SWFLoader id = "swfloader" source="data/player.swf"/ >
    < / mx:Application >

    Result is that player.swf is unable to read the xml file (error: #2044 Error: ioError unsupported: text = Error #2032: error of flow.) URL: enonce.xml).

    I do the same test with a project of AIR, and it works very well!

    This also works if I put the xml file directly to the same level as my compiled (in bin-debug for example) application.

    I think it's a path problem, but I do not know how to configure it.

    Is there a way to solve the problem?

    Thank you very much!

    Olivier

    You need to change the code in the SWF file you load.  If the SWF file is not

    properly designed, it can not be loaded into other SWFs.

Maybe you are looking for

  • Satellite P750 Webcam

    Hi, the webcam on my new P750 Skype works but is blurred. I can't find where to set it in the control panel etc.. Can someone please?Thank you.

  • Satellite A205-S6808 - Vista hangs during installation

    Hey all,. I tried to install/re-install my OS Vista on my Satellite 205-6808. But I get a pxe - e61:media test failure check cable. (But the HARD drive is installed correctly) Then he will be inactive for a while then windows green lights flashing in

  • Configuration updates forever

    When I logged on it said there are some windows updates, so I said ok.  following message was #5 22 update.  for the last hour, he told 3 of 3 to 0%.  It hangs there for a while then shuts down and then immediately comes to 3 about 3 to 0%. I can't s

  • How to disable the on-screen keyboard (osk)

    Whenever I log in, the on-screen keyboard (osk) rises.  I want to change the behavior so that it does NOT open.  Note that the computer has other accounts to use, but they do not have this problem. I looked for programs that run at startup etc. and c

  • How can I get a correct version of Win 7 Ultimate ISO to mine the official download site?

    Here: www.microsoft.com/en-us/software-download/windows7 When I put in my product key for my Win 7 Ultimate (I originally bought my drive from Amazon), need me a screen to select the language appropriate to start the download. I can't find the Englis