Changing the Cursor 2004-03-02 - By Jesse Warden
Back Ooops, that's:
function p(){ cursor_mc._x = _level0._xmouse; cursor_mc._y = _level0._ymouse; updateAfterEvent(); }
Sorry, it's early.
-- --Original Message-- -- From: Jesse Warden [mailto:warden@(protected)] Sent: Tuesday, March 02, 2004 08:40 AM To: 'flashnewbie@(protected)' Subject: RE: [Flashnewbie] Changing the Cursor
Drag, like Helmut showed, will work too.
However, as far as unresponsive, no. The smoothest mouse cursor possible is:
function p(){ cursor_mc._x = _level0._xmouse; cursor_mc._y = _level0._ymouse; }
onMouseMove = p;
setInterval(this, "p", 0);
onEnterFrame = p;
However, if Flash is busy, it won't update the screen, even at higher framerates. Your best bet is to use an adjustable interval, but only created by onMouseMove. That way, you only fire onMouseMove once, and the interval will check to see if the mouse is still moving. Otherwise, kill the interval.
For games, I understand this isn't really realistic, so the only suggestion is lower your resolution of your Flash.
-- --Original Message-- -- From: Brook Davies [mailto:blists@(protected)] Sent: Monday, March 01, 2004 08:51 PM To: flashnewbie@(protected) Subject: [Flashnewbie] Changing the Cursor
Hi,
I've tried using a script to change the cursor by setting a mc at the mouse x/y and hiding the mouse pointer. Is this the only way to do it? Problem is, that when the flash player is busy the new mouse cursor is very unresponsive and moves slowly. Any way around this?
Brook
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Supported by Fig Leaf Software -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) For additional commands, e-mail: flashnewbie-help@(protected)
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Supported by Fig Leaf Software -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) For additional commands, e-mail: flashnewbie-help@(protected)
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Supported by Fig Leaf Software -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe, e-mail: flashnewbie-unsubscribe@(protected) For additional commands, e-mail: flashnewbie-help@(protected)
|
|