I am garbage?

Hello

In some frames of a MC (sandal), I add it to an another MC (gamelevel), I run a hitTestObject between her (sandal) and a few other MCs (they are in Baker).

Here, in the main class, I do the sandal:

public void hitBySandal () {}

var sandalH:Sprite = new Sprite();

sandal: sandal from var = new Sandal();

sandal.scaleX =. 5;

sandal.scaleY = sandal.scaleX;

sandalH.x = mouseX - sandalH.width;

sandalH.y = mouseY - sandalH.height;

sandalH.addChild (sandal);

gamelevel.addChildAt (sandalH, bArray.length + 1);

}

and here, in frames of some sandals, I coded:

var mc:MovieClip = MovieClip (this.root) ; //this.root is my mainclass

addEventListener (Event.ENTER_FRAME, checkHit);

checkHit function (event: Event) {}

for (var i: int = 0; i < mc.bArray.length - 1; i ++) {}

If (this.hitTestObject (mc.bArray [i])) {}

MC. Kill (mc.bArray [i]);

}

}

}

I have add and remove this eventListener in some other settings where I need hitTestObject.

1. I need to know if var mc:MovieClip = MovieClip (this.root) is simply copy my main class, which is a huge scene, and if so, it (memory) completely disappears after removing the sandal?

2 can I NOT build above the mc and work directly with the this.root? (he knows this.root, BUT not its variables as Baker)

To remove the sandal and its holder, I coded in its last picture:


Stop ();

removeEventListener (Event.ENTER_FRAME, checkHit)

this.parent.parent.removeChild (parent);

So I do things right or all just garbage?

MC is a reference to your main timeline.  It is not your main timeline.

that reference is lost when the movieclip that contains the reference is gc would be.

I wouldn't say, you are garbage, but you make a mess with a code and class code on the timeline.  Although, if your class code alone is your main class code, it's just a mess ordinary typical of actionscript coders novice.

Tags: Adobe Animate

