Have a complex roll in / roll out button (ag_mc) that unwraps, then re-wraps a chocolate upon roll in - roll out. However - to complicate things, I would also like another button ( ag_desc) when rolled over / out, to also target/animate/control that other button to animate on the stage as it does as if it was pressed itself...
The rollover button (ag_desc) has a simple movie clip inside on the rollover state to let ppl know to click it, and the ag_mc I'm targeting has a shape tween that I would like to rewind on roll out.
Here is the current complete working script (for anyone who would like it) that is inside the animated button to make it play back and forward easily on roll over:
on ag_mc button, frame 1:
Expand|Select|Wrap|Line Numbers
- stop();
- this.onEnterFrame = function(){
- if(rewind == true){
- prevFrame();
- }
- }
- this.onRollOver = function(){
- rewind = false;
- play();
- }
- this.onRollOut = function(){
- rewind = true;
- }
This is what makes the other clip play (working) on ag_desc for ag_mc:
Expand|Select|Wrap|Line Numbers
- on (rollOver) {
- ag_mc.play();
- }
Expand|Select|Wrap|Line Numbers
- sociology_btn.onRelease = function () {
- _global.nyusoc_click = 1;
- _parent._parent._parent.gotoAndPlay ("folio");
- }
Expand|Select|Wrap|Line Numbers
- on (rollOver) {
- ag_desc.onRelease = function() {
- _root.ag_mc.gotoAndPlay("open");
- };
- }
Any ideas to target another movie clips frames to make it animate??
Thanks so much in advance!!!
=D