hitTestPoint() shapeFlag does not not on movieClip containing the loaded swf

I have a file .swf that contains a circle jpg I load from a URL, make a movieClip and add it to the stage.

I would like to be able to detect when the user places the cursor over the circle. I wish it were accurate in a way he doesn't simply use the framework encompassing the circle, but the real circle himself in order to detect a collision. It is a fragment of my current code:

var myCircle:MyCircle = new MyCircle (swf);

myCircle.addEventListener (MouseEvent.MOUSE_MOVE, onMouseMove);

myContainer.addChild (myCircle);

private void onMouseMove(event:MouseEvent):void {}

var glowFilter:GlowFilter = new GlowFilter();

glowFilter.color = 0xffffff;

If (event.currentTarget MyCircle) {}

var object: MyCircle = event.currentTarget as MyCircle;

If (object.hitTestPoint (event.stageX, event.stageY, true))

event.currentTarget.filters = [glowFilter];

else event.currentTarget.filters = [];

}

}

I was led to believe the shapeFlag hitTestPoint() method parameter wouldn't do this, but assigning true or false doesn't make any difference. Any ideas why this could be?

convert your png to a vector (select your png on stage, and then click Modify > bitmap > trace bitmap) and remove the background.

Tags: Adobe Animate

Similar Questions

  • Windows vista family premium does not start, stuck at the loading bar

    My acer aspire abruptley off without going through the proper closure procedure, now when I try to start the laptop, it hangs at the loading bar Microsoft corporation just before you enter you password, I tried to start in safe mode and it crashes to the crcsdisk.sys file (something like that) and I have when I try to Startup Repair scans try to repair a disk error I believe and says "can't." fix automatically' I do not know what to do and I'll have sleepless nights on the dam to help much appreciated thing.
    Adam

    It depends on what caused the problem. The system could have hardware problems and need
    repair. I would like to have a competent computer store look at the. And get the disc would be a
    good idea.

    "It is a serious mistake and"may"not be fixable without professional technology support of.
    a real computer store (not the leeks and the glances at a BestBuy or other BigBox stores) or your
    Manufacturer of system support.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • My mac does not start, stuck on the loading bar and I can't reinstall OS as it says disk is locked!

    Hello

    my iMac running mountain lion refusing to start, it sticks on the apple logo and progress bar, and the spinning wheel. My files are backed up and sure if this isn't a problem I tried disk utility to reinstall the OS but when I pass the single player is HD recovery and it is blocked! What should I do?

    Installer Lion through Mavericks scratching

    Make sure that you back up your files.

    1. Restart the computer and after the buzzer, press on and hold down the COMMAND and R until the Apple logo appears. Wait for the Utility Menu to appear.
    2. Select in the main menu disk utility and click on the continue button.
    3. After disk utility charges select the volume (this is the entry indented, usually Macintosh HD) in the list to one side. Click on the Erase tab in the main window of disk utility.
    4. Define the type of Format Mac OS extended (journaled). Click on the apply button
    5. When the process is complete, quit disk utility and re-enter the Utility Menu.
    6. Select reinstall OS X and click on the continue button.

    This will install the version of Mac OS X, you had installed.

    HD Recovery must be locked but always bootable. If it's not bootable then the problem is with the drive, but you have not provided sufficient information such as the exact iMac model you have and what you have tried to do, and how you did it. You will need to provide the exact wording of error dialogs that you received. You can try the following, if the disc is locked because of permissions is set incorrectly.

    Set Permissions to a locked drive

    Enter the following commands at the command prompt. Press RETURN after each.

    chflags 0/Volumes / *.

    chmod a + rx/Volumes / *.

    You will need to boot from the HD Recovery to perform the above, because you can't boot OS X.

    Start at the HD Recovery:

    1. reboot the computer.

    2. immediately after the ring, press and hold the

    Keys 'Command' and 'R' together.

    3. release the keys when appears the utilities Menu.

    4. in the Utilities menu in the menu bar select Terminal.

    5. Enter the lines above in the Terminal.

  • How the get function is available or not on the loaded swf file

    I have 100 swf file in one of my projects. And there is a common feature in some of the SWFs. All these files are loadded in the file main.swf. Here's my Question, "If have the common function is the swf file that is loaded, int how to trigger this funciton of the main.swf.

    Quite simply,.

                if(movieclip.test){
                    movieclip.test();
                }
    

    ('movieclip' is the loaded SWF file and "test()" is the function)

  • One of the USB devices attached to this computer has malfunctioned and Windows does not recognize it. The location is the root (2 ports) USB hub: 1-unknown device and Port 2-not used

    Original title: USB device not recognized

    Over the last 2 weeks, I get a message on a USB device.  The message said that one of the USB devices attached to this computer has malfunctioned and Windows does not recognize it.  The location is the root (2 ports) USB hub: 1-unknown device and 2-unused Port.  I have no idea what it means.  I hesitated to first click the icon (it does not last very long) thinking it could be a scam.  Can someone help me?  Thank you.

    Hello

    (1) is the specific question of specific USB devices?
    (2) did you of recent changes to the computer before the show?
    (3) have you tried plugging the USB stick on another computer?

    (4) what is the brand and model of the computer?

    I suggest to refer to the following methods and check if it helps to solve the problem.

    Method 1: Hardware devices do not work or are not detected in Windows

    Run Microsoft Fixit mentioned in the article.

    http://support.Microsoft.com/mats/hardware_device_problems/en-us

    Method 2: USB Port may stop working after you remove or insert a USB device

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

    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base: 322756 How to back up and restore the registry in Windows

    Reference:--

    Advanced troubleshooting tips for General USB for Windows XP problems: http://support.microsoft.com/kb/310575

  • How can I download the drivers for a processor that crashed and does not have access to the internet

    How can I download the drivers for a processor that crashed and does not have access to the internet.  The drivers seem to be the problem.

    How can I download the drivers for a processor that crashed and does not have access to the internet.  The drivers seem to be the problem.

    First of all, please note that you mean a computer, not a cpu.  "CPU" means "Central processing unit". In modern personal computers, the CPU is a relatively small chip, an integrated circuit. It is located on the motherboard inside the computer case. It is not the case itself, nor is it the total computer, which includes the case and what it contains.

    Download drivers on another computer and put them on CD or thumb. Bring them to the computer in question, and then copy them there.

  • What are the causes of media error does not exist, even with the inserted disc

    I have a video project of 2 h I want to put on a DVD in NTSC format.  I get a msg of error 'Media does not exist', even with the DVD inserted in the drive.  I checked "Fit content to the space available.  Is the hr project 2 too long to compress the DVD, or are there other possible causes?  I have made a project of 1 1/2 hours without any problem.  I have a lot of hard disk space.

    Download orders

    What version of Premiere Elements and on what operating system works - it?

    The problem is the disc in the tray of the burner not recognised by Premiere Elements. Another frequent related issue is location of burner: burn dialog is empty when the Premiere Elements does not recognize the burner.

    In the problem that you have.

    have a. you tried other brands/types of DVD discs?

    b. If you start a new project and take the new timeline content DVD-video to DVD disc, the problem remains the same?

    B. have you tried to uninstall / free program ccleaner cross / reinstall with antivirus and firewall disabled?

    If you are in a time crunch, you should consider burning the chronology contained in the record and then taking the the VIDEO_TS folder

    recorded in a program like ImgBurn for DVD-VIDEO on DVD production.

    Please check and review and then provide you with the way to details. Looking forward to your results.

    Thank you.

    RTA

  • 10g - what makes OBIEE does not cache files in the cache folder?

    Hi, experts,

    I would like to know
    What makes OBIEE does not cache files in the folder cache VIEW OF REQUEST (reports on dashboard)?

    of course, I activated the cache in nqsconfig.ini

    a few reasons why a query is not cached in obiee are:

    1. None of the tables involved in should be deleted from the query caching. Check the options for this option of caching of the physical layer.
    2. cached queries must follow all the presets in nqsconfig.ini. For example, size of cache entry, etc...
    3. the request must not contain functions such as current_timestamp, current_date, random functions, etc...

    I hope this helps.
    -bifacts :-)
    http://www.obinotes.com

  • iTunes on pc does not recognize my iphone. the pc does. the iphone asks me to allow access to what I do

    iTunes on pc does not recognize my iphone. the pc does. the iphone asks me to allow access to what I do

    Hello

    Check this help page: If iTunes does not your iPad, iPhone or iPod - Apple Support

  • As it can be seen in the OS 3 Web page will be available today, 13 September. However my Watch App does not seem to see the update according to the availability. When I go to software update, he repeats that my watch is up-to-date with OS 2.2.2. OS3 will

    As it can be seen in the OS 3 Web page will be available today, 13 September. However my Watch App does not seem to see the update according to the availability. When I go to software update, he repeats that my watch is up-to-date with OS 2.2.2. OS3 will be available today?

    Hello

    Yes - Apple advises that watch OS 3 is scheduled to be released sometime today.

  • Hi all, I bought apple phone I 5s recently is the power button / stop does not. Bought in the United States, but I was shifted to the India, the works of will to guarantee in India please help

    Hi all, I bought apple phone I 5s recently is the power button / stop does not. Bought in the United States, but I was shifted to the India, the works of will to guarantee in India please help

    Ask an authorized service provider regarding iPhones, a guarantee of a country may or may not be honored in another function where you take the device.

    (143868)

  • By pressing the home button does not take me to the home screen of iOS 9.3.3

    I have recenly updated upgraded to iOS 9.3.3 and I noticed that pressing the home button does not take me to the home screen. The only way to get there is by using the creature of multitasking. (double pressing the home button) Also, some applications seem to freeze if turn my phone off and then turn it back on, or when I access it via the multitasking function. Can someone please help?

    Try a forced reboot. Hold down the Home and Sleep/Wake buttons at the same time for about 15 seconds, until the Apple logo appears. You won't lose anything.

    If a force restart does not help, try a system restore. First save your device via iTunes. Also import your photos on your computer and copy all the important data. Reconstruction of the support first test and test. If this does not help, you may need to restore as a new and reconfigure from scratch as the backup may be damaged. It is important to have your photos and your saved data separately from the backup. Here are the steps for a restoration:

    https://support.Apple.com/en-us/HT201252

  • CAPTCHA does not. have tried all the solutions support and installed the new FF. still does not. Help.

    CAPTCHA does not. have tried all the solutions support and installed the new FF. still does not. Help.

    Try creating a new profile as a test to check whether your profile is the source of the problems.

    See "basic troubleshooting: a new profile:

    There may be extensions and plugins installed by default in a new profile, so check that in "tools > Modules > Extensions & Plugins" in case there are still problems.

    If the new profile works then you can transfer files from the old profile to the new profile, but make sure not to copy corrupted files.

    See:

  • address bar does not respond by typing the URL and press on enter

    Address bar does not respond by typing the URL and press to enter. All the other links work well. I used version 7 and version 8 upgrade did not fix the problem

    I had the same problem. I just uninstalled digsby ask toolbar, and now it works.

  • My firefox does not work llook like the most recent version. I downloaded it on my aunts comp and in the corner upper lft, there's a firefox orange box but still just mine has firefox symbol.

    I had firefox for over a year and I recently installed on my computer of aunts. When I've done in the upper left corner, there was an orange box that says firefox on it. I have recently installed on my computer and it's always the same, as I had before. (Just the symbol of firefox) How can I get the latest version? It does not say I have the 6.2 or what is the most recent. Thank you in advance for the quick response to my question.

                                        Amy Vitko
    

    The current stable version is Firefox 6. 0.2

    https://support.Mozilla.com/en-us/KB/how-do-i-get-Firefox-button
    Why can't I see it?

    To make Firefox look like other programs in Windows XP, the menu bar is displayed instead of the Firefox button, while under Windows Vista and Windows 7, the button is displayed by default in Firefox.

Maybe you are looking for