I made a movieclip, with rollover, rollout effect. By default it acts like a button. Is there any way that I can preserve that "rollover" and leave it act like a simple movieclip, (or graphic) ? I need it not to be clickable.
Any suggestion is welcome!
Thank you for your reply Ned!
However, I wasn't precise enough, so you probably couldn't give the answer that could help more.
The movieclip thumb_mc is an internal swf which I use as an animated button.
Parent index_mc is loading thumb_mc into a holder which has its own actions.
In case when thumb_mc is simple animation, or graphic holder preserves its actions. But when I apply rollover effects, it starts to act like a button and overtakes holder's actions.
and this is what makes it "button-like"
thumb_mc.onRollOver = function() {
thumb_mc.gotoAndPlay("rollover");
};
thumb_mc.onRollOut = function() {
thumb_mc.gotoAndPlay("rollout");
};
Reason why I'm not using _root.function(); on child clip instead, is because that function loads much external data from xml and if I just run that function from an internal clip, it doesn't work completely right.
That's why I was wondering of possibility to make thumb_mc not "button-like" but just a simple clip with rollover animation.
When I put this on paper it looks much more confusing then I had it in my mind. I'm sorry if it's confusing, but if anyone got any ideas or questions, please welcome, any tip is golden ![]()
Your new explanation doesn't change my answer... probably because you think using a term like "button-like" is self-explanatory, but it isn't. If you don't want something to react to being clicked, then you don't assign code to it for clicking.
If all you mean by "button-like" is that the hand cursor appears, and you mean you do not want the hand cursor to appear when you rollover the movieclip, then all you need to do is set the movieclip's useHandCursor property to false.
thumb_mc.useHandCursor = false;
But that has nothing to do with making the movieclip non-clickable.
Thanks Ned.
You are correct. And I was asking the wrong question. What I have is actions on both, holder_mc and loaded movie. Holder_mc has on Click action applied, and movie has Rollover and Rollout actions in the movie. It's obviously not the right way to set up things. So next idea is to try is to make onRollover actions Holder_mc to gotoandplay frame in loaded_movie. If thats's possible :?
Still close but didn't make it. I returned to original idea, to call parent function from child movie. And I'm doing something wrong.
there is a function in main swf :
item_mc["item"+i].button.onPress = function() {
showArticle();
};
If I call just " showArticle" function from child swf, it displays only article from last position of the ( i ) counter. How do I call the complete function including the ["item"+i] ?
childmovie.onPress = function() {
_root.showArticle();
};
the above is example of calling just showArticle function
North America
Europe, Middle East and Africa
Asia Pacific