Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-18-2007, 07:28 AM
YoS YoS is offline
Junior Member
 
Join Date: Oct 2007
Posts: 7
Default onHover issuse

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();
}
what's wrong in my code?

Thanks,
YoS.
Reply With Quote
  #2 (permalink)  
Old 11-18-2007, 09:40 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: onHover issuse

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();
}
Reply With Quote
  #3 (permalink)  
Old 11-19-2007, 10:57 AM
YoS YoS is offline
Junior Member
 
Join Date: Oct 2007
Posts: 7
Default Re: onHover issuse

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.
Reply With Quote
  #4 (permalink)  
Old 11-19-2007, 04:32 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: onHover issuse

Can you please send your file to support@swfkit.com? We will try to help you to solve the problem.
Reply With Quote
Reply

Was this information helpful?    Yes No



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

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



All times are GMT. The time now is 04:38 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.