How to test and remove the loader object?

Hello

I am trying to load an object swfLoader on the scene and vimeo player (which I do with great success) and then delete them when I click on a button. I can remove it each separately, but when I put them in the same function I get an error. I think I need to test to see if they are on the stage with an if statement before I try to remove them, because I am getting an error NULL when I click the button. The problem is that I don't know how to test for them. I got as far to put the name of the variable in the condition. Can someone help me please?

In an effort to keep the code as simple as possible, I do not understand the code where variables are declared and the swf loader and loader vimeo are instantiated on the stage. But if I need more for the problem to make sense, please let me know rather than pass on my request for help.

Thank you.

closePortfolio_but.addEventListener (MouseEvent.CLICK, onClickClose)

function onClickClose (e:MouseEvent) {}

If {(moogaloop)

moogaloop.parent.removeChild (moogaloop);

     }

If (swfLoader) {}

swfLoader.parent.removeChild (swfLoader);

     }

}

closePortfolio_but.addEventListener (MouseEvent.CLICK, onClickClose)

function onClickClose (e:MouseEvent)

{

moogaloop.parent.removeChild (moogaloop);

swfLoader.parent.removeChild (swfLoader);

}

Tags: Adobe Animate

Similar Questions

  • How to test and develop the HTML/Backbone of content viewer on IPad?

    Hello

    I was responsible for developing and modifying the custom HTML/Backbone of content viewer as well detailed and explained by Derek Lu here:

    https://www.Adobe.com/devnet/digitalpublishingsuite/articles/html-default-library.html#

    I can see that by removing the reference to libs/AdobeLibraryAPI.js index.html I am able to 'test' on the desktop.

    <!--

    The DPS library/store API.

    Understand it below should be placed in the comments during the test on the desktop.

    < script src = "libs/AdobeLibraryAPI.js" > < / script >->

    and that the data are bought in XML via the respect and the parse method is called Librarycollection.

    I made the changes to hang the Viewer to bring in some of the folios we develop.

    However, even if it means to test and develop on the desktop in a form since we use JS and spine, there several checks in the code provided to see if ADOBE.isAPIAvailable.

    If this is the case, then the behavior is different than on the desktop, so once the Viewer is packed to the top and put it on the IPad there is a disparity between what you were able to check and test on the desktop version against which is shown on the IPad.

    So the question is... is there a quick way to develop and test on the Ipad... it does not seem a viable option to develop blindly on the desktop and then package the content in Adobe DPS Viewer to check the behavior of these changes on the IPad?

    To reiterate the Viewer is to make use of the spine / js example to provide greater functionality and customization options.

    Thank you in advance.

    Dave

    You can debug remotely using Safari Office. Installation instructions are here a debugging library or a custom storefront iOS | Adobe Developer Connection. When you are debugging on the device you should also load your JS and CSS files remotely. Use SHIFT + CMD + R to reload the files from the web Inspector, ignoring the cache.

  • How to locate and remove the attachment file to the Inbox folder?

    Hello

    My name is Piotr Tyborowski and I am the Doctor Web's Technical Support Engineer.
    I had such application suport - one of our customers has problem with viruses in Thunderbird Inbox folder - our antivirus scanner has found two Trojan horses in a file located in the Inbox folder and moved all of the Inbox folder to quarantine. We know that these files can be found here:

    > > C:\Users\Renatrix\AppData\Roaming\Thunderbird\Profiles\4dhjzo2v.default\Mail\Local Folders\Inbox.sbd\Konto WP\12145.part is ZIP archive
    C:\Users\Renatrix\AppData\Roaming\Thunderbird\Profiles\4dhjzo2v.default\Mail\Local Folders\Inbox.sbd\Konto WP\12145.part\KeyDLL.dll - Trojan.KeyLogger.6153-infected
    C:\Users\Renatrix\AppData\Roaming\Thunderbird\Profiles\4dhjzo2v.default\Mail\Local Folders\Inbox.sbd\Konto WP\12145.part\KeyDLL.dll - infected
    > > > C:\Users\Renatrix\AppData\Roaming\Thunderbird\Profiles\4dhjzo2v.default\Mail\Local Folders\Inbox.sbd\Konto WP\12145.part\svhosts.exe - compressed by UPX
    C:\Users\Renatrix\AppData\Roaming\Thunderbird\Profiles\4dhjzo2v.default\Mail\Local Folders\Inbox.sbd\Konto WP\12145.part\svhosts.exe - Trojan.Click.27588-infected
    C:\Users\Renatrix\AppData\Roaming\Thunderbird\Profiles\4dhjzo2v.default\Mail\Local Folders\Inbox.sbd\Konto WP\12145.part\svhosts.exe - infected
    C:\Users\Renatrix\AppData\Roaming\Thunderbird\Profiles\4dhjzo2v.default\Mail\Local Folders\Inbox.sbd\Konto WP\12145.part - archive infected

    I'm not very familiar with Thunderbird, so my question is - is is possible to get this file 12145.part and remove it as well, even with the message that cointains inside?

    Thank you in advance and Best Regards,.

    Piotr Tyborowski
    Doctor Web

    Piotr,

    If it's convenient, the absolutely safest approach is to delete the profile folder 4dhjzo2v.default while integer that TB is arrested.

    If the person is to use IMAP or POP with an option to leave emails on the server, there should not be a loss of emails (except in local folders).

    If there are important e-mails in local folders, and they are not infected, they could be exported to support storage and then imported into the new profile. There is an add-on to tuberculosis, which allows the import and export of emails in different formats.

    You will find instructions on how to download and install it in http://barryduggan.info/exportMail.php

  • How to find and remove the corresponding line in British Colombia ADF

    Hello

    I have a table with simple fields and I created the class of java for this entity also
    Person
         - Person_Id (PK)
         - Person_Name
    I wanted to create a method of application module to find the entity corresponding to certain name
    but I can't find the code to do this.
    public class AppModuleImpl{
      public boolean deletePersonByName(String personName)
      {
        EntityDefImpl personDef = PersonImpl.getDefinitionObject();
        //How to get all rows and find the matching name then delete the row
       
        return false;
      }
    }
    Thank you
    11.1.1.5 Jdev

    You can do findByKey or getfilteredrows to get the lines and you can then delete.

  • How to open and copy the smart object

    Hello

    I read some topics on smart objects, but I have not found a solution to my problem.

    1. I need open the smart object layer

    2 copy all the layers of the smart object to another file

    Thank you

    Let's say you have two open documents. The first open doc is the one you want to fool the layer to the second doc is active and the layer you want to dupe is the activeLayer.

    app.activeDocument.activeLayer.duplicate(app.documents[0]);
    

    Of course, you can change the document references and layer as needed. However the layer not fool must be in the activeDocument.

  • How can I select the objects and remove the other objects by using the selection path

    I know that I am able to do this in photoshop. Select an object, lets say a group of letters just by ctrl clicking on the thumbnail of the layer, then put another layer of more selected a group of letters, then go on the other layer (not the Group of letters) and pressing DELETE. I hope I explained it well, otherwise, here is a video that made a good explanation of it. Gyazo - 015091c2a0a6d2da038901dfb16c0a7f.gif I just need to know if there is something similar to that offered in illustrator, thank you!

    What you're trying to re-create the Photoshop is called: less prominent of the Pathfinder Panel.

  • How to find and remove the files in 'other' storage on Macbook Air?

    I already cleaned everything that's obvious files... trash, downloads, etc. But I still 65 GB of the file in 'others '. How can I find large files in 'Other' and delete them?

    Omni DiskSweeper can show you the exact size and location of all your files. It will be the inventory of your disc from files that occupy more space. It can also give you a fairer read disk space than the Finder or storage tab of the about this Mac. If you want you can even delete files from OmniDisk Sweeper.

  • 8.1 upgrade of Windows 8 Windows - how to find and remove the incomplete installation file

    I went to the Windows 8 8.1 Windows installation option. While it has been downloaded the file, I turned off by computer error. The file I have is not complete. I would like to delete this file and try again. How/where can I find this file to delete? When I try to access the Windows store to download the file again, it starts the installation process (which assumes that the file I have is over). I think that in the Manager of tasks in desktop view, that I managed to stop the process.

    Download uses a technology called BITS (Background Intelligent Transfer Service), as well as the missing pieces of the file will be downloaded when they are required.  So just let it run, it will take care of itself.

  • How to find and delete the dupes in Photos

    How to find and remove the many dupes in Photos

    Duplicate Finder in the App Store will clean the photo library. However, I would be careful to make sure that nothing is really a duplicate.

  • Moves from 2014 version to version 2015, considered an update? If this is not how to deploy the 2015 version and remove the 2014 version?

    Moves from 2014 version to version 2015, considered an update? If this is not how to deploy the 2015 version and remove the 2014 version?

    We currently have Adobe CC deployed on more than 4,000 computers, I am now looking to update installation on the newer versions that are 2015. If I create a new package it installs the latest but it also lets older versions of 2014.

    Is there a way to delete the versions of 2014? Or can we update the versions of 2014 and 2015?

    It's actually an upgrade.

    If the two can exist side-by.

    in the cc office application, there is an option to remove the older versions, but I don't know about the enterprise deployment.  You should check the documentation of the company.

  • I have Adobe Reader XI. Is it possible I can fix asymmetrical pdfs and remove the white pages? If so, how?

    I have Adobe Reader XI. Is it possible I can fix asymmetrical pdfs and remove the white pages? If so, how?

    Not possible with Adobe Reader.

  • How can I select and remove the net football behind the goalie with Photoshop CS5?

    Hello

    Could you please help me with the next case. I have a picture of a football match and I want to choose and remove the net behind the football (soccer) goalkeeper. Do you know what is the procedure for the selection and removal of net, in "clear" of the lens showing only the goalkeeper under objective?

    Thank you in advance,

    Petar

    Product: Photoshop CS5

    Hello Petar,

    You're in luck. Photoshop CS5 is the first version to come with Content Aware Fill. You can use this to clear transparent objects, such as your net. Try to take a look at this video, that should help you to do exactly that:

  • How to disable and remove permissions for the dashboards change in OBiee11g

    Hi gurus,

    I am new to this Forum & Obiee too.

    some briefly can guide me how to disable or remove the dashboard change in Obiee11g page options


    concerning
    Sri

    Hello
    Based on the permissions granted to the user, it will have access to it. If user is to have total control, then it may have change dashboard, else if the user read only access to the dashboard while he can't have the dashboard option change.

    Kind regards
    Srikanth

  • Select reverse and remove the effect from Photoshop to Illustrator

    Hello

    I'm new to Illustrator and do my best to understand how it works! I'm used to working with Photoshop and there are some things that I could do it on Photoshop and am now trying to find a way to make it look as I want... So here goes

    I'm looking to have this effect on Illustrator. (For those who you don't see the image, mimage is a globe with the text that appears only on continents. The text disappears when the image is empty. I forgot to save it as a png, but white is transparent.

    Logo PEI.jpg

    I managed to write my text in Illustrator and change the text to "Color Burn" effect, so that it looks the same on all continents. However, I am unable to remove the text where it leaves the other layers. The text remains black where the background is transparent.

    Logo PEI Illustrator.jpg

    So I was wondering if there is a way to remove the text outside the continent. The same effect, you should achieve in Photoshop by selecting reverse and removing the text (pixelated).

    Make a copy of the shape of the continent. Select the copies, and then choose the command object > path > make a compound path.

    Then use the new compound path as a clipping on the text mask. With her before she and the text and the text selected, choose object > path > make a clipping mask.

  • Script to search for text and remove the hyperlink and characterstyle link which applies (back to normal)

    I need help with my script to search for text and remove the hyperlink and characterstyle link which applies (returns the normal text).

    I can't do either as I want.  I want the user to be able to type in a dialog text they want to search for, do search this text IGNORING case (case insensitive) and then for all instances that he find it, remove character styles that are applied to the (set to [none]) and delete the hyperlinks.

    My code seems to define the character style [None], when I click on the text and look at the window of character Styles, BUT all old styles (font color, underline) are always applied and removed not as I want.

    Also, I can't understand how to remove all of the old links.

    Here is my code:

    myDocument var = app.activeDocument;

    var noneStyle = myDocument.characterStyles.item ("[None]");

    var myFindVal = "";

    var myErrorText = "";

    var myErrorCount = 0;

    myDialog = app.dialogs.add var ({name: "search user submitted text and delete hyperlinks from objects found.", canCancel: true});

    {with (MyDialog)}

    {with (dialogColumns.Add ())}

    {with (borderPanels.Add ())}

    staticTexts.add ({staticLabel: "search and delete hyperlinks for :"}); "})

    myTextBox var = textEditboxes.add({minWidth:100});)

    }

    }

    }

    If (myDialog.show () == true) {}

    myFindVal = myTextBox.editContents;

    doSearchAndReplace();

    app.findTextPreferences = NothingEnum.nothing;

    app.changeTextPreferences = NothingEnum.nothing;

    If (myErrorCount == 0) {}

    Alert ("done! ("Part of the links have been removed for: '" + myFindVal + ""! "");

    }

    else {}

    Alert ("last error: '" + myErrorText + "' & number of errors:" + myErrorCount);

    }

    }

    myDialog.destroy ();

    function doSearchAndReplace() {}

    app.findTextPreferences.findWhat = myFindVal;

    app.findChangeTextOptions.caseSensitive = false;

    app.findChangeTextOptions.includeFootnotes = false;

    app.findChangeTextOptions.includeHiddenLayers = false;

    app.findChangeTextOptions.includeLockedLayersForFind = false;

    app.findChangeTextOptions.includeLockedStoriesForFind = false;

    app.findChangeTextOptions.includeMasterPages = false;

    app.findChangeTextOptions.wholeWord = false;

    var myFoundItems = myDocument.findText ();

    for (i = 0; i < myFoundItems.length; i ++) {}

    myRemoveHyperlinkAndStyle (myFoundItems [i]);

    }

    }

    function myRemoveHyperlinkAndStyle (myFoundItem) {}

    try {}

    myDocument.hyperlinkTextDestinations.item (myFoundItem) .remove ();

    myDocument.hyperlinkTextSources.item (myFoundItem) .remove ();

    myDocument.hyperlinkURLDestinations.item (myFoundItem) .remove ();

    myFoundItem.applyCharacterStyle (noneStyle);

    }

    {catch (MyError)}

    myErrorCount ++;

    myErrorText = MonErreur;

    }

    }

    Hello

    Right, some hyperlink might be a pageItem...

    expand the 'if' condition with:

    If (myHyp [len].source.hasOwnProperty ("sourceText") &... content ==...)

    Jarek

Maybe you are looking for