|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
SitePoint Articles
Join Date: Apr 2001
Posts: 0
|
Discussion thread for Flash Script - Hide and Change Cursor Appearance
This is a dedicated thread for discussing the SitePoint article 'Flash Script - Hide and Change Cursor Appearance'
|
|
|
|
|
|
#2 |
|
SitePoint Community Guest
Posts: n/a
|
is there a way to make your cursor, when you click your mouse, that it will play an aciton, like say striking a match, and moving the flame to a fuse?
|
|
|
|
#3 |
|
SitePoint Community Guest
Posts: n/a
|
This script is outdated in the later versions of flash the Action Script for hide mouse is now "Mouse.hide()"
|
|
|
|
#4 |
|
SitePoint Community Guest
Posts: n/a
|
Also, if you want your cursor to follow your mouse off the page you could try this:
// 1. Make a movie clip instance. // 2. Copy the script below to the // default layer keyframe. // 3. Where it says "instanceName" // in the code below // put your new instance's name. // Thats it!! Mouse.hide() setInterval(loop,1) function loop () { instanceName._x=_xmouse; instanceName._y=_ymouse; } |
|
|
|
#5 |
|
SitePoint Community Guest
Posts: n/a
|
Hi,
I'm in need of flash script to change the mouse cursor on clicking the button , and i need the script for searching an object |
|
|
|
#6 |
|
SitePoint Community Guest
Posts: n/a
|
How do I get my movie clip CENTERED on the mouse istead of just the top left corner being on it?
|
|
|
|
#7 |
|
SitePoint Community Guest
Posts: n/a
|
You need to edit the individual movie clip and make sure that plus sign is in the center. The default is the top left. <a href="http://www.limit0.com">Limit Zero</a>
|
|
|
|
#8 |
|
SitePoint Community Guest
Posts: n/a
|
i want to change cursor when it comes on a button
|
|
|
|
#9 |
|
SitePoint Addict
![]() ![]() ![]() Join Date: Nov 2005
Posts: 344
|
Do you guys think that is possible just via javascript!
|
|
|
|
|
|
#10 |
|
SitePoint Community Guest
Posts: n/a
|
This is great but as limit0 said the default is top left, make sure you center it. Anonymous I'm not sure how you can do that (never tried) but I'm guessing use a hover function and make the movie clip switch to frame 2 which will have the image you want.
|
|
|
|
#11 |
|
SitePoint Community Guest
Posts: n/a
|
mouse.hide(); does not work in Flash 8, the "m" needs to be capitalized: Mouse.hide();
|
|
|
|
#12 |
|
SitePoint Community Guest
Posts: n/a
|
mouse.hide(); must be > Mouse.hide();
in order to work |
|
|
|
#13 |
|
SitePoint Community Guest
Posts: n/a
|
It isn't hiding the mouse for me.
|
|
|
|
#14 |
|
SitePoint Community Guest
Posts: n/a
|
What about after the user right clicks. How can you re-disappear it?
|
|
|
|
#15 |
|
SitePoint Zealot
![]() ![]() Join Date: Jan 2004
Location: NY
Posts: 130
|
Last Adobe's update:
http://livedocs.adobe.com/flex/2/lan.../ui/Mouse.html |
|
|
|
|
|
#16 |
|
SitePoint Community Guest
Posts: n/a
|
Posted by: Anonymous Dec 24th, 2008 @ 3:03 PM EST "It isn't hiding the mouse for me."
Use Mouse.hide() instead of mouse.hide() |
|
|
|
#17 |
|
SitePoint Community Guest
Posts: n/a
|
You need to put a capital on mouse (in mouse.hide();)It needs to be Mouse.hide();.
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 10:55.








Linear Mode
