Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custum curser problem

Status
Not open for further replies.

MooAal

Programmer
Joined
Jan 16, 2003
Messages
2
Location
DK
Hi

I'm making a homepage where I use a custum curser, made with the following script:

custCurser1_mc.onEnterFrame = function() {
this._x = this._x-(this._x-_xmouse)/2;
this._y = this._y-(this._y-_ymouse)/2;
};
custCurser2_mc.onEnterFrame = function() {
this._x = this._x-(this._x-_xmouse)/3;
this._y = this._y-(this._y-_ymouse)/3;
};
custCurser3_mc.onEnterFrame = function() {
this._x = this._x-(this._x-_xmouse)/4;
this._y = this._y-(this._y-_ymouse)/4;
.......

I would like to use a normal curser on parts of the site, but when you roll over a specified area, I would like the curser to change to the custum one, mentenied above.

Do you know how thats done?

Cheers, Moo

 
I'm pretty sure that you could use a hitTest on MC's and tell it:

if (_root.MC.hitTest(_root._xmouse, _root.ymouse, true) {
Mouse.hide();
}

You would of course have to make the hit area a movie clip.
 
you might want to try adding something like this to your mc's

onClipEvent(load){
Mouse.hide()
startdrag(this.true);
}




 
Thanks! The hitTest works.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top