How can I remove eventListener on the main time line off the loaded SWF?

I have a Workbench where my main timeline is retouching of the marked sections. In one of the marked sections I have load and SWF file using greensock SWF Loader. In the loaded SWF file, there is a command where I need to remove/addEventListeners on the main timeline of the flash file in the loaded SWF file.

The establishment with "MovieClip (parent.parent.parent.parent)." works for the navigation and loading and other functions. However, I get the error "1120: access of property unidetified" if I want to use a line of code like this:

MovieClip (parent.parent.parent.parent) .mainNav_buttonsGroup_mc. Applications_b tn_mc.removeEventListener (MouseEvent.ROLL_OVER, overHandler_Applications_btn);

I'm just writing this EventListeners again in the SWF file loading (thus repeating once again that they are specified on the main time line already) or there is a better method for her?

appImgBtns_mc.testBtns2_mc.addEventListener(MouseEvent.CLICK, onClick_testBtns2);


function onClick_testBtns2(event:MouseEvent) :void {
          /////////
                    ////disabling the button onClick by removeEventListener
                    //MovieClip(parent.parent.parent.parent).mainNav_buttonsGroup_mc.Applications_btn_mc.removeEventListener(MouseEvent.ROLL_OVER, overHandler_Applications_btn);
                    //MovieClip(parent.parent.parent.parent).mainNav_buttonsGroup_mc.Applications_btn_mc.removeEventListener(MouseEvent.ROLL_OUT, outHandler_Applications_btn);
                        //MovieClip(parent.parent.parent.parent).mainNav_buttonsGroup_mc.Applications_btn_mc.removeEventListener(MouseEvent.CLICK, onClick_Applications_btn);
                    ////coloring the button
        MovieClip(parent.parent.parent.parent).Applications_btn_timeLine.play();
  
                    //Products_btn_mc
                    //MovieClip(parent.parent.parent.parent).mainNav_buttonsGroup_mc.Products_btn_mc.addEventListener(MouseEvent.ROLL_OVER, overHandler_Products_btn);
                    //MovieClip(parent.parent.parent.parent).mainNav_buttonsGroup_mc.Products_btn_mc.addEventListener(MouseEvent.ROLL_OUT, outHandler_Products_btn);
                    //MovieClip(parent.parent.parent.parent).mainNav_buttonsGroup_mc.Products_btn_mc.addEventListener(MouseEvent.CLICK, onClick_Products_btn);
                    //discoloring the button
        MovieClip(parent.parent.parent.parent).Products_btn_timeLine.reverse();
  
  
          MovieClip(parent.parent.parent.parent).sourceVar_AppPopUpsLoader_fromPrdcts="images/app_images/original/icysophistication_new_tl.swf";
          MovieClip(parent.parent.parent.parent).gotoAndPlay("appPopUps_fromPrdcts");
}

You can communicate with the main timeline by dispatching events from the child swf file.

When the child Swf is loaded, dispatches an event, i.e. - dispatchEvent (new Event ("DoTimeLineCode"));

Then on your main timeline, listen for the event and perform the desired functions:

MovieClip (root) .addEventListener ("DoTimeLineCode", mainTimeLineFunctions);

function mainTimeLineFunctions(e:Event):void

{

     MovieClip(root).Applications_btn_timeLine.play();

etc...

}

ChasingMovieClip(parent.parent.parent.parent) has always been a losing battle for me. It's best practice to use event dispatchers and listeners to instantiate "things" from the parent child paradigm.

~ Chipleh

Tags: Adobe Animate

