button and MC? MX
- Started
- Last post
- 9 Responses
- terlizzi
Im trying to tell a button over a movie clip to go to a frame label with:
on (rollOver_rootgotoAndPlay('filmp...
) {
}I tried the tell target method used in a tut. but for some reason it didnt work.
Anybody have any idea..
Just want my button to tell the movie clip under it to go to a frame label. Highlight on over, fade out on rollout and sound on press. ??? help would be greatly appreciated!!!
- mirola0
try this;
on (rollOver)
{
_rootgotoAndPlay('filmpreviewove...
}
- mirola0
not that, this;
on (rollOver) {
_root.gotoAndPlay('filmpreviewov...
}
- terlizzi0
Hey thanks for the reply mirola! It works but it does not seem to work smoothly with the on (press) Seems like the button has to be pressed twice. Ever encounter this before???
- unfittoprint0
the on() event is deprecated in MX. Use this instead (action layer):
myButton.onRollOver() = function(){
{
_root.gotoAndPlay('filmpreviewov...
}
- terlizzi0
thanks for the reply.. I dont know much about functions.. What do i declare in the ( )
By the way thanks for ur help too!
- bug0
i think they were a mistake...
should be:myButton.onRollOver = function() {
- smoothblend0
on (rollOver) {
_root.movieclip_001.gotoAndPlay...
}
on (rollOut) {
_root.movieclip_001.gotoAndPlay...
}That seems like to much code.. but it works for me..rember to name your movie clip that your pointing to IE (movieclip_001)
- terlizzi0
Does anyone have an example they could send me with a button that uses a MC for onRollOver, onPress, onRollOff
states.. ??? So i could see how its done. I would really appreciate it. thanx again..
- terlizzi0
Yeah thanx for the reply smoothblend.. Works for me too But i have a problem. I also have an onpress code on the same button with a sound effect in the mc. For some reason it takes two clicks to activate. ??? Ever have such a problem??? thanx.