MC to follow the cursor but not off stage...

Howdy... I have a few info boxes that appear on the MOUSE_OVER on an MC.  I put their mouseX mouseY position and when I want them to appear.  The problem is that when I mouse over something near the edge of my scene, the info box appears beyond the limits of the scene.  Is there a way I can force the infobox X, Y, so that she's not going off the coast of the State?

At the present time, that's how I define the X, Y of the (very simple) text box.

trlinfotxt.x = mouseX;
trlinfotxt.y = mouseY;


Thanks in advance...

-josh

You can use conditional statements to adjust the x / y positions if the mouseX/mouseY positions would place the mc on the scene... you probably need to check all sides.  In general...

If (mouseX<>

trlinfotxt.x = someMinimumX;

} else if(mouseX > someMaxValue) {}

trlinfotxt.x = someMaximumX;

} else {}

trlinfotxt.x = mouseX;

}

and even for the things.

Tags: Adobe Animate

Similar Questions

  • Help! I need this movieclip to follow the cursor but only in some details!

    Hello

    I'm rather new to action script and need a bit of a kick in the right direction.

    This is what I have a problem with - I used this code to the movieclip background follow the cursor:

    {onClipEvent (enterFrame)}
    x = _root._xmouse
    y = _root._ymouse
    _x +=(x-_x)/10
    FLF +=(y-_y)/10
    }

    I want however - restict movement is so it remains hidden behind the other black point with the graphic "hglf".

    I hope this makes sense and someone can help out me!

    Thank you

    You assign the instance names in the properties panel, or use the library names?

  • I am suddenly unable to rename folders. Insert the cursor, but it does not respond when I type characters, or even when I hit him back out. Know a simple fix?

    After cropping of a photo with Photoshop I discovered that I was unable to rename.  I soon found out that the same thing is true when I tried to rename main folders in My Documents.  I am able to insert the cursor, but it does not respond when I type characters, or even when I hit him back out.  Know a simple fix?

    Name change is a directory operation.  It would seem that you have read and write access to your directories, but you do not change access.  This highlights a problem with file permissions.  How is 'Simple' the fix depends on which version of Windows you have to a certain extent.

    Windows XP Pro (with "Simple file sharing" turned off) using the security"" tab. When you right-click on a file or a folder and select 'Properties', then click on the 'Security' tab to view and change the permissions.

    "How to disable the file sharing simple and how to set permissions on a shared folder in Windows XP"
      <>http://support.Microsoft.com/kb/307874 >

    Windows XP Home Edition is a bit more complicated.  You can start safe mode and log in as administrator for the 'Security' tab as above, or you can open a command prompt window (start-> Run-> "cmd") and allows you to display the 'cacls' command or change the permissions of files and folders.  You should check that your username has permission to ull 'F' for your records.  Not pretty, but it works.

    CACLS: <> http://technet.microsoft.com/en-us/library/bb490872.aspx >

    HTH,
    JW

  • seems I'm not the only one having problems with safari after update 9.3 cannot follow the links. Safari blocks. hope it gets fixed quickly. jaa shooting allows to follow the link, but the Web page is not out of good old days. any oher ideas?

    seems I'm not the only one having problems with safari after update 9.3 cannot follow the links. Safari blocks. hope it gets fixed quickly. jaa shooting allows to follow the link, but the Web page is not out of good old days. any oher ideas?

    The 'list' of relevant articles that I know, they are now

    -You can read about the problems in the present statutes and possibly find workaround solutions, particularly in the last

    If you are unable to activate your iPhone, iPad or iPod touch after installing an update - Apple Support

    Apple iOS suspension 9.3 updates for older devices, work on activation fix | IVous

    Apple launches new version of iOS for iPad users 9.3 2 affected by bricking bug | 9to5Mac

    GSM of unfixed addresses Apple iPad 2 Bug with revised Activation iOS 9.3, but the larger question remains - Mac rumors

    If you are unable to activate your iPad 2 (GSM model) update to iOS 9.3 - Apple Support

    9.3 iOS update issues

    Leave a post by: ChitlinsCC

  • Photosmart 130 for windows 7, had to install a new driver, now its photosmart 330. I followed the instructions but it will not print an image of the computer.

    Photosmart 130 for windows 7, had to install a new driver, now its photosmart 330. I followed the instructions but it will not print an image of the computer.

    There is no Windows 7 driver for your printer, BUT...

    HP provide instructions that should get your printer working at least... follow them to the letter...

    BTW, the printer MUST be connected through a USB cable...

    http://h10025.www1.HP.com/ewfrf/wc/document?DocName=c01796821&LC=en&DLC=en&cc=us&product=75939&lang=en Mike Hall MVP - Windows Desktop Experience http://msmvps.com/blogs/mikehall/

  • Microsoft Bluetooth Notebook 5000 - I can click but the cursor does not move

    Greetings,

    I have a Bluetooth Notebook 5000 mouse that has a weird problem. It is well connected to my computer bluetooth, and I have all the updated drivers. Since last week, when I move the mouse, the cursor does not move (on the screen), but when I click on (either on the middle left, right, even scroll to the top and bottom), it works.

    My guess is that the laser under the mouse thing is probably broken. I tried different surfaces to see if I got any kind of reaction, but none works.

    Now the other problem is that the PID (as well as other numbers) number under the mouse is partially illegible due to wear. I can't see the last part of the PID.

    Anyone got any ideas? And is there a way that it could be replaced under warranty, even with an incomplete PID?

    Best regards

    Philippe

    Hello Philippe,

    Thanks again for the update.

    It is possible that there is a hardware problem.

    I suggest you to contact Microsoft hardware support.
    Reference:
    How to replace Microsoft software or hardware, order service packs and replace product manuals
    http://support.Microsoft.com/kb/326246

    Thank you

  • I have to cancel my subscription. I get free for her. I tried following the steps, but my party member to cancel is not available. It says I have a free subscription, but I did not because I pay for it, each mount. I need to cancel this b

    I have to cancel my subscription. I get free for her. I tried following the steps but my membership to cancel option is not available. It says I have a free subscription, but I did not because I pay each month. I need to cancel this because I did not use this product in months and I continue to pay for it. It's frustrating! I need someone to cancel it for me.

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help
    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)

    Creative cloud support (all creative cloud customer service problems)
    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • An enemy following me around the screen, but not too fast

    Hi, I'm building apps to teach English but through games.

    I want an enemy BUG following me around but NOT TOO soon as I have small children of 5 years using it,

    It would be something like the details of my HERO character and to send the BUG.

    I use the POINT at the moment to send my HERO to where the mouse clicks.

    I could send the BUG there as well but using less x and y increments.

    It would be too heavy for the processor - too much going on with the music as well?

    still, do not remove:

    var speed: Number =. 99;

    public void onEnterFrame(event:Event):void {}

    var xDistance:Number = clickPoint.x - this.hero.x;

    var yDistance:Number = clickPoint.y - this.hero.y;

    If (Math.abs (xDistance) > 10) {}

    var angle: Number = Math.atan2 (yDistance, xDistance);

    This.Hero.x += v * Math.cos (angle);

    This.Hero.y += v * Math.sin (angle);

    } else {}

    this.hero.gotoAndPlay ("static");

    }

    enemy1.x = speed * enemy1.x +(1-speed) * hero.x;

    enemy1.y = speed * enemy1.y +(1-speed) * hero.y;

    If {(clickPoint.x>=hero.x)}

    this.hero.gotoAndPlay ("right");

    trace (Math.ABS (xDistance));

    }

    If {(this.hero.x>=clickPoint.x)}

    this.hero.gotoAndPlay ("left");

    trace (Math.ABS (xDistance));

    }

    }

  • Why a right-click dialogue boxes suddenly appear and follow the cursor?

    This is a really annoying problem, everything will be ok, then all of a sudden, right click dialog boxes will appear and follow the cursor. I left click to get rid of them, that works sometimes, but more often than not they flutter on the screen, sometimes, when this happens, when I move the slider, it leaves a blue line and if I move the cursor diagonally, it forms a blue box, with a similar action has known when crop a photo. Help!

    Hello

    ·          When the issue started?

    Step 1: Check to see if the same thing happens in a new user account.

    http://Windows.Microsoft.com/en-us/Windows-Vista/create-a-user-account

    See: http://windows.microsoft.com/en-US/windows-vista/Change-mouse-settings

  • Touchpad on my HP Mini 110-1125NR is locked and the cursor does not move

    I've never locked my computer.  Everything has been implemented in the store where it was purchased about 4 years ago.  I put my computer in sleep mode yesterday afternoon and just tried to use this evening... somehow, the touchpad is inadmissible and the cursor does not move.  He remains in the middle condition of the screen.  I turned off the computer and restarted, nothing done.  Can anyone provide a solution?

    Hello

    Shut down the laptop, unplug the AC adapter and then remove the battery.  Press and hold the Power button for 30 seconds.  Reinsert the battery and plug in the AC adapter.

    Robinet tap away at the key esc that you start the computer to launch the Start Menu, and then select f10 to open the bios menu.  Press f5 to load the default values (sometimes it's f9, but the menu below indicates the correct key), use the arrow keys to select 'Yes' and press ENTER.  Press f10 to save the setting and still use the arrow keys to select 'Yes' and press on enter.

    If the pointer is still frozen, try double clicking the top left of the button.

    Kind regards

    DP - K

  • The cursor does not show hour minute second

    Hello.

    I have the following

    PROCEDURE SP_GETHISTORICPAYMENT)

    IO_CURSOR ON T_CURSOR,

    O_CODTRANS OUT VARCHAR2,

    IS

    Tester varchar2 (2000);

    BEGIN

    Open the IO_CURSOR for

    Select tlt_date in the BF_MTP_TRA_LOGTRANSACTIONAL where rownum < 2;

    Select tlt_date in the BF_MTP_TRA_LOGTRANSACTIONAL Tester where rownum < 2;

    O_CODTRANS: = Tester;

    "The value of tlt_date is 13 May 15 15:27:32.

    The result of the execution of the stored procedure is:

    IO_CURSOR = 13 MAY 15 00:00:00 '

    O_CODTRANS = 13 May 15 15:27:32 '


    Why the cursor is not displayed the minute and the second time?


    I tried with

    Open the IO_CURSOR for

    Select TO_DATE (tlt_date, ' dd/mm/YY hh24:mi:ss') of BF_MTP_TRA_LOGTRANSACTIONAL where rownum < 2;

    But it does not work.

    How can I do to get the hour minute and second of a cursor in a procedure.

    Thank you.


    Do you like reading and thinking about the answers? Last attempt:

    PROCEDURE SP_GETHISTORICPAYMENT)

    IO_CURSOR ON T_CURSOR)

    IS

    BEGIN

    Open the IO_CURSOR for

    Select TO_CHAR (tlt_date, ' dd/mm/YY hh24:mi:ss') of BF_MTP_TRA_LOGTRANSACTIONAL where rownum< 2="">

    END SP_GETHISTORICPAYMENT;

    SY.

  • Devices to connect to the airport, but not to the Internet

    Hi all; Here's my situation:

    I just bought a new Airport Extreme to replace my old router (Linksys). In our House, we have two iPhones 6, as well as the iPad, Apple TV and MacBook Pro that were all bought again this year. All these things were able to connect to the internet using our old wireless router.

    As I have configured and installed at the airport, various devices have been able to connect without being able to connect to the internet (i.e. AirPort Utility, the airport connection is a green dot, while the actual internet connection is an orange): first it was the MacBook having this problem while the phones and the iPad have been completely connected. After I simply rebooted everything several times - i.e. the modem, router, and MacBook - I finally got the MacBook fully connected (without really changing all the settings, which are all entered correctly). Now, however, it is the two iPhones that will connect the airport but not actually in the internet.

    Any ideas? I must say, these strange little problems idiopathic who seem to always pop up with Apple products are starting to really bother me... I never got my MacBook to connect to the Apple TV via AirPlay.

    Any time you change the material or providers of Internet services, networking, it's always a good idea to perform a complete recycling of your network equipment power. Check out the following Tip of an airport users for more details on how to do it. Please post back your results.

  • Down on the Image, but not on the mouse scroll bar event?

    Hi all

    I use an event "Mouse Down" on an image to save the coordinates X and Y of the click and increment a counter.  My problem is that I'm looking at an image with a scroll bar that I want to use to set what part of the image is visible.  When I click on the scroll bar, I set off the mouse event down and increments the counter, which I won't do.

    Is there a way to implement a mouse event to the bottom so that it will ignore clicks on the image scroll bars?  If not, can you think of another way to accomplish what I'm doing?

    Thank you!

    Some quick ideas:

    The scroll bars will be a fixed height or width of the right or at the bottom of the indicator. In the mouse to the bottom of the event handler, if the click happens to a set of coordinates that are in a region of scroll bar, you know, do not increment the counter.

    OR

    Maybe you can overlay a transparent image control such that it covers the image but not the scroll bars, and find clicks on this second control.

    Mike...

  • SIT error 14104, dll runs on the host, but not on the target

    Hello

    I have problems of deployment dll (compiled in 2007 with Microsoft Visual C++ .NET 2003) Simulink in LabVIEW (2009 SP1). My target system is a desktop PC with LabVIEW Real-time 9.0 installed.

    I created a simple Simulink model which mulitplies an entry with a Gain and returns the result. I compiled using the nidll.tlc as a target file system.

    Then, I created a LabVIEW RT application that uses this DLL. I created exactly the same application as the host VI and VI target. On the host VI everything works fine. On the target VI, I get error SIT 14104.

    What I did to solve this problem? I followed the steps on http://digital.ni.com/public.nsf/allkb/C7FF960E0A6C219A8625729600104615 . I have manually deployed the dll on the target computer. I used the suggested compiler. There is a lot of memory on the computer (RAM and HDD) target. And I'm not using a CRio system.

    Does anyone have an idea how to fix this error? I will attach the sample project labview and the MDL and DLL to this post. Don't forget to adapt the DLL-path if you test the program.

    Kind regards

    Thomas

    Well I found a solution.

    I had to deploy the DLL manually on the target, but not in ftp://IP_Address/ni-rt/system/ as the link above is said but rather in ftp://IP_Address/ .

    Problem solved.

    Kind regards

    Thomas

  • When I plugged in my hdmi to pc I have followed the news but when I rehooked my moniter I lost the signal from my TV.

    moniter and hdmi problems

    When I plugged in my hdmi to pc I have followed the news but when I rehooked my moniter I lost the signal from my TV. I have a vizio hd tv.

    Hello

    ·         What operating system is installed on the computer?

    Method 1: Follow the steps and check if that helps:

    (a) first of all you need a video cable to make the physical connection. For a better image quality, you must connect to the computer to the TV using standard VGA ports or via DVI to HDMI cable provided your TV supports these ports.

    (b) open the "display settings" in your computer and activate the output to the TV screen. You can reflect the content of your computer on the TV or extend the display as a double screen control.

    (c) pick up your TV remote and switch to "External inputs" in the menu. You need to change the value by default "Video 1" to a different selection which may be "HDMI 1" or "video 2" depending on how you made the connection. "

    Important: Make sure you connect the cable to the TV before turning on the computer, because sometimes it may not recognize the external display.

    You may also change the resolution of your TV screen using the display settings in your panel of control remains the image may appear distorted.

    Reference: http://windows.microsoft.com/en-US/windows7/TV-on-your-computer-Understanding-TV-signals-and-TV-tuners

    http://Windows.Microsoft.com/en-us/Windows7/connect-your-computer-to-a-TV

    http://Windows.Microsoft.com/en-us/Windows7/HDTV-frequently-asked-questions

    Method 2: updated the graphics card driver and see if it helps:

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

Maybe you are looking for