Similar Questions

  • How can I remove updates in the App Store I want?

    How can I remove updates in the App Store I want? that is no longer use app, but I'm getting updates listed.

    Delete all copies of the application from the main HARD drive and all external drives or mounted partitions which can have the app.

    By the end of 2012 mini Mac, OS X El Capitan 10.11.4. Apple Watch, 38 mm silver AL, Watch OS 2.2; iPad 2 Air & iPhone 6 + iOS 9.3

  • How can I remove links to the latest features of the homepage of FF

    How can I remove links to the latest features of the homepage of FF. See screenshot. I want deleted url.
    Sorry screenshot has not shown the first time


  • How can I remove icons from the dock.

    How can I remove icons from the dock? am on El Capitan on my iMac

    I tried dragging it to the top of Wharf and held for up to 10 secongs

    Delete appears, I let go and he goes right to the dock.

    Try control - clicking on the icon, then Options and uncheck the keep in the Dock. Some icons have a removal of the Dock option.

  • How can I remove two of the three search bars - now appear on my screen

    When I go to Mozilla firefox, somehow (and I guess I made the mistake). It appears 3 three bars of 'search '... Obviously, I need only one (1)... How can I remove two of the three bars "get"?

    Hello

    You should check with the Support of FireFox and their forums.

    Support for Firefox
    http://support.Mozilla.com/en-us/KB/

    Firefox - community and live Chat
    http://support.Mozilla.com/en-us/KB/ask

    Firefox - Forums
    http://support.Mozilla.com/en-us/questions

    I hope this helps.

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

  • How can I remove shortcuts from my main screen

    HOW CAN I REMOVE THE SHORTCUTS IN MY MAIN SCREEN

    Hello

    Right click on the unwanted desktop shortcut icons > then on the left click on delete.

    See you soon.

  • How can I remove comments from the users and groups

    I have my in my users and groups in the system preferences a user snd invited another user

    How can I remove them

    Go to Preferences system-> users and groups, and then press the lock to allow you to change the settings. Then choose 'user comments' in the sidebar and uncheck "Allow clients to connect to this computer". This will not make this option disappear, but after that you will not be able to use the Guest user.

    «Respect for the other user, simply choose it in the sidebar and press on the '-' button.» Make sure that no one uses this user.

  • How can I remove one of the installation to start two windows7 in the boot partition?

    I tried to upgrade my pc windows7 premium to ultimate through the program on my PC. It has not worked and I installed windows7 ultimate with cd I bought,

    now, I have windows7 in my startup program 2. How can I remove my boot sector 1?

    Click Start, type: msconfig

    Press enter on your keyboard

    Go to the Startup tab

    Select the entry you want to delete

    Click on delete

    Then set the time to '0'

    Then click on apply and OK

    Restart if prompted.

    ------------------------------------------

    If the problem persists, try the following

    Click Start, right click on computer

    Click on properties

    Under control panel home

    Click on "advanced system settings".

    Go to the Advanced tab

    Under Startup and recovery, click settings

    In the default operating system list, select Windows 7

    Uncheck the "time to display list of operating systems".

    Click OK

    Then apply and OK

    ---------------

    If it still does not respond, try the following:

    EasyBCD by NeoSmart Technologies would be your answer, it provides a graphical front-end to the BCDEdit Command line that makes it easy for you to set the boot settings and change the entries start on the new Windows Boot Manager.

    http://NeoSmart.NET/DL.php?id=1

  • How can I remove sketch of the community of view when I open Adobe Sketch on iPad?

    I appreciate see occasional examples the sketches of the community, but by default, I prefer the app to open only with my saved projects. How can I remove the community of default presentation sketches?

    Hi John,.

    At present, has no way to toggle market art community in Behance. It is, however, a request we receive occasionally, so I'll pass your comments along to the team.

    Sue.

  • How can I remove entries from the catalog of PSE 8 Organizer when his picture does not appear in the browser?

    I imported a group of files in the folder, and organizer gave me the pop-up "new files in track files" and imported correctly.  Then I used Windows to copy these files in the folder B, also a control folder.  Once again, organizer gave me the pop-up "new files in follow the folder" correctly, BUT showed no files imported into the browser, despite everything show, etc.  I used Windows to delete all files in the folder B, then has tried to re - import.  Organizer doesn't say ' no file imported, because they already exist in this folder.  Apparently, the files are saved in the catalog, even if they are not physically there.  How can I remove these catalog when there are no photos in the browser, I can click and say ' Delete catalog?

    Oh, ugh!

    The answer to your question of title, is that you cannot correct this situation by using the Organizer.  Without a doubt, something in your database (catalogue) is screwed up.  The database is a SQLite database, so if you know someone who is a type of database that is experienced, it can use a database query tool to clean the entries in the media_table table.  This can be more or less a complicated matter, depending on how much other data you must save - you will certainly need to work closely with him on this issue.

    The best thing to do, of course, is to create a new catalog and start from scratch.  Lose all your work with labels and albums will result, but...

    At least now you know how to get copies of your photos in the Organizer in the right way.

    Ken

  • How can I remove some of the history of firefox

    I have Firefox history from 2008 to 2016. How can I remove 2008-2012? Can I make a backup of part only?

    What story do you have in this time?

    You can type a colon in the search bar in the Manager history (library) to get a list sorted by time and then start to delete the history from the bottom. It is best not to select too many items at once by Shift + Ctrl + PG. Prev starting from the bottom, 1000 is a good value to start. You can press the delete key to delete the selected items.

    See also:

  • How can I remove icons of the screen of high office

    How can I remove icons from desktop screen?

    These icons represent files stored in your desktop folder. If you move these files to other folders, or delete these files, icons no longer appear on your desktop.

  • How can I remove me from the public beta program

    From Googling, it seems that I have go to System Preferences and click on App Store, where I should see an option «your computer is configured to receive seeds of pre-release software update» However, I do not see this option

    Hi Tony,.

    Looks like you want to get out of the public beta program for your Mac. Is this fair?

    This page of the FAQ has instructions for leaving the program - Apple beta software program

    Specifically -.

    How can I leave the Apple Beta software program?

    To exit the program, visit the Unenroll page and follow the instructions to remove the Apple Beta software program of your Apple ID.

    You can also reinstall a version of Mac OS X on your computer-

    How to make a version of Mac OS X on my Mac?

    Always back up your computer before you install the beta software. To obtain release of the shipment of Mac OS X on your Mac, you can simply install the final version of the software you're testing when it appears in the Mac App Store. If you want to return to a previously published version, you must first delete the beta software, then re-install the latest version of Mac OS X and finally restore from your backup Time Machine.
    Learn more about how to erase and install OS X 
    Learn more about how to restore from a Time Machine backup

    Thank you for using communities of Apple Support.

    Best for you.

  • How can I remove duplicate in the massive window music player songs

    In the music player files window, I have several duplicate songs.  It's frustrating because he keeps doing again and again.  Help.  What can we do?  What is an upcoming update?  I can't stand this more

    Hi Kathleen,.

    How can I prevent double or invalid entries to be added to my library when I play music files?

    When you move digital media files on your computer, the file name and file path information remain unchanged in your library. Then when you select a file to play to its new location, a new entry is created in your library if you select the option automatically added to your library when played. As a result, your library can quickly contain a large number of entries, duplicate or invalid.

    To prevent music files to be automatically added to your library:

    1. in Windows Media Player, click the Tools menu, Options.

    2. on the Player tab, clear music to add to the library when played check box.

    Now, when you play music on your computer or the Internet, the file will not be added automatically to your library.

    If you have problems, try these methods and check if it helps.

    Method 1: Clear database of Windows Media Player cache files.

    a. exit Windows Media Player.
    b. press the Windows key + R, type %LOCALAPPDATA%\Microsoftand then click OK.

    c. Select the Media Player folder, and then delete.

    d. restart Windows Media Player.

    Method 2: Delete the Windows Media Player database and check.

    a. exit Windows Media Player.
    b. press the Windows key + R, type %LOCALAPPDATA%\Microsoft\Media Player, and then click OK.
    c. Select all files in the folder, and then click delete on the file menu.
    Note: You don't have to remove the folders that are in this folder.
    d. restart Windows Media Player.
    Note: Windows Media Player automatically rebuilds the database.

    Please post back with the results and we will be happy to help you further.

  • How can I remove one of the double AdobeIDs on my iPad?

    I bought an e-book and when I tried to transfer it to my iPad I get the error message that the application is allowed with two user accounts (the one that is the same AdobeID I used in the download, and which is obsolete - my old e-mail address of company). How can I delete the wrong / obsolete AdobeID on my iPad? (Or whatever is necessary for me to transfer the eBook file to iPad)

    Hi Skogshildur,

    In order to remove the Adobe ID completely, please Contact Customer Care

    Don't forget to stay signed with your Adobe ID (email address) before you access the link above*.

    Select the exact options indicated below in the capture to get support of screen options:

    Please write to us if it helps.

Maybe you are looking for

  • Cannot connect HP Photosmart 5515 series wireless on my laptop

    Hello, I use a hp pavillion g6 and im trying to connect wirelessly to my printer Photosmart, 5515 but im having problems with the computer was implemented wirelessl room in my house for a while and me can print quite easily using my Iphone but I cann

  • HP ePrint App: how to remove old printer from HP ePrint App

    I'm trying to remove my last printer from my HP ePrint App, but whenever I want to print something from the old printer app still lists as an option as well. I have reset App Data, reinstalled the app, deleted from the site logged in and tried HP pri

  • Update SX 20 TC 7.3.4

    Updated 7.3.4 correctly, one of the questions remaining, no visible source of PC on the codec. Codec receives the pc signal. any suggestion.

  • Multiple copies of blackBerry Smartphones

    Recently during the synchronization of my curve 9300 found in double or triple copies of my photos from iphoto. This habit never to arrive and I am at a loss, how to prevent it from happening whenever I sync my phone. Any help would be appreciated.

  • Screensaver for blackBerry Smartphones

    Make the curve 8310 have a screen saver option