:: MOUSE EVENTS ::
- Started
- Last post
- 18 Responses
- unknown
I need to figure out a way to disable a button on rollover and to enable it on the unload of a movie. Anyone have a clue?
Please help!
FRESH!
- finnpimp0
in flash mx, give the button an instance name, say "foo", then script
on (rollOver) {
foo.enabled = false;
}and the MC to be unloaded:
onClipEvent (unload){
foo.enabled = true;
}working, yes?
- mitsu0
carefull with those full caps threads... they tend to get lost easily.
- unknown0
it is working somewhat.
When i place the script on the clip, it enable the function of the button. And not just enable the button. It is actually playing the buttons function.
Thanks, I will try to trouble shoot unless you know an option!
FRESH
- unknown0
mitsu... lost as in how?
I use caps to know where my thread is.
thanks chief
- unformatted0
mitsu means DELETED. so try to stop posting your threads in all caps.
- mitsu0
"thanks chief "
you got it, slick
- unknown0
Not to be a jerk... but wouldn't that be a lame move if they remove a thread that is actually in regards the community.
Posting a question and receiving answers is all that is going on. Although I understand your logic, I think it is crap. I will just keep the :: on my posts and not use caps. There is a solution to every problem.
YIATCH!!!!
- schjetne0
To explain: Some days ago they set a rule here that says that all threads with CAPS in the titles get deleted. Totally understandable policy, since it got a bit annoying with the 10+ topics with all caps at any given time.
It's unaesthetic, and it reminds me of loud screaming. Demonstration:
"Get the hell out of my room."
"GET THE HELL OUT OF MY ROOM."
See what I'm saying?
- unformatted0
i didn't make the rules. but it is annoying when you see all these post with all caps. your thread is not the only thread people want to view.
- unknown0
Right on...
Like I mentioned, I didn't post in all caps for people to see. I did it so I can keep track quickly of where my post is.
Once again, it is an issue of form VS function. But in this case, I will lose. So I will not use caps.
But if anyone has any ideas as to fixing this problem, I would appreciate it.
I ROCK FRESH MODE!
- unformatted0
"When i place the script on the clip, it enable the function of the button. And not just enable the button. It is actually playing the buttons function."
which script? what function?
the one finnpimp should work fine. what do you mean by playing the buttons function? what function?
- unknown0
Unformatted:
When I place the action on the button, it works fine. The button becomes disabled.
The problem is when I place the script on the subnav MC. The action enables the button. Then once the function on the button that was orignaly disables becomes enabled, it's action gets played.
:::
on (rollOver) {
loadMovieNum ("flash/display.subnav.swf", 10);
}
:::So when the MC that was loaded, performs it's function and enables the button. It reapears because the buttons function calls on the subnav.
Get it?
It is hard to explain but I think that is the problem.
KNAWMEAN!!!
- unformatted0
make sense - not really.
but let me try anyway, so when you rollover the button, you want to disable that button and at the same time load a movie?
on (rollover) {
buttonName.enabled = false;
loadmovie(blahblah);
}then when that movie is unloaded you want to enable that same button?
onclipevent(unload){
buttonName.enabled = true;
}depending on where your movieclips and buttons are you might try adding _root.buttonName
- unknown0
let me mention that the movie that is being called is not in the library of the movie that is calling it.
So the movie does not have an instance name.
Last, where should the "onClipEvent" script go. Should it go in the movie that is being called or should it go in the main movie. Because the movie that is being called is unloading it's self.
knawmean?
- arlo0
Make a two frame clip- one frame containing a graphic that looks like the button and the other frame with the actual button. Both frames have stops. To "disable" the button, go to the graphic frame. To "enable" it, go to the button frame.
- schjetne0
What about making the nav mc with two frames, one with the nav on, and the other without, and just tell it to move between the two, depending on if that other movie clip is loaded or not.
- schjetne0
arlo, you beat me to it.
- unknown0
it all depends on the time of the month.