I have a rather odd question.
I have several Mc’s with imbeded button properties on my root timeline. These mcs have instance names. When they are pressed they load a frame in another Movie Clip. My problem is that I want to disable all of these buttons while the loaded Movie Clip is playing, because if the buttons are pressed multiple times the Movie Clip gets stuck and keeps repeating itself.
I tried adding this to the movie clips:
[AS]
on (press) {
_root.button1._enabled = false;
}
[/AS]
and then adding the reactivation code in the last frame of my loaded Movie Clip. This works fine, but since the MC buttons have instance names they wont show the button properties.
I have Movie clips with buttons inside of them that control the over and down states.
For some reason when the movie clips have instance names the button states dont show up.
heh, I dont really know how else to explain it, sorry.
I’d remove that trout-slap son!! I think that’s what posix wants. Now if you want the rollOver animation not to activate on rollOver, you will have to put that movieClip inside an actual button (in the over state), and then enable=false-it.
Oh yeah, and kO2n ROCKS!! I think I saw that twice, right?
yes thast what i was looking for. but now ive run into another problem. In my move I have several buttons like this one, that all move to a different section of the orange square. how do i delete the hitTest for the section that is currently open?
I tried this…
First of all, i would put actions on the buttons themselves instead of assigning functions - that’s just me, I’m lazy.
Then I would ad a unique variable into the button/movieClip actions. (I also would abandon using hitTest for this)
//this would be the first button called 'home'
on(release){
//do whatever you need to and:
_root.whichDisable=1;
}
//do that for each button, the next one I'll call 'news'
on(release){
//do whatever and:
_root.whichDisable=2;
}
//..etc,etc
Then add actions on the first frame that carry throughout the movie. Like:
Thus, no matter which button was pressed (and you would also need to set the variable ‘whichDisable’ in the beginning of your movie) one will be disabled while the others are enabled.
Originally posted by Freddythunder First of all, i would put actions on the buttons themselves instead of assigning functions - that’s just me, I’m lazy.
ok freddy. Yea I think the hitTest is the main thing thats causing me problems. And I think that if I set something up like how you say it should work…
But how do I activate the slide from the movie clips if they have instance names?
If I add an on (release) code to the movie clips I lose the button properties…
I dont even know if im going about this the right way… thanks for putting up with me!
thanks alot freddy. I actually resolved the whole issue last night. It turned out that the hitTest was causing all sorts of problems. I took it out and everything started working.