HitTest, code can reside in the symbol?

I know that I can place a hitTest on an instance of a symbol to help:

{onClipEvent (enterFrame)}
If (this.) HitTest (_root.someMC_mc))
do something
}


but is it possible to place the hitTest in the symbol so that all instances of the symbol are the hitTest?

Thanks in advance!

It of bad coding, but yes.  timeline of the movieclip:

{this.onEnterFrame = function ()}

{if (this.) HitTest (whateverpath. InstanceName))}

No matter what

}

}

Tags: Adobe Animate

Similar Questions

  • BlackBerry smartphones can not SEE THE SYMBOL of THUNDER DURING the LOADING

    I can't see the symbol of Thunder when I load my BB 8520 C. It happened just after I upgraded my software. Please help! It is difficult for me to know if it is already fully charged. How can I report the symbol? Thank you very much!!!

    If you have a theme that he won't show

  • How can I find the symbols of multiplication and division on my Windows 7 computer

    How can I find the symbols of multiplication and division on my Windows 7 computer

    They are * to multiply and / for division.

  • How can I change the symbols of meter for slide show templates in Muse?

    How can I change the symbols of meter for slide show templates in Muse? Currently, they are obviously normal text characters. So, how can I change the filled circles, for example?

    Hello

    If I not mistaken, you want to change the style, ect of the navigation in a slide show arrows. To do this, double-click the arrow. The container of the arrow is highlighted. You can then use the fill option and use the rounded corners option. You can use all the picture with her fill option.

    Please let me know if I'm missing something.

    Kind regards

    Aish

  • I can't find the symbol of the home page. Just updated to 6.0.1

    When I upgraded, the symbol of the homepage has disappeared. How can I put back it in a toolbar?

    He is really gone, or is it now on the right side of the address bar? You can move it or pick it up in the window customize first, opening the window customize toolbar. Right-click on an empty area of the navigation bar and choose Customize.

  • How can I move the symbol of the HOUSE back to the left where it used to be?

    Seen the symbol of the HOUSE on the right is a little awkward. How can I move this back to the left where it used to be?

    You can try this to see if it helps:

    View > toolbars > Custom

    In the window, again dragging it réécrirait everywhere where you want, and then drag the home button.

  • How can I write the symbol ' greater than or equal to "in a string or a label?

    Hello

    I tried to use the "symbol" font to create the greater or equal symbol, but it does not work.

    Does anyone know how to do this?

    Thank you

    User

    The only way I know to do, is to type in the appropriate character code (Alt-0179, using the keypad), then highlighting the unique character (in most fonts, it is the exponent 3), then change the font to "symbol".  The rest of the characters in the string will be in the same font as before, only the highlighted character will change.

  • How can I keep the symbols sprayed the protrusion of a shape?

    I have a green circle (see attachment), and through it, I sprayed some symbols.

    How can ensure me that only symbols sprayed are visible inside this green circle?

    (I essentially want to clip the symbols sprayed with the circle)

    Screen Shot 2014-10-23 at 21.10.00.png

    Thanks in advance

    Alex,

    Create a copy of the circle above the symbols and then select until those and object > clipping mask > make.

    (1) select the circle and Ctrl / Cmd + C + F + X + F;

    (2) select the copy of 1) and symbols and object > clipping mask > make.

    This will hide the symbols (part of) the outside of the circle.

  • In the code of .click on the symbol instance, refer to the car?

    In code .click on a symbol instance, how should I do to itself (the symbol instance)?  Surely, I must not give the name of myself; It would be redundant.  I want no coding colleagues to be able to reproduce the special symbol with no naming scheme and no change in the code for each.

    I have many instances on the stage.  Each contains two div and the second div contains an image named "checkmark_outlined2".  I do not use a calendar, just setting properties in code.

    Pseudo-code of what I want to do is simple:

    what symbol instance receives a click

    adjust the opacity of my image to 0 / / than my picture, not those of the other instances of the same symbol

    adjust my overall opacity to 0.5 / / same here

    If I understand correctly, sym in this context always refers to the stage rather than the symbol instance

    Hey bdggr,

    Try this:

    .CSS ({$(e.target) sym.})

    'opacity': '0 '.

    });

    This will set the opacity to 0 on the selected object, without having to specify the name of the element. -What are you looking for?

    Sarah

  • Did not get the product for Media Center-no code can not process the order

    I asked the promotional offer for Windows 8 Media center, but never received the code.  He said that it takes 72 hours to receive, but it has been good (probably about 2 weeks).  I checked all my email, including spam, and there is no email with the code.  I tried 3 e-mail addresses and now all I get is "cannot process order.

    Hi Sukeyrh,

    Sorry to hear that you have a problem with that.

    You may reach the Service the customer to know that you run in. You can find the telephone numbers of the Service the customer in your area below:

    United States: 1-800-Microsoft (642-7676)

    Canada: + 1 877 568 2495

    Comprehensive list of phone numbers can be found here.

    Keith

  • Where can I find the symbols of a foreign language

    I used before foreign language section, but it has been awhile.  I can't remember where it is.

    Are you referring to the character map? Start | All programs | Accessories | System Tools.

  • How can I remove the symbol us $ in my wallet?

    THE USE OF FIREFOX.  WINDOWS 7

    Hello

    Are what portfolio you referring?

    You can contact Mozilla Firefox for additional help.

    Here is the link: http://support.mozilla.org/en-US/questions

  • I can't see the emoticons like I used to (yellow faces) I can't see the symbols just too :) or: P I don't know what to do! can I have a virus or is this just a temporary problem? Help, please!

    is there a link to msn messenger where I could write them?

    Hello Sorineijia,

    Thank you for your message.  What version of Messenger are you using currently?
    You may be able to activate by following the steps below:
    Open MSN Messenger > click Tools > click Options
    Select the 'Messages' tab > make sure that the option 'Enable emoticons' is checked.
    Please let us know if it did or did not help to solve the problem.
    See you soon

    Engineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • How can I change child symbols without changing the siblings or parent symbol?

    I copied a symbol about 10 times (alt drag), I want to edit each of the symbols copied so that they are slightly different but whenever I edit one, all the others will change with it. whenever I do a right-click on a copy of the symbol to edit it will ask me if I want to change the symbol 1 (the name of the parent symbol)

    How can I change the symbols of siblings?

    When duplicating a symbol, you must do it in the symbol library, not the assets Panel.

    But, as you say if you have children symbols in it, they intend to reflect any changes that you make to them in the symbol of origin except if you make them changes dynamically. For example, if you have a text on the symbol of your child and to change the text, then do it dynamically. even with the images.

    If you duplicate a symbol that contains only items and no child, you can change anything you want in the copy that you made in the symbols Panel.

    You could also symbol Children swap in this symbol dynamically. This requires a good knowledge of the scope of the symbol.

  • WHAT IS THE SYMBOL THAT LOOKS LIKE A DROP OF WATER?

    This symbol appears in the column 'Size' 'object and presents it as Orange in color. I have a spam message with this indicator, which I can't delete my account 'All messages', even if I took steps to remove the trash (where it was corrupted). Can I remove the symbol or is it defined by the sender, and if I can, this will allow me to remove the email?

    I suggest that you forget and ignore the folder "all messages". It's an artifact of the way googlemail inwardly eat your email. Basically, you don't need to see or work with the folder all the messages.

    Unsubscribe it in Thunderbird. Most almost everything you can see in all messages will be visible in Thunderbird in some folder is appropriate.

    People who try to directly manipulate all couriers often come here we all say their mail has disappeared, having not understood it is a vision of their store of all mail.

    https://support.Google.com/mail/answer/78892?hl=en
    https://support.Google.com/mail/answer/82367?hl=en

Maybe you are looking for