[REQUEST] How to remove the object from the list to display and memory that added dynamic

Hi there everyone,

I have a question which I hope you guys can help me with, so the question is:


"How to remove us (sprite object that has an external swf that it is child) display and, above all, of the memory, but we can still use the same variable to add another object (yes another sprite like the one we have removed yet a different content)..,

I did tried the removeChildAt thing he did remove all the child of the display list, but I still can hear the sound of the video running.

Here is the code on a small scale of what I do (sorry that I can only give you chunk code loading and adding)

var SWFList:XMLList; used to contain a list of all the external swf source, atribute and etc.
var totalSWF:int; the total number of swf external, it must be charged

var swfLoader:Loader; instance of the loader class to load external swf file

function loadSWF (): void
{
for (var i: Number; i < totalSWF; i ++)

swfLoader = new Loader();
swfLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, onSWFLoadComplete);
swfLoader.load (new URLRequest (SWFList [i], .@source));
}

function onSWFLoadComplete(e:Event):void

{

this.stage.addChild (e.target.content);

}

and also if you can give an example of a good method of dynamic add the object to the stage I would really appreciate cause I suspect mine are bad method.

Thank you all.

If you have been publishing for fp 10, just use unloadAndStop().

I assume you're not publication for fp 10 so you have to use something like:

function clearScreen (): void
{
var mc:MovieClip = MovieClip (swfLoader.content);

MC.yourflvintheloadedswf.Stop ();

mc.mcinyourloadedswfthathasalistener.removeEventListener (MouseEvent.CLICK, whateverF);

etc.

swfLoader.unload ();
}

Tags: Adobe Animate

