Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Flash Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Flash Discussion Forum Flash design presents a limitless number of possibilities for your sites and designs. Discuss your Flash ideas, questions and issues here.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-25-2004, 11:34 PM
WebProWorld New Member
 

Join Date: Aug 2004
Location: Los Angeles
Posts: 1
suggs RepRank 0
Default Using custom mouse cursor to drag a window

I used your custom mouse cursor to tackle an issue I have. I created a Flash window that plays video. It's like a popup, but it's a loaded .swf. There are 4 buttons on this window. I created the window so that you can drag it when clicking anywhere within the area of the window. All is working fine at this point.

I didn't like the fact that when you mouseover the window the cursor changes to the stock hand cursor. Of course, this doesn't change when you mouseover the 4 buttons on the window, so it could stand to be a little more intuitive. This is where your custom cursor came in. Now when I mouseover the window I get my custom cursor and it changes to the stock hand cursor when I mouse over any of the 4 buttons on that window.

Now for the issue:
When I click and drag the window the custom cursor stays there. I can drag the window. It's not until I stop dragging AND move the mouse before the custom cursor snaps back to where it should be.

Is there any work around for this? I couldn't figure out how I might accomplish this.

Thanks for any help!!!
Reply With Quote
  #2 (permalink)  
Old 08-30-2004, 01:30 PM
WebProWorld Member
 

Join Date: Aug 2003
Location: UK
Posts: 77
poab RepRank 0
Default

Hi,

Really difficult to say without seeing how you've done it (I assume with startDrag() and stopDrag()?). this is probably the easiest way depending on what else you've got going on in the file (it assumes that the cursor is a movieclip with the instance name 'myCursor').


function customCursor(active){
if(active){
//hide mouse
Mouse.hide();
//make cursor visible
_root.myCursor._visible = true;
//position cursor as per real cursor
_root.myCursor.onEnterFrame = function(){
this._x = _root._xmouse;
this._y = _root._ymouse;
}
}else{
//show mouse
Mouse.show();
//hide cursor
_root.myCursor._visible = false;
//stop positioning cursor
delete _root.myCursor.onEnterFrame;
}
}
//
//
//
//
//to set cursor going use:
customCursor(true);
//to set cursor back to normal:
customCursor(false);

cheers.
Reply With Quote
Reply

  WebProWorld > Site Design > Flash Discussion Forum
Tags: , , , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0