|
|||
|
hello,
im trying to use the onHover command to display certain buttons when mouse goes over the app, and hide them when off it. While i succeeded in using the getmainWnd command and could use it for closing the window altogether, i couldnt get any reaction to the onHover command: Code:
var wnd = Global.getMainWnd();
wnd.onHover = function ()
{
btnClose._visible = true;
btnMinimize._visible = true;
}
btnClose.onPress = function()
{
wnd.close();
}
Thanks, YoS. |
|
|||
|
In actionscript, you will have to use the "setEventHandler" method to handle ffish script object events.
Code:
var wnd = Global.getMainWnd();
function onHover()
{
btnClose._visible = true;
btnMinimize._visible = true;
}
wnd.setEventHandler("onHover", onHover);
btnClose.onPress = function()
{
wnd.close();
}
|
|
|||
|
thanks for the quick reply. i tried your suggestions, but still failed to get it to work... no reactions for entering the player area.
Anything else i should add? Im using AS 2.0. i'd hate to lose this feature... Thanks again, YoS. |
|
|||
|
Can you please send your file to support@swfkit.com? We will try to help you to solve the problem.
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|