View Full Version : Can I call a rollOver event without the user having too roll the mouse over a button?
Robby Grossman
01-09-2006, 02:55 PM
Hello,
I have a button that when rolled over, is highlighted. However, I'd also like it to be highlighted when the user selects a certain item from a ListBox. Is this possible to do natively with the Button control?
Thanks!
Robby
Robby Grossman
01-09-2006, 03:37 PM
Sorry, let me word that a little better, what it comes down to is...
Can I explicitly call an event via actionscript?
hi and welcome to As.Org
no you can't
but if you have something like
btn.onPress=function (){.....
you can triger this whit :
btn.onPress()
Robby Grossman
01-09-2006, 04:08 PM
hi and welcome to As.Org
no you can't
but if you have something like
btn.onPress=function (){.....
you can triger this whit :
btn.onPress()
Yikes, thanks for the info.
Does this mean that if I want to have a "button" that changes state on a mouseover AND changes state when other things happen, I have to go back and convert it to movie clips and code the mouse-overs manually? :(
flashead
01-09-2006, 04:56 PM
Does this mean that if I want to have a "button" that changes state on a mouseover AND changes state when other things happen, I have to go back and convert it to movie clips and code the mouse-overs manually?
The short answer is: Yes.
The not so short answer (and arguably the moral to the story): Always use movie clips as buttons right from the beginning of ALL your projects, no matter how simple they might be. Take the time to make a generic one that you can copy paste into any projects (kinda like a component but not as complex) and with minimal/no coding changes it will work with all your projects ;)
Robby Grossman
01-09-2006, 05:47 PM
The short answer is: Yes.
The not so short answer (and arguably the moral to the story): Always use movie clips as buttons right from the beginning of ALL your projects, no matter how simple they might be. Take the time to make a generic one that you can copy paste into any projects (kinda like a component but not as complex) and with minimal/no coding changes it will work with all your projects ;)
Live and learn, good advice :)
Thanks.
Robby
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.