1 Replies - 1421 Views - Last Post: 17 October 2012 - 04:53 AM

#1 reyco1  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 2
  • View blog
  • Posts: 43
  • Joined: 20-March 05

move clip on button rollover

Posted 27 March 2005 - 07:27 AM

Description: Set the movies frame rate to 35. Make a movie clip and a button. The AS code below tells you which snippet to place in the clip and which to place in the button.roll over a button and the clip smoothly slides up, roll out of the button and the clip smoothly slides back down. very cool effect like for doors and stuff
//On the Movieclip you want to slide:

onClipEvent(load){
_root.targety = 100; //Startposition
}
onClipEvent(enterFrame){
diff = _root.targety - this._y;
this._y += diff/10;
}

//On the button use this:

on(rollOver){
_root.targety = 50;
}
on(rollOut){
_root.targety = 100;
}


Is This A Good Question/Topic? 0
  • +

Replies To: move clip on button rollover

#2 lizr0x  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 15-October 12

Re: move clip on button rollover

Posted 17 October 2012 - 04:53 AM

do i replace root with what i want ?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1