Similar Questions

  • How to remove unused objects from the webcatalogs?

    Hi friends,

    How to remove unused objects from the webcatalogs?
    is there a utility like the removal of unused objects of the physical layer in RPD?

    Thank you

    Hello

    Click link responses to the left of the answers click on the catalog button manage manage catalog, you can delete the unused objects

    Concerning

    NGO

  • I would like to know how to remove the box/cursor information dialog box that appears whenever I have stop my mouse on an object.

    I would like to know how to remove the box/cursor information dialog box that appears whenever I have stop my mouse on an object.

    Have you tried to uncheck both options via Control Panel / folder Options / View?

    "Displays the size of file in folder tips".

    "Display descriptions pop - up for folder and desktop items"

  • How to remove the list item empty forms of oracle?

    Hello

    How to remove the list item EMPTY forms of oracle?

    I create two list items

    (1) basic

    (2) advanced

    But when I select list or display the runtime display form element 3 element EMPTY automatically, but I add what it shows I want to delete! How?

    He has named REQUIRED = NO item property

    If you set YES and then it does not show. but you must give an initial value.

    Hamid

  • How to remove the list of Clipboard Viewer *.clp files

    Windows XP (SP3)

    Use the Clipboard to paste images and texts that are then used for a blog.  Once this is accomplished, the items are deleted from the Clipboard.  However, I find the Clipboard Viewer maintains a list of files *.clp.  How to delete/remove the list?
    Spends hours exploring the Internet to find a solution, but without success.
    Be grateful for suggestions.

    Hello

    This free utility that easily.

    Run the program (requires no installation) files - erase all data from the Clipboard or use CTRL X.

    InsideClipBoard - free - whenever you have something to copy to the Clipboard to paste in another
    application, the copied data is saved in several formats. The main application of Windows Clipboard
    only display the basic Clipboard, like text and bitmaps formats, but only displays the list of all formats
    which are stored in the Clipboard. InsideClipboard is a small utility that displays the binary content of all
    formats that are currently stored in the Clipboard and allow to save the content of specific format
    in a binary file.
    http://www.NirSoft.NET/utils/inside_clipboard.html

    Another useful utility free allowing you to clear the Clipboard.

    ClipBoard Viewer - free - look inside your Windows Clipboard. See what your favorite
    ask, in four different (TXT, BMP, WMF and DIB) data format. This handy tool can also
    Clears the Clipboard. New version 2.0: now go to the Windows system tray! http://www.KarenWare.com/PowerTools/ptclpvue.asp

    I hope this helps and happy holidays!

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • When sending an email, how to remove the list of recipients?

    Hello

    When sending an email with an attachment to several different people, how can I remove the list of all the people I send him. I want it to appear as if he's only a person.not several. Would be grateful for any help

    Thank you very much

    How is this related to Windows Update features, Beverley?

    Put the primary address (or your own) in the field then put all others in the BCC field. See http://email.about.com/od/emailnetiquette/a/cc_and_bcc.htm

  • How to remove the author's name and/or date of blogsite summary

    Hello

    Can someone help me please find where and how to withdraw the name of the author of the summary blogsite?

    I don't want any author's name listed, just the title linked blog and the date of publication.

    Or, is it possible to have the related title, with 50 words of the displayed article, but no name of author or creation date?

    I thank very you much in advance!

    I figured out how to remove the CSS author (.blogsitesumary duration-date {display: none}, but any attempt to change via CSS does not work.)

    For example, I can't create more space between the title and the date, or list items.

    Also, I would still add the first words of the post.

  • How to remove the jump line, characters and past of a table column?

    HII,

    I m using 4 Apex.
    I m find the problem by removing the line break, characters and captures existing data in the column of the table.


    thnx in advance

    for example

    replace(replace(l_string_var, chr(10)),chr(13))
    

    Best regards
    Marko

    Published by: Marko Goricki, January 17, 2011 10:52

  • Mail application: how to remove email addresses from Favorites list

    While he was trying to help someone understand the different manifestations of "users/contacts" between e-mail, telephone contacts, Skype, etc., I managed to inadvertently add some accounts to my favorites in the Mail application and don't see a way to manage this list.

    Repro:

    1 mail configured to connect to Hotmail

    2. in the left pane of the Mail application, select people. Steering wheel with 'Favorites' and 'Frequent' overlays on top of the display of the messages Inbox.

    3. the magic that happens here... I'm doing something I don't remember or repro... vague memory it is that I clicked on a couple of accounts for friends in the list of "Frequent" and they find themselves in the Favorites list

    4. There is no obvious way to remove users from the Favorites list.

    Go to the people app, all users in the list of favorites of my Mail app do * not * have the favorite icon lit up. Selecting and deselecting the favorite icon in the application of people do nothing to my list of 'Favorites' in the Mail application. What this app synching contacts is to?

    Hi Jason,

    When you pin a person to your start screen, the profile picture of this person and their Facebook status updates and Tweets will appear as a tile at the start. Press or click on the tile to join their contact information. You can then quickly send them an SMS or an email or call, chat, or get a Skype video call with them.

    I suggest you try the steps from the following link on how to add/remove from Favorites of people app.

    Help people app (Pin people and Add/Remove Favorites)
    http://Windows.Microsoft.com/en-CA/Windows-8/people-app-FAQ

    If the problem persists, then I suggest you to try the following steps.

    1. to start, press or click on Mail app;
    2. press or click the person you want to remove from Favorites.
    3. press or click Favorites. When you return to the home page of the mail app, you will see more this person in your Favorites list.

    I hope this helps. Let us know if you have other problems with Windows in the future.

  • How to reorder the list of displayed to the customer shipping options

    Hello

    I have a list of options that include standard shipping and a burden on the Scottish Highlands & Islands for shipping. These two options are limited to the United Kingdom.

    in the drop-down menu, it displays the first option Highlands and Standard shipping second, but it makes more sense to have:

    Standard delivery

    Scottish Highlands & Islands

    How to rearrange the list displayed to customers?

    It is based on what you have created in what order in the admin.

  • How to remove the list of mail accounts iCloud

    Someone knows how to remove iCloud from my list of Mail accounts, without having to remove all other facilities like finding my Mac and iCal, etc.   Sorry you hurt here, I tried this post in the forum to iCloud and was rejected.

    Post edited by: Seventy-one

    HEY

    iCloud: create or modify e-mail aliases

  • Anyone know how to remove the list of bookmarks in the bookmarks toolbar?

    It wasn't until I decided to play with toolbars, then had no choice but to, click on the Restore Default Set because there is no other way to cancel some of the changes...

    That's when I noticed the new icon in the toolbar. It's in my way. I don't want it there, but I can't find anything about getting rid of him. I assumed this was a bug, but this screen shot of the own FF pages tells me they think it is a good idea.

    I did not, and I would like that it out of there. Someone understood how get rid of? Thank you!

    You can remove the button from Menu bookmarks on the bookmarks with code toolbar in userChrome.css

    Add code to userChrome.css below @namespace.

    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    
    #personal-bookmarks #bookmarks-menu-button { display:none !important; }
  • How to remove the list of actions available in cs5

    I installed stock in 2 places and now I have duplicates in the list of available actions (click on the arrow to the right of the action tab to see the menu for the add, remove, options, etc and a list of all the available actions and sets).

    I removed the actions of

    C:\Users\Hal\AppData\Roaming\Adobe\Adobe Photoshop CS5\Presets\Actions

    and from

    C:\Program Files\Adobe\Adobe Photoshop CS5 (64 bit) \Presets\Actions

    and yet, I still have the list of actions available in duplicate.

    How do I remove these?

    Thank you

    HAL

    Files of measures could be anywhere in the presets folders and always be picked up.

    Measures/color swatches/etc. subfolders are right there for your organization - Photoshop just search all under Presets.

  • How to remove the list of videos frequently consulted in media player?

    Surf the net and read after the videos, videos are listed in windows media player.  How can I remove the registration and/or the actual videos?

    Hello

    Please follow the steps given in the following link and check if it helps.

    Remove information about what you have played in Windows Media Player

    http://Windows.Microsoft.com/en-us/Windows7/remove-information-about-what-you-have-played-in-Windows-Media-Player

    Let us know if it helps!

  • How to remove the firefox address bar and simply only the top menu bar

    I want to only have the menu bar at the top of the screen... and not do anything else;
    as the address bar.
    would appreciate any help.
    I made a java update and wonder if that could be part of the problem.

    Thank you

    You can attach a screenshot?

    Use a type of compressed as PNG or JPG image to save the screenshot.

    You can use one of them to set toolbars to display.

    • Firefox menu button > customize > show/hide toolbars
    • View > toolbars (press F10 to display the Menu bar)
    • Right click on empty toolbar space

Maybe you are looking for

  • Want to 27qe: SSD UPGRADE through PH

    I'm shopping for an all in one. I like the touch screen. I price an 27qe with all updates. The problem is that it looks like, I can only go to a 128 GB SSD. I don't know why PH (system won't let me use the exact name) don't allow me to choose a 500 G

  • In the region Metropolitan 8.1 Windows, Mail applications and people will not open

    I have Windows installed on my g6 Pavilion 8.1, and only today, it started that I can not open the Mail App or people App. When I search on either, they just start on the screen lights up but then disappear and eventually small tabs or buttons all th

  • Sound devices: a disaster of misorganization and incompetence

    Using XP Pro, SP3. I use Skype and Gmail to talk online.  I have a couple of options different microphone (USB and normal) and 2 different output options.  Switching between these 2 options for the input and the output should be an easy task, even fo

  • How to get rid of text to improve

    All of a sudden, I have a program called ad text nuisance improve I think that Google Chrome has put it on my computer.  On any text, there are a few words that are highlighted, and when you click on it, an ad appears.  I tried to withdraw their inst

  • Windows live mail ability

    can someone please tell me what is the capacity in my windows live mail , for the storage of emails + the ability to the Inbox because recently changed from windows mail to windows live mail?