Similar Questions

  • Preparation of the removal of the garbage continues to go

    I tried to back up my hard drive, (Yosemite running) using Super Duper.  He said, could not save because something in the garbage would not go. I had previously removed a virus threat and thought that perhaps it had not been removed.   I tried a secure deletion, and this prevents prepares empty and at the present time indicates that it is 2.5 million points and rising.  What I'm doing! Thank you.

    I would not use the secure deletion feature. Is not necessary.

  • Save the Wikipedia article gets "garbage" in comparison with Chrome

    Hello

    I can't save "Printable" Wikipedia article (th) using firefox. Save the same URL using chrome no problem. The file is saved by firefox especially resembles a text stream.

    Help? Thank you.

    Link to the printable wikipedia article: https://th.wikipedia.org/w/index.php?title=%E0%B8%AA%E0%B8%96%E0%B8%B2%E0%B8%9A%E0%B8%B1%E0%B8%99%E0%B9%80%E0%B8%97%E0%B8%84%E0%B9%82%E0%B8%99%E0%B9%82%E0%B8%A5%E0%B8%A2%E0%B8%B5%E0%B9%81%E0%B8%A1%E0%B8%AA%E0%B8%8B%E0%B8%B2%E0%B8%8A%E0%B8%B9%E0%B9%80%E0%B8%8B%E0%B8%95%E0%B8%AA%E0%B9%8C&printable=yes

    COR - el, thanks for the suggestion. Start in safe mode solves the problem of saved to save/load file. I don't know if all Add - ons uses Greasemonkey or not, but the text of garbage has at least a Greasemonkey inside. My problem is "Wikitweak". DOH!

    Wesley, the theme I've used does not seem to be a problem. Start in safe mode using the theme worked flawlessly.

    jscher2000, I use "save the page under", recorded with a repertoire extra and everything.

    Thank you again for your help. Now, I did. I guess the 'safe mode' is the default value at the stage of debugging anyway.

  • I get garbage when you click on "View Page Source" of maff backup files.

    Hello
    Saved files mhtml and html, the HTML etc code view when selecting "View Page Source".
    Since the installation of the add-on Firefox to save web pages in the form of maff files, when you click on "View Page Source" it displays garbage.
    Is it possible to view the original source of a maff file saved?

    A MAFF file is a ZIP archive, so you should have extract the files in an Archive Manager, if you do not use an extension to handle this type of file.

  • What was the problem for the 5/6 and 6/6 all email was text garbage?

    all e-mails from 6/5 and 6/6 on my desk is garbage text., there is no problem on now 6/7 or 6/4 before and still the same email for those dates on my smart phone was OK to read.

    and if you right click the folder and select Properties, then on the button repair. What is fix?

  • Parachute does not not between iOS and Mac devices... Does anyone have a good solution for it nor a lot of garbage to support

    Parachute does not not between iOS and Mac devices... Does anyone have a good solution for it nor a lot of garbage to support

    You want the solution? Why not tell us what Mac and Apple, mobile devices you have the OS and version?

    Also what troubleshooting steps you took?

    We do not have a crystal ball, and we're not sitting next to you.

  • When I am write an e-mail or you answer why did I not many many copies in my garbage can to clear it, seems a bit strange

    I love all the extra garbage that I get like all my email comes to me now to gmail. So, when I'm answering e-mail or in writing, my Act of bin trash anyone I'll forget something that I write and copy down into the trash, so at the time where I got to write to someone or you answer that I have about 10 to 100 copies or more of the same letter with virtually every break ventilation I take?
    It's annoying to have to throw more of a response or by e-mail, and he reminds the NSA?
    Not that I should give a rats Donkey but it of boring and take a little more time to dump!

    empty the trash right click takes the same time regardless of the content.

    However I get where your coming from. You don't say, but I guess it's gmail?

    Bug https://bugzilla.mozilla.org/show_bug.cgi?id=618553
    and the https://bugzilla.mozilla.org/show_bug.cgi?id=562748
    and https://bugzilla.mozilla.org/show_bug.cgi?id=482836

  • Garbage is displayed only in Gmail.

    In gmail ONLY, symbols of garbage re appear instead of the gmail page. I have uninstalled/reinstalled, checked codes UTF and there tried virus scanning.

    You can check the preferences of network.http. * on the subject: config page and delivery to zero all users "BOLD" network.http set prefs by default via the context menu-> reset.

    Check at least:

    • Network.http.Accept - encoding: gzip, deflate
  • When I try to open a menu on a web site, she want to open with Notepad which gives me garbage. How to open in adobe?

    When I try to open a menu to a restaruant on a web site, she want to open with Notepad which gives me garbage. It does me no options to open it with adobe or another option.

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".
  • My iphoto garbage will delete (empty). Over 4000 photos are in the garbage awaiting removal.  Help!

    My I have garbage removal site Photo will NOT delete. I have over 4000 photos etc stuck in limbo.  Help!

    I have over 4000 photos etc stuck in limbo.  Help!

    This is probably the problem.  Older versions of iPhoto have a bug and cannot empty the trash, if the Recycle Bin is too full.

    Take some items from the trash, until you only have a few hundred items, then try to empty the trash again.

  • I am unable to PDF vacuum garbage.  I get a pop up: the operation cannot be completed because the item is in use.  Any suggestions?

    I am unable to PDF vacuum garbage.  I get a pop up: the operation cannot be completed because the item is in use.  Any suggestions?

    Are all the other apps open while you try to do this?

  • Can't empty the trash due to a file with the filename of garbage

    MacBook Pro El Capitan - Trash has a/b/folder with a file with Chinese characters of garbage looking like file name which can not be changed or done something with. Trash does not open. sudo rm - rf don't get rid of it either. Any ideas?

    Thank you.

    Check SystemPreferences-> users & groups-> LoginItems, to see if there is something that has to do with this file, if so, remove it with the sign, if not, the next step:

    Restart the mac and then empty the trash.

  • meter returns garbage values

    I use cDAQ 9184 and 9401 digital I/o card, I use the counters available for the measurement of the frequency (pulses are generated by a sensor hall, whose frequency I want to measure to estimate the speed of the motor DC.) But the problem is that this counter returns garbage values. I tested the card and its counters that they are working correctly. What could be the possible causes of what is happening?

    attach a snapshot of the VI.
    Please hep out me as soon as possible.

    Thank you and best regards.

    Are these garbage values much higher frequency than you expect?  If so, you're probably picking up noise and should allow the filter PFI for your task.

    Best regards

  • Can I order my new laptop with no garbage software?

    When I ordered a DV6500 laptop a few years and it was stuffed with all that extra garbage software.  The laptop went very wrong.  I went out and bought Vista Ultimate, amazed the disk and loaded on my copy of Vista.  It's amazing to see how much better my laptop ran.  I have never had a problem with it as I did.

    Now, I am looking to buy a laptop Hp DV5Z.  With Vista HP always charge on all this garbage software?  If so, how many concerts will they face now?  Any way to order this new laptop with Vista right on this garbage software only?

    A program called PC Decrapifier will get rid of any preinstalled software.

  • Envy 17 t J100: Windows 10 is not good upgrade on HP garbage owners

    Hello

    Am I crazy?

    Not so much of an issue - just a warning on the HP proprietary, software drivers and windows 10.  I've updated two tablets of Samsung windows and an old desk with NO problems.

    Exclusive HP on my desire to TRASH turned into a door stop.  Gee - what a surprise.  There are of course many people having problems updating to Windows 10 on any knid of HP.

    AFTER 15 HOURS of frustration (I'm not a beginner) and following the "patches", I finally got the POS to start Windoze so that I can restore 8.1

    He recovered but is flaky now - may find themselves from scratch.

    So the question is, YOU want to go through this kind of (* & %?)

    It's the BEST thing to do with garbage

    Turned on my "want" 17 t and got a "Please install an operating system.

    DEAD.

    I had backed up the trash exclusive catering to a USB key and it has been verified by the ' puter.  I also had an image of the drive backed up on an external drive.  Who does not work either.

    As there is NOT a disk to restore to my 17 t it is a doorstop now for sure.  No way to recover the (* & $$ % ^ & * thing.)

    Please enjoy the photos as much as I liked to kill him

    R

  • iTudou cannot function properly and the text appeared as garbage

    I had downloaded iTudou.  However, when I install the program, the words appeared are garbage, could not read.  After trying to install it, he managed to run and complete the whole process.  However, I couldn't download iTudou files, and trying to unsiall, it did not work either.  Could someone help?

    Hello

    ·         What operating system is installed on the computer?

    ·         What happens when you try to uninstall iTudou?

    ·         You receive an error message or code when uninstalling it?

    ·         Where that you have downloaded and installed the iTodou?

    I suggest that you put the computer to boot and then try to uninstall the program and check to see if it helps:

    http://support.Microsoft.com/kb/929135

    Note: Reset the computer to start as usual by following step 7 from the link above.

    Reference: Uninstall or change a program

    If above method do not solve the problem, then post back with the required information, so that we can help you further.

Maybe you are looking for

  • Why no photos at Aftonbladet?

    Hello Why no pictures to www.aftonbladet.se?Stock browser shows them so it is not the site... ToddeSwe

  • Options of Touchpad disappeared on Equium A200 with Vista

    Hello I searched all over the web for a solution and found nothing that works. I have a satellite A 200, bought 6 months ago. I used to be able to adjust the settings on the touchpad, clicking in its pointing device properties, then settings in the d

  • How to completely remove and uninstall Xtreeme SiteXpert common edition?

    I'm in a need remove Xtreeme SiteXpert Standard Edition from my computer, but I really had no idea of what I need to do? Although Xtreeme SiteXpert Standard Edition is a very useful program. The reason is that I'm unable to update it. I'm really conf

  • Error "relocation start menu" when you try to open the search wizard.

    original title: I need to install windows XP, I back up my files, system works terrible because of the purchase of service pack 3 to an unreliable sorce.  I thought they were microsoft. Can help you me with this, my research assistant does not work h

  • Photosmart C410b installation on Windows 8.1

    Hello I have a Photosmat C410b printer and have a Microsoft Surface with Windows 8.1Pro Prieview. The HP PS_AIO_07_C410_140_408.exe software was used to connect to the network printer. After the installation of the printer was working without any pro