| Ultrashock Forums
• problem with a button inside a movieclip |
|||
![]() |
||||
| Search this Thread | Thread Tools | Display Modes |
|
|
|||||||||||||||||||||||||
![]() |
Ultrashock Member Comments:
|
|
2005-10-24
#2 |
||
|
|
|
2005-10-24
#3 |
||
|
No, the problem is that the MC has an onRollOver event applied to it, so it overrides the onRollOver of the button. Thanks anyway, |
|
| Mime |
2005-10-24
#4 |
||
|
You could always build some more keyframes into the MC timeline. In your rollOver function - you could then tell the player head to go to another keyframe where some actionscript tells the mc to become disabled (mc._enabled = false; ) However this would stop the rollover function from continuing. Then you could have the button work. The only thing then you need to do is have the MC become enabled somehow. Maybe over time with more keyframes or by adding the mc._enabled = true; via the button release or rollOut funtions. An fla would help to try and nail it. Feel free to mail it to me if you want any help. Grant. Secondly - if you are using actual buttons (F8 Button) try to use movieclips instead. They are generally easier to work with, especially with actionscript. |
|
|
2005-10-24
#5 |
||
|
mmm nested rollovers. I have a solution for you
|
|
|
|
2005-10-24
#6 |
||
|
Thanks guys. I have found a temporary solution, which is that I am using the onrollover on another button inside the mc. When I press this button, the timeline within that mc advance until it reaches a frame where the previously problematic button is. And that solves the problem. Thanks a lot for your help. |
|
|
2005-10-24
#7 |
||
|
ActionScript Code:
edit: Im always too Slow !!!! |
|
|
|
2005-10-24
#8 |
||
|
Thanks a lot Bentropy, I am going to give your code a try. |
|
|
2005-10-24
#9 |
||
|
... If you need further explanation.. just ask. Seems like your AS savvy enuf to figure it out though, hope it works.
|
|
|
|
2005-10-25
#10 |
||
|
As a matter of fact, Bentropy, you got me lost with the bounds_mc. I am assuming that mc is the movieclip that contains the button. Which is bound_mc? Thanks a lot for your help |
|
|
2005-10-25
#11 |
||
|
well.. bounds_mc is a mc with the dimensions of the function.. You can make a new one, or use the dimensions of your button.. |
|
|
|
2005-10-25
#12 |
||
|
I am sorry, Bentropy, I don't understand how could I apply this to my button inside the mc Thanks, |
|
|
2005-10-25
#13 |
||
|
... you dont have to use getbounds. the idea is to kill the mcOnRollOver .. onRollOver, so the buttonRollOver can work..(what a mouthfull) and then when you roll out (getbounds) to reset it... |
|
|
|
2005-10-25
#14 |
||
|
Ok, I got it now. Thanks a lot for all your help.
|
|
|
2005-10-25
#15 |
||
|
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|


14 comments
| 1801 views


Linear Mode
//doSomething
}