Viewpoint Forums
Viewpoint Forums
Adobe Atmosphere
Should cursor change be visible in Atmo?|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
Member![]() |
Hi!
I'm not having much luck in getting 'cursor change on mouse-over hot spot'to work in Atmo. The cursor change is visible in Scenebuilder, but not once the VP object is brought into Atmo. Is there anything special I should be doing? |
||
|
Member![]() |
this is the discussion thread http://viewpoint.infopop.net/3/OpenTopic?a=tpc&s=1382935096&f=3832928096&m=8492952217&r=7782982317#7782982317 - if that link doesn't work for you, it was in the Scenebuilder forum, a thread about TGA transparency, May 8th I think............. I didn't pursue it.
|
|||
|
|
Member |
HI !
I think you have to use the script to capture the mouse event from that filter the event you want such as mouse over in a specific object. I think the following code will help you actually i got it from the atmo help. <b> onEvent(mouseEvent, what)<b> A method which defines what will happen when the mouse event occurs. An event object is returned which possesses numerous properties, and the object under the mouse is returned as the second argument. myEventHandler = MouseEventHandler(); myEventHandler.setFilterOnClick(stageModel); myEventHandler.onEvent = function(mouseEvent, what) { chat.print("Object = " + what); dump(mouseEvent); } If the above onEvent function is called as shown, a 'dump' of the mouseEvent will return the following properties, which can in turn be used to control other logic for the event: buttonLeftDown // true or false state of the left mouse button buttonMiddleDown // true or false state of the middle mouse button buttonRightDown // (currently always false) clickDown // true for mouse down event, and false for mouse up clickEvent // acts as a 'type' identifier, and returns true for all click events clickUp // true for mouse up event, and false for mouse down metaKey1Down // true if 'CTRL' key was also held down during click event metaKey2Down // true if 'SHIFT' key was also held down during click event metaKey3Down // (currently not used) metaKey4Down // (currently not used) x // the x-axis pixel position of the mouse during the click event y // the y-axis pixel position of the mouse during the click event |
|||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|
Viewpoint Forums
Viewpoint Forums
Adobe Atmosphere
Should cursor change be visible in Atmo?
