Raising Box
#1
Posted 29 January 2007 - 03:00 PM
If anyone can point me to some tutorials, or provide a basic idea of what I should do for this. Thanks for the help in advanced its greatly appreciated.
#2
Posted 29 January 2007 - 04:23 PM
#3
Posted 29 January 2007 - 04:37 PM
#4
Posted 29 January 2007 - 05:13 PM
unless your wanting the box the slide along the line of links each time you rollover a link, then there will be a little bit of actionsctip involving some maths in there.
be more exact about what you wanting so we can help pin point what your wanting, as you saying you want a box can result is many things happening to that box as it sits over the text.
#5
Posted 29 January 2007 - 05:19 PM
It's actually quite simple to do that. First create your buttons. Then create a seperate movieclip and draw the rectangle in it. Name it's instance "rectMc". Then place this code on every button:unless your wanting the box the slide along the line of links each time you rollover a link, then there will be a little bit of actionsctip involving some maths in there.
on(rollOver) { this.onEnterFrame = function() { rectMc._x -= (rectMc._x-this._x)/5; } } on(rollOut) { delete this.onEnterFrame; }
#6
Posted 29 January 2007 - 05:51 PM
It's actually quite simple to do that. First create your buttons. Then create a seperate movieclip and draw the rectangle in it. Name it's instance "rectMc". Then place this code on every button:unless your wanting the box the slide along the line of links each time you rollover a link, then there will be a little bit of actionsctip involving some maths in there.
on(rollOver) { this.onEnterFrame = function() { rectMc._x -= (rectMc._x-this._x)/5; } } on(rollOut) { delete this.onEnterFrame; }
goddam, you always make this stuff look so easy
#7
Posted 29 January 2007 - 08:54 PM
on(rollOver) { rectMc.onEnterFrame = function() { this._x -= (this._x-BUTTONNAME._x)/5; } } //NO NEED FOR ROLLOUT CODE //Also, replace BUTTONNAME with, well, the buttons name I guess...
#8
Posted 29 January 2007 - 11:37 PM
#9
Posted 30 January 2007 - 04:11 AM
#10
Posted 30 January 2007 - 03:01 PM
Edit: Do I make the rectangles movieclips, with the instance name rectMc, then paste the code under each one?
Edited by DJayAA, 30 January 2007 - 03:02 PM.
#12
Posted 30 January 2007 - 09:44 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users